AzureAD / azure-activedirectory-library-for-js

The code for ADAL.js and ADAL Angular has been moved to the MSAL.js repo. Please open any issues or PRs at the link below.
https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/maintenance/adal-angular
Apache License 2.0
627 stars 374 forks source link

How to use 'code' for responseType? #805

Closed Taewa closed 5 years ago

Taewa commented 6 years ago

Hi all, I am new to ADAL. I need to use responseType: 'code' in order to get accessToken and refreshToken However, according to the adal.js line 201, responseType is always 'id_token'.

var urlNavigate = this._getNavigateUrl('id_token', null) + '&nonce=' + encodeURIComponent(this._idTokenNonce);

Is there a way to use responseType: code ?

Thanks.

rohitnarula7176 commented 5 years ago

@Taewa I apologize for the delayed response. Adal js library only supports implicit flow with possible resoonseType values of 'id_token' and 'token'. Closing this issue as it is not supported by the library.

tushard-iprogrammer commented 5 years ago

@Taewa I apologize for the delayed response. Adal js library only supports implicit flow with possible resoonseType values of 'id_token' and 'token'. Closing this issue as it is not supported by the library.

Are there any possibilities to have support for 'code' responseType in future?

Taewa commented 5 years ago

@tushard-iprogrammer In the end, I couldn't use this library. Just handled manually.

tushard-iprogrammer commented 5 years ago

@tushard-iprogrammer In the end, I couldn't use this library. Just handled manually.

Doing same :smiley: