auth0 / auth0-angular

Auth0 SDK for Angular Single Page Applications
MIT License
174 stars 57 forks source link

Getting Error on get Tokens "/oauth2/v2.0/oauth/token" #590

Closed hammadtariq98 closed 3 months ago

hammadtariq98 commented 3 months ago

Checklist

Description

we implement azure microsoft multi-tenant identity Version 2 which uses OAuth 2.0 for getting tokens the API route is"/oauth2/v2.0/token" but SDK's get token route is "/oauth2/v2.0/oauth/token". How can I override the route to get tokens

Reproduction

provideAuth0({ domain: 'domain', clientId: 'clientId', authorizationParams: { organization: 'organization', scope: 'openid profile offline_access', redirect_uri: 'http://localhost:4200/login', invitation: 'http://localhost:4200/login', prompt: 'select_account', audience: 'http://localhost:4200', }, }),

Additional context

No response

auth0-angular version

2.2.3

Angular version

17

Which browsers have you tested in?

Chrome

frederikprijck commented 3 months ago

Thanks for reaching out. This SDK is for Auth0, and it does not support using with other vendors, so there is no way to override the route.