I am getting this error when running my angular code on local the
I have checked my logout url is https://login.microsoftonline.com/common/oauth2/v2.0/logoutsession/ and my redirect url is "redirectUri": "https://127.0.0.1:8007"
As I mentioned in the comments, I used the redirect URI "http://localhost:4200" in my code and was able to successfully log in and log out with Azure AD without any issues.
2
Answers
There are several steps are involved
As I mentioned in the comments, I used the redirect URI "http://localhost:4200" in my code and was able to successfully log in and log out with Azure AD without any issues.
Below is my Code.
src/app/module.ts_ :
Output :
It runs successfully as below:
Next, I click on the Logout button, and it shows my account to logout as below: