def __init__(self): """ :param session: the flask session to update with userinfo """ self.config = config.OIDCConfig() self.person_api_url = 'uhbz4h3wa8.execute-api.us-west-2.amazonaws.com'
assets.register('js_all', js) sass = Bundle('css/base.scss', filters='scss') css = Bundle(sass, filters='cssmin', output='css/gen/all.css') assets.register('css_all', css) app.config.from_object(config.Config()) if os.environ.get('environment') != 'production': app.config.from_object(config.DevelopmentConfig()) else: print("Loading production config") app.config.from_object(config.ProductionConfig()) # Initializes Auth0 Support and loads decorator. oidc_config = config.OIDCConfig() authentication = auth.OpenIDConnect(oidc_config) oidc = authentication.auth(app) # Intializes the app logger. handler = logging.StreamHandler() logging.getLogger("werkzeug").addHandler(handler) print(app.config) @app.route('/') def index(): return render_template('home.html')
def __init__(self): """ :param session: the flask session to update with userinfo """ self.config = config.OIDCConfig() self.person_api_url = self._get_url()
def __init__(self): """ :param session: the flask session to update with userinfo """ self.config = config.OIDCConfig() self.person_api_url = 'person-api.sso.mozilla.com'