-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix hardcoded urls in SocialNetworkAuthenticateService
- Loading branch information
Showing
1 changed file
with
6 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e6d6965
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For future reference, this commit introduces possible regression with custom code since 2amigos/yii2-usuario version 1.6.3 included.
Class common\clients\YourCustomEndpoint contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Da\User\Contracts\AuthClientInterface::getUserId)
My existing Microsoft365 (for Organisations) custom integration:
class Microsoft365 extends \yii\authclient\OAuth2 implements \Da\User\Contracts\AuthClientInterface
for any other dev having the same problem, you can fix it in the same way @eluhr did for the official ones: use the Da\User\Traits\AuthClientUserIdTrait inside your class like:
e6d6965
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PS: if someone is interested in having the Microsoft365 client, I can create a PR. It looks something like:
e6d6965
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
your error comes from a7e044f#diff-f52bc10204963b009c10f27211e4da5e2ddb02a01f767c07159d141431f435dfR36 instead from an earlier commit @edegaudenzi . But yes, changing the interface can break custom implementations, maybe should have been a 1.7.x release instead of minor 1.6.x version change indicating possible breaking changes. I think having MS365 integration included in the module is also a good idea
e6d6965
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for reporting, I added it to the 1.6.3 release notes!
For Office365 integrations, if you want to create a PR I'll merge it! Thanks again