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.

code in readme.md 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

1reaction
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.
0reactions
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, notifications@github.com 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 https://github.com/manfredsteyer/angular-oauth2-oidc/issues/639?email_source=notifications&email_token=ACS4BBS7GNQMJESAR4Y3ON3QNNCWHA5CNFSM4I3C6BR2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAQSPOA#issuecomment-539043768, or mute the thread https://github.com/notifications/unsubscribe-auth/ACS4BBVF2K7VIMGSVAQCT2TQNNCWHANCNFSM4I3C6BRQ .

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 >
ERR_TOO_MANY_REDIRECTS · Cloudflare SSL/TLS docs
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found