Hi
I wanted to try out SSO with Github and haven’t been lucky with it yet unfortunately.
My SSO config is
ENABLE_OAUTH = True
OAUTH_CREATE_UNKNOWN_USER = True
OAUTH_ACTIVATE_USER_AFTER_CREATION = True
OAUTH_ENABLE_INSECURE_TRANSPORT = True
OAUTH_CLIENT_ID = “xxx from Github site”OAUTH_CLIENT_SECRET = “xxx from Github site”
OAUTH_REDIRECT_URL = ‘https://cloud.example.com/oauth/callback/’
I did not change the following, since manual said it should NOT be changed if you are using Github as OAuth provider.
OAUTH_PROVIDER_DOMAIN = ‘github.com’OAUTH_PROVIDER = ‘github.com’
OAUTH_AUTHORIZATION_URL = ‘https://github.com/login/oauth/authorize’OAUTH_TOKEN_URL = ‘https://github.com/login/oauth/access_token’OAUTH_USER_INFO_URL = ‘https://api.github.com/user’OAUTH_SCOPE = [“user”,]OAUTH_ATTRIBUTE_MAP = {“id”: (True, “email”), # Please keep the ‘email’ option unchanged to be compatible with the login of users of version 11.0 and earlier.“name”: (False, “name”),“email”: (False, “contact_email”),“uid”: (True, “uid”), # Seafile v11.0 +}
Error Message in Seahub.log:
[ERROR] seahub.oauth.views:179 oauth_callback Required user attr not found.
My Redirect URI in Github Settings ist:
(without the spaces)
https:// cloud .example.com/oauth/callback/
So it matches the address from the seafile settings.
Maybe there is something obvious that’s wrong
