-
-
Notifications
You must be signed in to change notification settings - Fork 246
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
SSO integration with login.microsoftonline.com not in login.live.com #357
Comments
Sorry, I just add this on the bottom yii2-client/authclient/src/client/Live.php and it works.
|
I thought that Microsoft does not support the Live OAuth2 authentication method anymore? When I open this link from the Or is it only about the App Registration ? |
…osoftonline.com) OAuth2 client.
UPDATE: the PR resolving this issue has been closed and not merged by @bizley with the following comment:
Not sure why of this decision and as a result, we are not adding one of the most used external authentication providers, which would also make the plugin "business grade" (hence more popular), being Microsoft365 the reference for the vast majority of Companies around the globe. I will not release as a separate package: way too hassle for such a tiny thing, especially if there is already a solution made on purpose to host it. @readers: if you need this to authenticate your yii2 project against Microsoft365 to follow the normal yii\authclient\OAuth2 mechanism, you can still do that by taking 3 changes from this commit:
Live long and prosper \\//_ |
I understand the frustration but please try to look at this from the maintainers perspective. This is a design decision made 9 years ago. Since then we don't accept new client implementations what you can verify by looking at the not accepted PRs. 3rd-party-made extensions are more than welcome. @ald3rson please follow the implementation and instructions provided kindly by @edegaudenzi , thank you. |
What steps will reproduce the problem?
Hello. Im developing an SSO for school / work email for microsoft. the problem is login.live.com is not redirecting me to login.microsoftonline.com. I did research that live.com is for personal use and work/school is for microsoftonline.com
So what I did is to change the yii2-client/authclient/src/client/Live.php
class Live extends OAuth2
{
public $authUrl = 'https://login.microsoftonline.com/common/oauth2/v2.0/authorize';
public $tokenUrl = 'https://login.microsoftonline.com/common/oauth2/v2.0/token';
public $apiBaseUrl = 'https://graph.microsoft.com/v1.0';
}
What's expected?
Im expecting to run smoothly,
What do you get instead?
but errors were displayed. Access token is empty.
This is my redirect URI in azure AD. the question mark '?' sign in the http://localhost/site/auth?authclient=live will not save in Azure AD so I change it to http://localhost/site/auth%3Fauthclient=live
Additional info
The text was updated successfully, but these errors were encountered: