Skip Discovery Phase and Define Identity Endpoints
See original GitHub issueIssue and Steps to Reproduce
Hi team,
Great job creating this lib, it’s really cool and makes it very easy to implement secure SPAs.
I have a quite hard requirement on my hand and I am seeking clarifications about the best way to implement it. I have an implementation of OIDC to make but the identity server cannot and will not add our domain to CORS. How can we skip the discovery phase and give the actual endpoints that should be called? This identity server supports authorization code and implicit, but I read here (https://github.com/AxaGuilDEv/react-oidc/issues/751) that implicit is not supported.
Hence the question, how can I skip discovery and define the Authorization, Token, UserInfo and other endpoints to avoid the CORS issue?
Versions
v5.4.2
Screenshots
Expected
const configuration = {
client_id: 'interactive.public.short',
redirect_uri: 'http://localhost:4200/authentication/callback',
silent_redirect_uri: 'http://localhost:4200/authentication/silent-callback', // Optional activate silent-signin that use cookies between OIDC server and client javascript to restore the session
scope: 'openid profile email api offline_access',
authority: {
authorization: 'https://demo.identityserver.io/authorization',
token: 'https://demo.identityserver.io/token',
userinfo: 'https://demo.identityserver.io/userinfo',
introspect: 'https://demo.identityserver.io/introspect',
jwks: 'https://demo.identityserver.io/jwks',
issuer: 'https://demo.identityserver.io/issuer',
}
service_worker_relative_url:'/OidcServiceWorker.js',
service_worker_only:true,
};
Actual
Only authority variable is documented.
Additional Details
- Installed packages: “react”: “^17.0.2”, “react-csv”: “^2.2.2”, “react-dom”: “^17.0.2”,
Issue Analytics
- State:
- Created a year ago
- Comments:31 (17 by maintainers)
Top GitHub Comments
@guillaume-chervet it did not, the behaviour remains the same. I create a repo for you to reproduce the issue: https://github.com/slaterx/react-oidc-issue
Upon yarn start, you will see that the page is stuck on loading.
Thank you so much @guillaume-chervet for your quick response. Yes, it resolved my use case. thanks !