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

documentation or setup not working for angular spa vs .net core api #70

Open
christophedemey opened this issue Dec 21, 2023 · 2 comments

Comments

@christophedemey
Copy link

christophedemey commented Dec 21, 2023

Please provide us with the following information:

This issue is for a: (mark with an x)

- [X] bug report -> please search issues before submitting
- [ ] feature request
- [X] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

I followed tutorial at https://github.com/azure-samples/ms-identity-ciam-javascript-tutorial/tree/main/2-Authorization/2-call-api-angular, I am able to run the solution and launch the angular, when I click login I am forwarded to microsoft login prompt.

This is the url at this time which shows a correct redirect uri (in my opinion localhost/auth)

REDACTED

But after logging in I get a screen saying
We're unable to complete your request
invalid_request: The provided value for the input parameter 'redirect_uri' is not valid. The expected value is a URI which matches a redirect URI registered for this client application.

image

In the configuration of the spa we can see the redirect urls configured correctly :
image

Any log messages given by the failure

invalid_request: The provided value for the input parameter 'redirect_uri' is not valid. The expected value is a URI which matches a redirect URI registered for this client application.

Expected/desired behavior

redirect to spa /auth path.

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)
Windows 11

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

@christophedemey
Copy link
Author

Well, I got it working by using a different authority url.
https://login.microsoftonline.com//

This was not clear to me at all by the docs, I am unsure if the ciamlogin should work or not.
Do you have any idea what I did wrong?

@DmitryLukyanov
Copy link

DmitryLukyanov commented Jan 28, 2024

I think I have a similar issue in react example that I've described here where the mentioned above solution with changing authority doesn't work. Does any one have any advises?

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

2 participants