This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Since redirect_url is not in https, ensure you set OAUTHLIB_INSECURE_TRANSPORT environment varaible | |
from flask import Flask, jsonify, request, redirect, url_for | |
from flask_dance.consumer import OAuth2ConsumerBlueprint | |
app = Flask(__name__) | |
app.secret_key = 'xxx' | |
keycloak = OAuth2ConsumerBlueprint( | |
name="keycloak", |
OlderNewer