You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I meet some trouble when using nextcloud-social-login
The function getUserProfile() in file sociallogin/lib/Provider/CustomOAuth2.php need to add userid to get user profile, otherwise will login failed with message "Can not get identifier from provider "
I use an inner oauth2 provider, whose userInfo struct defined as:
typeUserInfoResponsestruct {
StatusCodeint`json:"status_code" form:"status_code"`// status code for responseStatusMessagestring`json:"status_message" form:"status_message"`// status message for responseUseridstring`json:"userid" form:"userid"`// user IDUsernamestring`json:"username" form:"username"`// usernameAvatarstring`json:"avatar" form:"avatar"`// avatarEmailstring`json:"email" form:"email"`// emailEmailVerifiedbool`json:"email_verified" form:"email_verified"`// has email verifiedPhoneNumberstring`json:"phone_number" form:"phone_number"`// phone numberPhoneVerifiedbool`json:"phone_verified" form:"phone_verified"`// has phone number verifiedCreateTimeint64`form:"create_time"`// user created time
}
The text was updated successfully, but these errors were encountered:
Hi,
I meet some trouble when using nextcloud-social-login
The function
getUserProfile()
in filesociallogin/lib/Provider/CustomOAuth2.php
need to adduserid
to get user profile, otherwise will login failed with message "Can not get identifier from provider "before
after:
I use an inner oauth2 provider, whose
userInfo
struct defined as:The text was updated successfully, but these errors were encountered: