You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
We use this nice library in a complex architecture where multiple Angular applications are embedded in a CMS. One of these applications is responsible for authentication and utilizes this library.
Since the authentication app is always present, it continuously checks whether the user is still logged in.
We encountered an issue in the following scenario:
A user is already logged in. The CMS page contains two Angular applications:
The authentication app.
Another application that expects query parameters, including a parameter containing the string "code", e.g.,
Describe the bug
We use this nice library in a complex architecture where multiple Angular applications are embedded in a CMS. One of these applications is responsible for authentication and utilizes this library.
Since the authentication app is always present, it continuously checks whether the user is still logged in.
We encountered an issue in the following scenario:
A user is already logged in. The CMS page contains two Angular applications:
The authentication app.
Another application that expects query parameters, including a parameter containing the string "code", e.g.,
https://toto.com?totocode=toto
The authentication app automatically modifies the URL due to the logic found in https://github.com/manfredsteyer/angular-oauth2-oidc/blob/master/projects/lib/src/oauth-service.ts#L1748
This regex removes any query parameter containing "code" and not just the OAuth authorization code itself.
For example:
As a result, our application loses query parameters that contain "code", even when they are unrelated to OAuth.
Expected behavior
We are unsure if this is the intended behavior. Our questions are:
Thanks a lot for this library !
The text was updated successfully, but these errors were encountered: