Skip to content

Microsoft provider doesn't work #3248

@alexitron77

Description

@alexitron77

Hi,

I'm trying to connect Strapi to my azure active directory through an app registration.

I need to configure the tenant Id, but Strapi does not provide this option through the dashboard.
We tried to modify the Provider.js file for the Microsoft provider with the following config :

"microsoft": {
"https://graph.microsoft.com": {
"__domain": {
"auth": {
"auth": {"bearer": "[0]"}
}
},
"[version]/{endpoint}": {
"__path": {
"alias": "__default",
"version": "v1.0"
}
}
},
"https://login.microsoftonline.com": {
"XXX-tenant-id-XXX/oauth2/{endpoint}": {
"__path": {
"alias": "oauth"
}
}
}
}

But it did not take into account the tenantId (the Purest provider is hardcoded to /common).

Here is the following error :

AADSTS50194: Application XXX is not configured as a multi-tenant application. Usage of the /common endpoint is not supported for such applications created after '10/15/2018'. Use a tenant-specific endpoint or configure the application to be multi-tenant.

Please help !

Alexis

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions