Skip to content

Use az ad app create to creata a SPA #21476

@alexander-kastil

Description

@alexander-kastil

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.

Metadata

Metadata

Assignees

Labels

Auto-AssignAuto assign by botGraph(doesn't work with label-triggered comments; use Graph.Microsoft instead) az adact-identity-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions