-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MicrosoftResourceProvider and urlResourceOwnerDetails - no field "email" in response #23
Comments
Hey @secured! It sounds like you have general problems establishing a OAuth2 connection with your TYPO3 installation: In this case this is more of an issue for waldhacker/ext-oauth2-client. This repo builds on top of the working connection.
|
Thanks for the quick feedback @maikschneider. If i try to connect with an existing account everything works fine. The problem only exists when a new user is created. I use your fork of
|
I'm not that sure where in the chain this error occurs. Which |
correct. here is the full config that is used.
in
|
Hey @secured, I've never seen 'urlAccessToken' => 'https://login.microsoftonline.com/xxxxxx-xxxx-xxxxx-xxxxxx/oauth2/v2.0/token',
'urlAuthorize' => 'https://login.microsoftonline.com/xxxxxx-xxxx-xxxxx-xxxxxx/oauth2/v2.0/authorize', The |
@maikschneider got it working :) i'm using these scopes and your endpoints: I had not set an api authorization for office365 correctly. |
Wanted to add my two cents, for people using the above config, as I did myself. Using 'urlResourceOwnerDetails' => 'https://login.microsoftonline.com/common/openid/userinfo' gave the Azure error 'AADSTS9001014: This token was not issued for the UserInfo endpoint.' in function fetchResourceOwnerDetails in vendor/league/oauth2-client/src/Provider/AbstractProvider.php Using 'https://graph.microsoft.com/oidc/userinfo' as @maikschneider remarked, gives the correct response in my case. |
Hey,
I have tried to connect a TYPO3 12 test instance to Microsoft Azure AD.
I am not sure what to enter in the field "urlResourceOwnerDetails".
With the value "https://login.microsoftonline.com/common/openid/userinfo" I get a valid answer, but the field "email" which is required by the MicrosoftResourceProvider is missing.
Unfortunately, the query fails with this value "https://graph.microsoft.com/oidc/userinfo".
I have also checked in advance that the API endpoint in Azure has the rights to read the scope 'email' and 'profile'.
Am I making a mistake here?
The text was updated successfully, but these errors were encountered: