Closed xrh0905 closed 1 year ago
there is a driver to login with microsoft already
there is a driver to login with microsoft already
Hi. Thanks for the reply, but I couldn't find any driver to login with microsoft. There is a link to the https://github.com/imorland/flarum-ext-oauth-microsoft but it's empty.
there is a driver to login with microsoft already
Hi. Thanks for the reply, but I couldn't find any driver to login with microsoft. There is a link to the https://github.com/imorland/flarum-ext-oauth-microsoft but it's empty.
Must not be maintained anymore
I'm really not sure about your error, but wouldn't it make more sense to implement (or find an existing) Microsoft League OAuth driver and then integrate that driver in FoF OAuth extension, rather than trying to somehow make it work with Passport? Passport is already a custom OAuth driver for FoF OAuth.
While Passport might be compatible with a range of compliant oauth2 implementation, it's designed specifically for Laravel's Passport. Since you must be able to control the JSON payload that gets returned by the server during authorization I'm not sure how you would get Microsoft to answer using the default Laravel syntax.
Instead, a custom League OAuth driver could be used to implement the flow following Microsoft's documentation rather than trying to make 2 different opinionated implementations of oauth2 work together.
I'm really not sure about your error, but wouldn't it make more sense to implement (or find an existing) Microsoft League OAuth driver and then integrate that driver in FoF OAuth extension, rather than trying to somehow make it work with Passport? Passport is already a custom OAuth driver for FoF OAuth.
While Passport might be compatible with a range of compliant oauth2 implementation, it's designed specifically for Laravel's Passport. Since you must be able to control the JSON payload that gets returned by the server during authorization I'm not sure how you would get Microsoft to answer using the default Laravel syntax.
Instead, a custom League OAuth driver could be used to implement the flow following Microsoft's documentation rather than trying to make 2 different opinionated implementations of oauth2 work together.
Sorry to intrude, but do you have any ideas with my issue? It iś using fresh install of Laravel Passport
I'm really not sure about your error, but wouldn't it make more sense to implement (or find an existing) Microsoft League OAuth driver and then integrate that driver in FoF OAuth extension, rather than trying to somehow make it work with Passport? Passport is already a custom OAuth driver for FoF OAuth.
While Passport might be compatible with a range of compliant oauth2 implementation, it's designed specifically for Laravel's Passport. Since you must be able to control the JSON payload that gets returned by the server during authorization I'm not sure how you would get Microsoft to answer using the default Laravel syntax.
Instead, a custom League OAuth driver could be used to implement the flow following Microsoft's documentation rather than trying to make 2 different opinionated implementations of oauth2 work together.
Thanks. I'll implent Oauth extension instead.
Bug Report
Current Behavior After authorized in login.microsoftonline.com, thowing error and cannot continue.
Steps to Reproduce
Expected Behavior Sucessfully authorized.
Logs
Screenshot![屏幕截图 2023-05-20 223457](https://github.com/FriendsOfFlarum/passport/assets/29017419/93b4ed26-46d6-41cb-a115-2ebc038a0831)
Environment
Possible solution(s)
Additional Context Config: