Skip to content
This repository has been archived by the owner on Mar 11, 2021. It is now read-only.

Implement offline tokens natively in Auth #577

Closed
1 task done
sbose78 opened this issue Aug 6, 2018 · 2 comments
Closed
1 task done

Implement offline tokens natively in Auth #577

sbose78 opened this issue Aug 6, 2018 · 2 comments
Assignees
Milestone

Comments

@sbose78
Copy link
Member

sbose78 commented Aug 6, 2018

as a dependency of #350

What are offline tokens?
https://fabric8-services.github.io/fabric8-auth/reference.html#_offline_tokens

Token issuance:

If /api/login has scope=offline_access param,
generate a token with an expiry of 365 days.

Token validation and usage

  1. Validate if the token is an offline token using the "jti" claim, and if yes, check if it was last used within 30 days using the TOKEN_ACCESS_LOG table ( https://www.dbdesigner.net/designer/schema/98194 )
  2. If yes, generate a new access token and return it.

Dependencies:

@sbose78
Copy link
Member Author

sbose78 commented Aug 7, 2018

( move to different place.. )

  1. Store access/refresh/offline token info in TOKEN table ( to be renamed from RPT token table )
    https://www.dbdesigner.net/designer/schema/98194 . This endpoint Add 'invalidate all tokens' for a user API endpoint #580 can be used invalidate all tokens a user is currently using.

  2. Add a new token access log table.

  3. Use the info in (2) for offline token usage: An offline token is a special refresh token which if not used more than once in 30 days expires.

@dipak-pawar dipak-pawar added this to the Sprint 154-3 milestone Sep 4, 2018
@dipak-pawar dipak-pawar self-assigned this Sep 4, 2018
@xcoulon xcoulon modified the milestones: Sprint 154-3, Sprint 155-1 Sep 10, 2018
@xcoulon
Copy link
Contributor

xcoulon commented Sep 13, 2018

Offline tokens will not be supported in the future, so no need to implement this feature in fabric8-auth

@xcoulon xcoulon closed this as completed Sep 13, 2018
@xcoulon xcoulon modified the milestones: Sprint 155-1, Sprint 155 Oct 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants