I have questions related to non interactive clients like backend apps based on oauth2 flow.
https://auth0.com/docs/api-auth/grant/client-credentials
In accordance with oauth2 for non interactive clients, flow is :
- The application authenticates with Auth0 using its Client Id and Client Secret.
- Auth0 validates this information and returns an access_token.
- The application can use the access_token to call the API on behalf of itself.
Base on this, my questions are :
- Backend applications should store the access_token locally or request a new access_token for the same client each time the client uses the application?
- If access_token is stored locally what happend with expiration time?
- Access_token for non interactive clients should have the same expiration time compared with access_token for interactive users (login web) ?