Use az ad app create to creata a SPA
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
Could you please provide a sample on how to create an app registration of type SPA. When using:
az ad app create --display-name $app-ui --required-resource-accesses @manifest-ui.json \
--oauth2-allow-implicit-flow false \
--reply-urls $urlUI --query appId -o tsv
the resulting replyUrlsWithType is always
"replyUrlsWithType": [
{
"url": "http://localhost:4200",
"type": "Web"
}
],
instead of
"replyUrlsWithType": [
{
"url": "http://localhost:4200",
"type": "Spa"
}
],
This results in error: Cross-origin token redemption is permitted only for the 'Single-Page Application' client-type.
Can you please comment on how to create other platform types than web. Thank you
---
#### Document Details
⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*
* ID: 921aa920-c25f-5227-aabb-49116da38fa7
* Version Independent ID: 9b5a53ad-edf8-4d89-f8e6-cde01b7866f6
* Content: [az ad app](https://docs.microsoft.com/en-us/cli/azure/ad/app?view=azure-cli-latest)
* Content Source: [latest/docs-ref-autogen/ad/app.yml](https://github.com/MicrosoftDocs/azure-docs-cli/blob/main/latest/docs-ref-autogen/ad/app.yml)
* Service: **active-directory**
* GitHub Login: @rloutlaw
* Microsoft Alias: **routlaw**
Contributor guide
Assessment
This issue has not been assessed yet.