You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/04/30 14:08:31 UTC
[GitHub] [airflow] AStevensTaylor commented on issue #14377: Airflow 2.0 Github Enterprise based OAuth issue
AStevensTaylor commented on issue #14377:
URL: https://github.com/apache/airflow/issues/14377#issuecomment-830121140
Looks like a spelling error in the `authorize_url` parameter, should be `/oauth/authorize` instead of `/oauth/authiorize`.
Your config should be:
```python
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/authorize',
'request_token_url': None,
'client_id': 'xxxxxx,
'client_secret': 'xxxxxxxxxx',
}
}]
```
Docs: [authorizing-oauth-apps](https://docs.github.com/en/developers/apps/authorizing-oauth-apps#1-request-a-users-github-identity)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org