Skip to content

feat(oidc): improve token refresh and context handling #46

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gmpetpet
Copy link
Contributor

  • Update request context with new tokens after refresh, ensuring req.oidc always has the latest access, refresh, and ID tokens.
  • Add user info to req.oidc after decoding ID token for easier access.
  • Support locale in login options and authorization request.
  • Refactor scope and prompt handling for login to prioritize options.
  • Move isEntitled to request context for consistent entitlement checks.
  • Improve test coverage for refresh and login flows.
  • Refactor token fetch to use Authorization header when client secret is set.

- Update request context with new tokens after refresh, ensuring req.oidc
  always has the latest access, refresh, and ID tokens.
- Add user info to req.oidc after decoding ID token for easier access.
- Support locale in login options and authorization request.
- Refactor scope and prompt handling for login to prioritize options.
- Move isEntitled to request context for consistent entitlement checks.
- Improve test coverage for refresh and login flows.
- Refactor token fetch to use Authorization header when client secret is set.
@gmpetpet gmpetpet requested a review from a team as a code owner July 11, 2025 12:05
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

Successfully merging this pull request may close these issues.

1 participant