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.

code in cause cyclical redirct

See original GitHub issue

If you don’t want to display a login form that tells the user that they are redirected to the identity server, you can use the convenience function this.oauthService.loadDiscoveryDocumentAndLogin(); instead of this.oauthService.loadDiscoveryDocumentAndTryLogin(); when setting up the library.

This directly redirects the user to the identity server if there are no valid tokens.

after use this.oauthService.loadDiscoveryDocumentAndLogin() , the app into an infinity redirct circulation

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:9

github_iconTop GitHub Comments

jonyeezscommented, Oct 7, 2019

@jeroenheijmans is right.

I think what threw us off was the method name “...Login()”. We assumed it was checking to see if we were authenticated, if not send us to the login page.

But all it did was to check if the request had the correct hash fragments to obtain the access key.

Steps we took that works:

  1. use loadDiscoveryDocumentAndLogin for the page that would be redirected from the login screen as well as loading the app.
  2. Use the boolean result of the above method to begin init initImplicitFlow to send user to login page otherwise begin the app.
jonyeezscommented, Oct 8, 2019

Would love to put a PR in. And get that for hacktoberfest heh

On Tue, 8 Oct 2019, 12:38 am Jeroen Heijmans, wrote:

Good to hear you’ve found a solution. Shall we close this one then? Or will you suggest a PR with a change to readme to clarify things further? Either’s good to me.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Redirecting with GitHub pages
This is a quick demo showing you how you can redirect markdown files in GitHub pages using an HTML template. You can check...
Read more >
This error occurs when visitors get stuck in a redirect loop. This error is commonly caused by: A misconfiguration of your SSL/TLS Encryption...
Read more >
List of HTTP status codes - Wikipedia
This is a list of Hypertext Transfer Protocol (HTTP) response status codes. Status codes are ... 3xx redirection – further action needs to...
Read more >
How to redirect to another wiki page in GitHub flavored ...
Is there something similar to a Wikipedia feature that redirects WP:R and WP:RDR to Wikipedia:Redirect page? github-flavored-markdown · Share.
Read more >
ServiceDesk Plus readme, release notes, and version history
Click here to learn more. SDF-83922 : URL Redirection for ESM Instances. Alias URLs can now be configured for service desk instances to...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found