-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Add additional parameters to OAuth2UserRequest #5368
Comments
@XYUU This is not clear to me:
How is the |
Some third-party OAuth2.0 service UserInfoService needs to add the additional parameters in OAuth2AccessTokenResponse to OAuth2UserRequest in order to use these parameters in UserInfoService. Such as OAuth2 AccessToken Response: {
"access_token": "1.a6b7dbd428f731035f771b8d15063f61.86400.1292922000-2346678-124328",
"expires_in": 86400,
"refresh_token": "2.385d55f8615fdfd9edb7c4b5ebdc3e39.604800.1293440400-2346678-124328",
"scope": "basic email",
"uid": "90090909",
} user-info-uri: https://api.weibo.com/2/users/show.json?uid={uid} UserInfoService expects to expand:
|
I understand. Let me see what I can do and I'll get back to you shortly. |
related: #5500 However, the Nimbus SDK does not support Hi, First, thanks for this report. Support including the access token as URI query parameter was deliberately omitted from the SDK because that pattern is discouraged, to prevent the token from accidentally getting recorded in server and proxy logs, etc. https://tools.ietf.org/html/rfc6750#section-2.3 This method is included to document current use; its use is not YavorYour Connect2id Support Team |
@XYUU This issue has been resolved. You will now have access to Also, take a look at #5641 which will provide you the capability to customize the UserInfo request by overriding This should give you the flexibility you need. |
Summary
Add additional parameters to OAuth2UserRequest, some third-party OAuth2.0 service UserInfoService must have additional parameters in OAuth2AccessTokenResponse.
Actual Behavior
Cannot be used now because of missing parameters.
Expected Behavior
Expect to implement additional parameters by configuring userInfoUri.
Configuration
user-info-uri: https://api.weibo.com/2/users/show.json?uid={uid}
The text was updated successfully, but these errors were encountered: