fix reverse oidc problem
This commit is contained in:
parent
8347ebeea3
commit
53d715994a
@ -5,6 +5,7 @@ import os
|
|||||||
from flask import Flask, g
|
from flask import Flask, g
|
||||||
from flask_oidc import OpenIDConnect
|
from flask_oidc import OpenIDConnect
|
||||||
import requests
|
import requests
|
||||||
|
form werkzeug.middleware.proxy_fix import ProxyFix
|
||||||
|
|
||||||
logging.basicConfig(level=logging.DEBUG)
|
logging.basicConfig(level=logging.DEBUG)
|
||||||
|
|
||||||
@ -70,5 +71,5 @@ def logout():
|
|||||||
return 'Hi, you have been logged out! <a href="/">Return</a>'
|
return 'Hi, you have been logged out! <a href="/">Return</a>'
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
app = ProxyFix(app, x_for=1, x_host=1)
|
||||||
app.run(port=8080)
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user