Azure-Samples / Azure-Samples/ms-identity-ciam-javascript-tutorial
documentation or setup not working for angular spa vs .net core api
- Lingua principale
- PowerShell
- Stelle
- 75
- Fork
- 65
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
> 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.

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

### 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.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia con il tutorial di autorizzazione Angular collegato e riproduci il flusso di accesso su Windows 11. Confronta l'URI di reindirizzamento inviata dopo l'accesso con la configurazione dell'URI di reindirizzamento della SPA mostrata nell'issue. Il lavoro è completato quando l'accesso torna al percorso /auth della SPA senza invalid_request e le istruzioni di configurazione corrispondono alla configurazione richiesta.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- angular, javascript
- Ambito
- api, authentication, documentation, frontend
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100