airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Zhang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AIRFLOW-1836) Airflow select keycloak as OAuth Provider
Date Tue, 21 Nov 2017 07:13:00 GMT
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)

Mime
View raw message