From d1ed04f5e38f6a7fa8716203ec3a81ef36ec658d Mon Sep 17 00:00:00 2001 From: michaeljguarino Date: Fri, 27 Sep 2024 14:50:22 -0400 Subject: [PATCH] Fix deprecated jwt decode method (#919) Later versions of airflow removed this function on us, but looks like we can just use a function bound to the jwt library itself directly. --- airflow/helm/airflow/Chart.yaml | 2 +- airflow/helm/airflow/values.yaml.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/airflow/helm/airflow/Chart.yaml b/airflow/helm/airflow/Chart.yaml index 91ceae622..ef417ba25 100644 --- a/airflow/helm/airflow/Chart.yaml +++ b/airflow/helm/airflow/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: airflow description: A Helm chart for airflow deployable on plural type: application -version: 0.3.42 +version: 0.3.43 appVersion: "2.6.3" sources: - https://github.com/pluralsh/plural-artifacts/airflow/helm/airflow diff --git a/airflow/helm/airflow/values.yaml.tpl b/airflow/helm/airflow/values.yaml.tpl index 44174dda5..0ee86a288 100644 --- a/airflow/helm/airflow/values.yaml.tpl +++ b/airflow/helm/airflow/values.yaml.tpl @@ -68,7 +68,7 @@ airflow: class PluralSecurityManager(AirflowSecurityManager): def _get_oauth_user_info(self, provider, response): if provider == "plural": - me = self._azure_jwt_token_parse(response["id_token"]) + me = jwt.decode(response["id_token"], options={"verify_signature": False}) split_name = me["name"].split() return { "username": me["name"],