alexziskind1 / nativescript-oauth

Other
35 stars 53 forks source link

add resource for Azure AD #94

Open aminebizid opened 6 years ago

aminebizid commented 6 years ago

With Azure AD it's recommended to ask for a specific resource when asking forthe authorization code.

Example :

https://login.microsoftonline.com/{tenant}/oauth2/authorize? client_id=6731de76-14a6-49ae-97bc-6eba6914391e &response_type=code &redirect_uri=http%3A%2F%2Flocalhost%3A12345 &response_mode=query &resource=https%3A%2F%2Fservice.contoso.com%2F &state=12345