question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Skip Discovery Phase and Define Identity Endpoints

See original GitHub issue

Issue 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:closed
  • Created a year ago
  • Comments:31 (17 by maintainers)

github_iconTop GitHub Comments

1reaction
slaterxcommented, May 5, 2022

@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.

1reaction
khyapatecommented, May 3, 2022

Thank you so much @guillaume-chervet for your quick response. Yes, it resolved my use case. thanks !

Read more comments on GitHub >

github_iconTop Results From Across the Web

Discovery basics - Product Documentation | ServiceNow
Create schedules for discovering cloud resources in Cloud Operations Workspace. Create Azure cloud credentials. Microsoft Azure Alert driven discovery.
Read more >
Endpoint Discovery - Navigating your way through ...
This is an active discovery method where managed devices actively probe the network to identify unmanaged devices. From here the interfaces on ...
Read more >
Define Endpoint Discovery Rules
Define Endpoint Discovery Rules ... By default, Forescout eyeSight automatically discovers information about endpoints, such as MAC addresses and NetBIOS names.
Read more >
Project discovery phase: to skip or not to skip? - VITech
Some clients request only team extension, it is a situation when you don't need a discovery stage as well. Another reason to skip...
Read more >
Cisco Identity Services Engine Administrator Guide, Release 2.2
The RADIUS probe is running by default, even for systems not configured for Profiling Service to ensure ISE can track endpoint authentication ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found