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

Login problem in iframe #1426

Open
klealaska opened this issue Jul 31, 2024 · 0 comments
Open

Login problem in iframe #1426

klealaska opened this issue Jul 31, 2024 · 0 comments

Comments

@klealaska
Copy link

Login problem in iframe
When the application is opened for the first time in another app with iframe, the request /token failed after to many attempts then it ends with success.The request that is failing is with grant_type: refresh_token, then the one with success is grant_type: authorization_code.
Both application are using this library.
The application that is opened with Iframe has version 12.1.0 and angular 7.3.7. OAuthStorage is session storage(the default one).
The other application is with angular 16 and is using version 16 of the library.And have this configuration in app.module
{
provide: OAuthStorage,
useFactory: (): OAuthStorage => localStorage
}

Expected behavior
When the application opened with iframe I want to login directly, since both of the apps have the same login credentials.
I would appreciate if anyone would share any idea how to solve this issue.

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

No branches or pull requests

1 participant