Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question]: Redirect on 'authorize(configuration)' works only sometimes #2061

Open
lukaszpy opened this issue Jan 2, 2025 · 0 comments
Open
Labels

Comments

@lukaszpy
Copy link

lukaszpy commented Jan 2, 2025

What Version of the library are you using?
OIDC 18.0.1
Angular 18.2.0
...

Question
I have problem with authorize, it works only after few calls (clicks on 'login' button)
There is no errors on network or console.
On console I can see on faild authorize:

[DEBUG] 0-testme-client - BEGIN Authorize OIDC Flow, no auth data
Navigated to https://testme.app:4200/																							client:489 
[vite] connecting...
language-switch.service.ts:19 Browser lang events																				auth.service.ts:39 
Starting isAuthenticated																										auth.service.ts:42 
[DEBUG] 0-testme-client - Working with config '0-testme-client' using 'https://login.testme.app:9000'							auth.service.ts:42 
[DEBUG] 0-testme-client - currentUrl to check auth with: 'https://testme.app:4200/'												auth.service.ts:42 
[DEBUG] 0-testme-client - checkAuth completed. Firing events now. isAuthenticated: false										core.mjs:30083 
Angular is running in development mode.
client:608 [vite] connected.

on success redirect it shows:

Angular is running in development mode.
client:608 [vite] connected.																									auth.service.ts:64 
[DEBUG] 0-testme-client - BEGIN Authorize OIDC Flow, no auth data
[DEBUG] 0-testme-client - Nonce created. nonce:311d640405b05e5608130bbc619eccb83dcrmxIPg
[DEBUG] 0-testme-client - Authorize created. adding myautostate: 6ffe35b18ccc95e8e09dfeb6bffee4135fSY7wD6Q
Navigated to https://login.testme.app:9000/login																			login:43

When there is no redirect I don't see "BEGIN Authorize OIDC Flow, no auth data" but don't know why it was not called.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant