Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use IMS refresh tokens #36

Open
mfrisbey opened this issue Aug 15, 2023 · 0 comments
Open

Use IMS refresh tokens #36

mfrisbey opened this issue Aug 15, 2023 · 0 comments
Assignees
Milestone

Comments

@mfrisbey
Copy link
Collaborator

A user's login session will currently expire after 24 hours. We could leverage IMS refresh tokens to significantly increase the amount of time a user will remain logged in. High level details will most likely include:

  • First, determine if the asset selector, or imslib2 (which the asset selector uses for its IMS authentication) will already handle this for us. If so, we should just leverage that functionality.
  • If not, we may need to implement it ourselves:
    • Include the offline_access scope when performing authorization.
    • Potentially utilize onAccessTokenReceived to capture the refresh token. Hopefully the refresh token is included in the token this method provides; if not, we may need to figure out how to get it.
    • Persist the refresh token. Perhaps using the browser's local storage?
    • Use onAccessTokenExpired to read the refresh token and include it in the next authorization request?
      • Note that there is a refreshToken method on the IMS auth service instance returned by registerAssetsSelectorsAuthService(). So maybe all we'd need to do is call that method.
@mfrisbey mfrisbey self-assigned this Aug 16, 2023
@tmathern tmathern self-assigned this Aug 17, 2023
sdmcraft pushed a commit that referenced this issue Nov 10, 2024
* feat: add fragment def and model

* feat: add fragment def and model

* feat: preserve the fragment block, replace contents with fragment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants