Expose OIDC discovery response from useAsgardeo#421
Merged
Conversation
953a8f4 to
afe1a56
Compare
DonOmalVindula
previously approved these changes
Mar 23, 2026
afe1a56 to
e53d6d9
Compare
e53d6d9 to
f53ef78
Compare
🦋 Changeset detectedThe changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. |
DonOmalVindula
approved these changes
Mar 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
This pull request introduces enhanced support for OpenID Connect (OIDC) discovery and endpoint configuration across the JavaScript and React SDKs. The changes allow developers to customize OIDC endpoint resolution, support platform-specific defaults, and expose OIDC discovery data through React context. This improves flexibility for different deployment scenarios and makes it easier for applications to work with non-standard or custom OIDC providers.
OIDC Discovery and Endpoint Configuration Enhancements:
discoveryconfig object andendpointsoverrides in the mainConfiginterface, allowing granular control over how OIDC endpoints are resolved, including the ability to disable or customize well-known discovery and override individual endpoint URLs.OIDCDiscoveryApiResponsetype for use in both JavaScript and React packages. [1] [2] [3]SDK API and Context Improvements:
getDiscoveryResponse()method to both the JavaScript and React clients, enabling consumers to fetch the latest OIDC discovery document data. [1] [2] [3]AsgardeoContextProps) and provider to include adiscoveryproperty, exposing the well-known OIDC discovery response to all context consumers. [1] [2] [3] [4] [5] [6] [7] [8]These changes make the SDKs more adaptable to various OIDC deployments, improve developer ergonomics, and provide better visibility into OIDC provider metadata for advanced use cases.
Related Issues
useAsgardeohook asgardeo#4Related PRs
Checklist
Security checks