You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not able to get github (GHE) based oauth..I was able to get it working in 1.10.x. This airflow is new 2.0 installation on another set of server. I believe I am making simple mistake in configuration. When I hit home page,It is redirecting me to login page as expected, and after succcessful login It is not redirecting back to home page. Instead I am being redirected to following page and getting 404.
https:///ghe-url/oauth/authiorize?response_type=code&client_id=4daf8925d11c79456432&redirect_uri=https%3A%2F%2F%2Foauth-authorized%2Fgithub&state=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJuZXh0IjpbImh0dHBzOi8vYWlyZmxvdy1wb2Muc2NpZW5jZS1hdC1zY2FsZS5pby9ob21lIl19.KuJipacU2DolDZ0YQAy_9yKsIwd4WP9FTDPEOt7OC_o
Here is how my webserver_config.py :
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am not able to get github (GHE) based oauth..I was able to get it working in 1.10.x. This airflow is new 2.0 installation on another set of server. I believe I am making simple mistake in configuration. When I hit home page,It is redirecting me to login page as expected, and after succcessful login It is not redirecting back to home page. Instead I am being redirected to following page and getting 404.
https:///ghe-url/oauth/authiorize?response_type=code&client_id=4daf8925d11c79456432&redirect_uri=https%3A%2F%2F%2Foauth-authorized%2Fgithub&state=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJuZXh0IjpbImh0dHBzOi8vYWlyZmxvdy1wb2Muc2NpZW5jZS1hdC1zY2FsZS5pby9ob21lIl19.KuJipacU2DolDZ0YQAy_9yKsIwd4WP9FTDPEOt7OC_o
Here is how my webserver_config.py :
OAUTH_PROVIDERS = [{
'name':'github',
'token_key':'access_token',
'icon':'fa-github',
'remote_app': {
'api_base_url':'https://ghe-url/api/v3/users',
'request_token_params': {"scope": "user"},
'access_token_url':'https://ghe-url/login/oauth/access_token',
'authorize_url':'https://ghe-url/oauth/authiorize',
'request_token_url': None,
'client_id': 'xxxxxx',
'client_secret': 'xxxxx',
}
}]
There must be some config issue and I couldnt find any documentation..I greatly appreciate any inputs.
Beta Was this translation helpful? Give feedback.
All reactions