Skip to content

Error when configuring GitHub as OIDC provider #1857

Answered by fiftin
gknepper asked this question in Q&A
Discussion options

You must be logged in to vote

Correct GitHub config you can find in the docs: https://docs.semui.co/administration-guide/openid#github-auth

{
  "oidc_providers": {
    "github": {
      "icon": "github",
      "display_name": "Sign in with GitHub",
      "client_id": "***",
      "client_secret": "***",
      "redirect_url": "https://your-domain.com/api/auth/oidc/github/redirect",
      "endpoint": {
        "auth": "https://github.com/login/oauth/authorize",
        "token": "https://github.com/login/oauth/access_token",
        "userinfo": "https://api.github.com/user"
      },
      "scopes": ["read:user", "user:email"],
      "email_suffix": "github-your-domain.com", // this suffix will be used to make email for u…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gknepper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1850 on March 23, 2024 14:39.