You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Jarek Potiuk (Jira)" <ji...@apache.org> on 2020/01/19 23:25:00 UTC

[jira] [Resolved] (AIRFLOW-1836) Airflow select keycloak as OAuth Provider

     [ https://issues.apache.org/jira/browse/AIRFLOW-1836?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jarek Potiuk resolved AIRFLOW-1836.
-----------------------------------
    Resolution: Won't Fix

> 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
>            Priority: Major
>             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:java}
>  import os
> os.environ['OAUTHLIB_INSECURE_TRANSPORT'] = '1'
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)