Refresh Token for offline access and online access #2249
sagarshah1983
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
That looks like a negligent misuse of OAuth2 concepts and principles of delegation in general. https://www.ory.sh/hydra/docs/concepts/before-oauth2#access-and-refresh-tokens-are-not-sessions |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
From the documentation, I found that refresh token is issued only when offline_scope is requested during authorization.
Is there any scope for supporting online_access as well? That gives same refresh token capability but only as long as user session is active?
Again, this comes from Healthcare FHIR API standards (SMART on FHIR), but I would like to understand, if such a requirement can be supported or implemented using Hydra?
Below is the excerpt from Cerner API website. https://fhir.cerner.com/authorization/#construct-the-authorization-request-url
online_access: Allows an application to obtain tokens via a “refresh” process while the authenticated user has an active session present at the device. offline_access: Allows an application to continue to obtain tokens on behalf of the authenticated via a “refresh” process user until explicitly revoked by the user, an administrator, or your application.
Beta Was this translation helpful? Give feedback.
All reactions