You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Kevin Zhang (JIRA)" <ji...@apache.org> on 2017/11/21 07:13:00 UTC
[jira] [Created] (AIRFLOW-1836) Airflow select keycloak as OAuth
Provider
Kevin Zhang created AIRFLOW-1836:
------------------------------------
Summary: Airflow select keycloak as OAuth Provider
Key: AIRFLOW-1836
URL: https://issues.apache.org/jira/browse/AIRFLOW-1836
Project: Apache Airflow
Issue Type: Improvement
Components: contrib
Affects Versions: 1.8.2
Environment: Linux CentOS 7.3
Python 2.7.13
Reporter: Kevin Zhang
Fix For: 1.8.2
As the need of my project in hand, I had to integrate keycloak with airflow.During implemetation,I learnt from the github_enterprise_auth provided by airflow.When I found it used python module flask_oauthlib,I thought the fastest way for me was to modify the parameters about connecting to keycloak.So I tried the idea and found it's true.The next question is to resolve the token from keycloak. I referred to keycloak and decided two key -preferred_username and email.
In my environment, the keycloak is accessed by http.So I had to add the code
{code:python}
import os
os.environ['OAUTHLIB_INSECURE_TRANSPORT'] = '1'
{code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)