seatsurfing / backend

Seatsurfing Backend
https://seatsurfing.app
GNU General Public License v3.0
146 stars 41 forks source link

Problem Microsoft Azure #266

Open groetg opened 2 months ago

groetg commented 2 months ago

When I am trying to connect Microsoft Azure I got stuck: AADSTS50194: Application '59d9d013-dc3e-4ea0-a526-425005d4450b'(Seatsurfing) 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.

When I turn Multi-Tenant on, I got: AADSTS9002325: Proof Key for Code Exchange is required for cross-origin authorization code redemption.

kairos322 commented 1 month ago

Hi @groetg .

If you own a Azure/Entra ID tenant, you should use the dedicated OAuth 2.0 authorization endpoint ("https://login.microsoftonline.com/{tenant-id}/oauth2/v2.0/authorize") form and not the generic one provided by the Seatsurfing template. The "Directory (tenant) ID" value in the "Overwiew" tab of the Azure/Entra ID app registration page is what you need and you can also copy and paste endpoints URL by clicking "Endpoints" in the same tab.

Do the same for the "Token URL" and you should be good.

groetg commented 1 month ago

Hi @kairos322,

I already did that, so that's why I wonder why it still won'work!