feathersjs / feathers

The API and real-time application framework
https://feathersjs.com
MIT License
14.98k stars 742 forks source link

Oauth 2.0 authorize url route #3255

Closed king87515 closed 11 months ago

king87515 commented 11 months ago

Steps to reproduce

First, I use feathers oauth to authenticate my login process. In config.json, the following settings:

"microsoft": {
        "key": "<CLIENT_ID>",
        "secret": "<CLIENT_SECRET>",
        "tenantId": "<TENANT_ID>",
        "scope": [
          "email",
          "profile",
          "openid"
        ]
      }

In authentication,js, I set authentication.register('microsoft', new OAuthStrategy()) with default.

Expected behavior

The oauth step first i want to redirect to "https://login.microsoftonline.com//oauth2/v2.0/authorize?..."

Actual behavior

The oauth step first redirect to "https://login.microsoftonline.com/common/oauth2/v2.0/authorize?..."

How should I modify my code or any settings to fix this problem.

System configuration

I user Feathers version v4 "@feathersjs/authentication": "^4.5.16", "@feathersjs/authentication-local": "^4.5.16", "@feathersjs/authentication-oauth": "^4.5.16", "@feathersjs/configuration": "^4.5.16", "@feathersjs/errors": "^4.5.16", "@feathersjs/express": "^4.5.16", "@feathersjs/feathers": "^4.5.16",