I have made on app on Microsoft app portal.
When I try to login using Microsoft App key and secrete I am getting following error.
KeyError: 'Decoder failed to handle access_token with data as returned by provider. A different decoder may be needed. Provider returned: {"token_type":"Bearer","id_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6Ikd2blBBcGZXTWRMUmk4UERtaXNGbjdicHJLZyJ9.eyJ2ZMSwibm9uY2UiOiI4ODcxMjMxMjg4OTgxMzIiLCJuYW1lIjoic2FtYmhhamkga29sYXRlIiwicHJlZmVycmVkX3VzZXJuYW1lIjoic2FtYmhhamkua29sYXRlQGhvdG1haWwuY29tIiwic3ViIjoiQUFBQUFBQUFBQUFBQUFBQUFBQUFBRkhLdERRR0RBMy0xTEtEWlk1RFpzTSIsInRpZCI6IjkxODgwNDBkLTZjNjctNGM1Yi1iMTEyLTM2YTMwNGI2NmRhZCJ9.zPLfhhbnVj0DdTFPloJ7XtrmAbHv2fUDpbZ2vZryM340kA0TjvWHltwvdamerOf7-3wG7X3uJCENEr_DaISrRDhz8F7D1-c_GqBkZUBQP6-5-qG57ZE0cKr-7-nNbil2qUlS8JZAvuPLh2yz_fGqx2jLEUTmkEJdKq8B4fsu0qk"}'
I am using existing rauth function in frappe.
I am getting error at this line, can anyone help me.
Iām trying to use Azure AD as my user account source (SAML/Oauth2?) and log in to ERPNext - any assistance/guide on getting this working would be very much appreciated!
Thank you guys for your time and effort put into this.
@eleben I have working code, you can check.
I have issue with access token, as its encrypted, so code is not merged with core.
You can check my above comment for code.
@kolate_sambhaji So if I drop the code from your post on Oct 16 2016 into the oath.py file and add microsoft as a provider with the appropriate info to the same file Iām able to use Microsoft as my IDP?
When you say issue with access token are you saying it is a security issue if someone uses your code above or there is an issue with authentication because it is encrypted?