Seafile oauth not working with Authentik

got it working , i am using authentik it have github compatibility mode and and have to set scope this way.

OAUTH_PROVIDER_DOMAIN = 'auth.domain.com'
OAUTH_AUTHORIZATION_URL = 'https://auth.domain.com/login/oauth/authorize'
OAUTH_TOKEN_URL = 'https://auth.domain.com/login/oauth/access_token'
OAUTH_USER_INFO_URL = 'https://auth.domain.com/user'
OAUTH_SCOPE = ["user","user:email"]
OAUTH_ATTRIBUTE_MAP = {
    "id": (True, "email"),
    "name": (False, "name"),
    "email": (False, "contact_email"),
}

It’s alos possbile to use the normal mode. You can basically use the configuration from the Authelia documentation:

ENABLE_OAUTH = True
OAUTH_CREATE_UNKNOWN_USER = True
OAUTH_ACTIVATE_USER_AFTER_CREATION = True
OAUTH_CLIENT_ID = "set_your_client_id"
OAUTH_CLIENT_SECRET = "set_your_client_secret"
OAUTH_PROVIDER_DOMAIN = 'auth.example.org'
OAUTH_REDIRECT_URL = 'https://seafile.examle.org/oauth/callback/'
OAUTH_AUTHORIZATION_URL = 'https://auth.example.org/application/o/authorize/'
OAUTH_TOKEN_URL = 'https://auth.example.org/application/o/token/'
OAUTH_USER_INFO_URL = 'https://auth.example.org/application/o/userinfo/'
OAUTH_SCOPE = ["openid", "profile", "email"]
OAUTH_ATTRIBUTE_MAP = {
    "id": (False, "not used"),
    "name": (False, "name"),
    "email": (True, "email"),
}