Reputation: 53
I have implemented an api that my SPA front-end will use. Now I want to secure the endpoints of the API using OAuth 2.0. The SPA will be used by hundreds (possible thousands) of registered and logged in users. Which OAuth 2.0 grant type flow should I use?
FWIW I am using spring boot for the backend and angular for the frontend
Upvotes: 0
Views: 332
Reputation: 4467
The Implicit Grant is optimised for Single Page Applications.
It allows a token to be obtained in one call to an authorize
endpoint.
Note that you will not be able to obtain a refresh token for offline / long-lived access to the API with the Implicit grant.
Upvotes: 1