GitHub user thiagogquinto added a comment to the discussion: Login redirection
does not use subpath prefix
I am using like this:
AUTH_TYPE = AUTH_OAUTH
AUTH_USER_REGISTRATION = True # Permitir registro automático de usuários via
OAuth
AUTH_USER_REGISTRATION_ROLE = "Public" # Papel padrão para novos usuários
registrados
OAUTH_PROVIDERS = [
{
"name": "google",
"icon": "fa-google",
"token_key": "access_token",
'remote_app': {
"client_id": "YOUR_GOOGLE_CLIENT_ID",
"client_secret": "YOUR_GOOGLE_CLIENT_SECRET",
'api_base_url':'https://www.googleapis.com/oauth2/v2/',
'client_kwargs':{
'scope': 'email profile'
},
'request_token_url':None,
'access_token_url':'https://accounts.google.com/o/oauth2/token',
'authorize_url':'https://accounts.google.com/o/oauth2/auth',
}
}
]
PROXY_FIX_CONFIG = {
"x_for": 1,
"x_proto": 1,
"x_host": 1,
"x_port": 1,
"x_prefix": 1
}
lables traefik:
labels:
- "traefik.enable=true"
- "traefik.http.routers.superset-pr.rule=Host(`DOMAIN`) &&
PathPrefix(`/analytics_pr`)"
- "traefik.http.routers.superset-pr.entrypoints=websecure"
- "traefik.http.routers.superset-pr.tls=true"
-
"traefik.http.middlewares.superset-pr-forwarded-proto.headers.customrequestheaders.X-Forwarded-Proto=https"
-
"traefik.http.middlewares.superset-pr-prefix.headers.customrequestheaders.X-Forwarded-Prefix=/analytics_pr"
-
"traefik.http.routers.superset-pr.middlewares=superset-pr-forwarded-proto,superset-pr-prefix"
- "traefik.http.routers.superset-pr.tls.certresolver=myresolver"
- "traefik.http.services.superset-pr.loadbalancer.server.port=8088"
and put the following redirection URI:
https://DOMAIN/analytics_pr/oauth-authorized/google
But when I click to login is a 404 error
@dosu
GitHub link:
https://github.com/apache/superset/discussions/40082#discussioncomment-18057152
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]