Skip to content

How to access profile picture in github OIDC #1693

Answered by spa5k
spa5k asked this question in Q&A
Discussion options

You must be logged in to vote

I was able to fix it by adding these extra things into kratos.yml

        providers:
          - id: github
            provider: github
            client_id:  # Add the client ID
            client_secret:  # Add the client secret
            mapper_url: file:///etc/config/kratos/oidc.github.jsonnet
            scope:
              - user:email
            requested_claims:
              userinfo:
                given_name:
                  essential: true
                nickname: null
                email:
                  essential: true
                email_verified:
                  essential: true
                picture:
                  essential: true

then in oidc.github…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by spa5k
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant