How to get userInfo?

Created on 29 December 2018, almost 6 years ago
Updated 6 November 2020, about 4 years ago

I've done this steps:
1) Install module, create server named "login", and this settings

2) Set "profile" scope as default
3) Send POST request to "oauth2/token"

4) Send GET request to "/oauth2/UserInfo" with "Authorization: Bearer {access_token}" header
5) But request failed with response

{
    "error": "insufficient_scope",
    "error_description": "The request requires higher privileges than provided by the access token"
} 

How can I get userInfo from endpoint?

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡·πŸ‡ΊRussia okolobaxa

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States MattDanger

    For anyone searching for a solution to this issue: We resolved this by sending "openid email profile" as one string, with the scopes space delimited. We sent this with the token request, instead of the UserInfo request

Production build 0.71.5 2024