qiandrew / AudioNote

Apache License 2.0
0 stars 0 forks source link

Add basic authenticate API #8

Open matthewmoss opened 5 years ago

matthewmoss commented 5 years ago

Add basic token authentication so you can only use our API if you provide a valid token with each request. This prevents random people from using our API to transcribe audio (this would run up out Amazon bill).

https://spring.io/guides/gs/securing-web/ https://www.baeldung.com/securing-a-restful-web-service-with-spring-security

This can be tested by calling the api without a token and being denied, then calling the api with a valid token and getting a valid result.

https://oauth.net/ <-- Look into.