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]: Error handling support with Azure #1980

Open
git9999999 opened this issue Jul 11, 2024 · 0 comments
Open

[Question]: Error handling support with Azure #1980

git9999999 opened this issue Jul 11, 2024 · 0 comments
Labels

Comments

@git9999999
Copy link

What Version of the library are you using?
16.0.1

Question
My angular-auth-oidc-client work fine :-) I am using it with Azure. It is possible that an error occurs during the login in the Azure flow and i get the following response

https://acme.ch/ms/portal?error=server_error&error_description=AADB2C%3a+An+exception+has+occurred.%0d%0aCorrelation+ID%3a+f5722901-2d36-4fca-9b3a-bc179fdf42c9%0d%0aTimestamp%3a+2024-07-11+05%3a03%3a28Z%0d%0a&state=e358b4194efa080b90009jd73efefb9340yVoirQ8

with a status code 200.

Here an example:
image

Is there support to handle cases like this.

What i would need

  • decide according to the url if we show an error page
  • decide according to the url if a password change is needed, see example below
  isPasswordResetError(result: EventMessage): boolean {
    return result.error != null && result.error.message.indexOf("AADB2C90118") > -1;
  }
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