Getting this error in implementing flask OIDC.
Using below code.
import json
import logging
from flask import Flask, g
from flask_oidc import OpenIDConnect
logging.basicConfig(level=logging.DEBUG)
app = Flask(name)
app.config.update({
'SECRET_KEY': 'SomethingNotEntirelySecret',
Getting this error in implementing flask OIDC. Using below code. import json import logging from flask import Flask, g from flask_oidc import OpenIDConnect logging.basicConfig(level=logging.DEBUG) app = Flask(name) app.config.update({ 'SECRET_KEY': 'SomethingNotEntirelySecret',
'SSL_CONTENT':False,
})
oidc = OpenIDConnect(app)
@app.route('/') def hello_world(): return 'Welcome anonymous'
@app.route('/api') @oidc.accept_token(require_token=True) def hello_api(): return 'welcome' if name == 'main': app.run()
JSON file- { "web": { "auth_uri": "https://***************/authorization.oauth2", "client_id": "T/", "client_secret": "/", "redirect_uris": [ "" ], "userinfo_uri": "https://***************.openid", "token_uri": "https://***************.s/token.oauth2", "token_introspection_uri": "https://***************./token.oauth2/introspect.oauth2" } }