-
Notifications
You must be signed in to change notification settings - Fork 0
Notes
https://github.com/jasny/mysql-revisioning
navigator.geolocation.getCurrentPosition(function(position) {
console.log(position.coords.latitude, position.coords.longitude);
});https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API
https://dev.mysql.com/doc/refman/8.0/en/spatial-type-overview.html
https://dawa.aws.dk/dok/api/adresse
https://dawa.aws.dk/adresser?vejnavn=R%C3%B8dkildevej&husnr=46&struktur=mini
https://itnext.io/playing-with-geometry-spatial-data-type-in-mysql-645b83880331
https://blog.mapbox.com/a-dive-into-spatial-search-algorithms-ebd0c5e39d2a
https://dzone.com/articles/spring-di-patterns-the-good-the-bad-and-the-ugly https://www.logicbig.com/tutorials/spring-framework/spring-core/types-of-dependency-injection.html
https://javacodehouse.com/blog/mockito-tutorial/
{
"route":{
"id":"5c5bb-a6ds-41b7-a127-80a4557db67c",
"title":"Run three",
"location":"Stockholm",
"date":"2019-04-24T10:39:33.228+0000",
"distance":5000,
"duration":3600000,
"description":"It is going to be very fun!!!",
"status":"active"
},
"creatorId":"1233"
}- jbcrypt
- jwt
- sætter man i header
- https://dev.to/keysh/spring-security-with-jwt-3j76
localStorage.setItem("lastname", "Smith");
localStorage.getItem("lastname");https://spring.io/guides/tutorials/spring-security-and-angular-js/ https://stackoverflow.com/questions/50526321/how-to-secure-angular-spring-application https://stackabuse.com/password-encoding-with-spring-security/
- make InSecureAuthService
- send not encrypted password and username (alternativ. encrypt and send like a parameter, not path)
- check for that in repository
- return id
- store id in sessionStorage