From 3bf49c4695be5db7ab172edf2a174b53fb8f39a1 Mon Sep 17 00:00:00 2001 From: Maxime Beauchemin Date: Mon, 6 Nov 2017 13:23:18 -0800 Subject: [PATCH] Simplify login form for oauth (cherry picked from commit 89ba06d9a65250c1a3a6d28f4f69ba5742c9baa3) (cherry picked from commit 1dfc8f25a9f92f92325af1c29f7bc5ec0faf2a0b) (cherry picked from commit 7aefa266426ee90cf7d1065c8003f887f0651b52) (cherry picked from commit e546132219f574010e10d0e586a52c6131ae8a0a) --- requirements.txt | 1 + .../general/security/login_oauth.html | 33 +++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 superset/templates/appbuilder/general/security/login_oauth.html diff --git a/requirements.txt b/requirements.txt index 93181d6c9fbc7..c388794975064 100644 --- a/requirements.txt +++ b/requirements.txt @@ -27,6 +27,7 @@ flask-caching==1.4.0 flask-compress==1.4.0 flask-login==0.4.1 # via flask-appbuilder flask-migrate==2.1.1 +flask-oauthlib==0.9.5 flask-openid==1.2.5 # via flask-appbuilder flask-sqlalchemy==2.3.2 # via flask-appbuilder, flask-migrate flask-wtf==0.14.2 diff --git a/superset/templates/appbuilder/general/security/login_oauth.html b/superset/templates/appbuilder/general/security/login_oauth.html new file mode 100644 index 0000000000000..fd875ad88be47 --- /dev/null +++ b/superset/templates/appbuilder/general/security/login_oauth.html @@ -0,0 +1,33 @@ +{# + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +#} +{% extends "appbuilder/base.html" %} + +{% block content %} + +
+
+
+ + + +
+
+
+ +{% endblock %}