Having a doubt in case of Oauth being used more for authentication.
- I go to a website
- It redirects me to Oauth provider like google (provider) for sign IN
- I am able to sign in successfully and provider returns a token having resource information and other stuff
Few questions
- Typically token refresh time could be as long as 2 months(https://learn.microsoft.com/en-us/linkedin/shared/authentication/authorization-code-flow?context=linkedin/context). Can client control token validity time?
- When ever user access the app, will app hit provider every time to validate token or will it be able to decode the token locally and allow user access (Something like self contained JWT) ?
- If it hits the provider every time will this not impact scalability? My understanding is it will have to hit the provider every time
- Just in case if it need not hit the provider on each request -how access is denied, the moment we revoke the permissions from the provider.
I am little bit lost around
- Use case when a third party app is using the token only for authentication - how application scale if every request end up at provider and if it does not end up at provider on each request then how apps are notified about revoked key ?
- If Resource is looked up (say feeds from Facebook) -it's obvious it will hit resource server, does resource server always validates the token with authorization server?