OpenID Connect Autodiscovery
This commit is contained in:
parent
642a6aad36
commit
98eef1005b
4
main
4
main
|
@ -417,6 +417,10 @@ async def homeserver():
|
||||||
async def mainapp():
|
async def mainapp():
|
||||||
return await render_template("main.html")
|
return await render_template("main.html")
|
||||||
|
|
||||||
|
@app.route("/.well-known/openid-configuration")
|
||||||
|
async def openid():
|
||||||
|
return await render_template("openid.json")
|
||||||
|
|
||||||
# Start server
|
# Start server
|
||||||
hypercornconfig = Config()
|
hypercornconfig = Config()
|
||||||
hypercornconfig.bind = (HOST + ":" + PORT)
|
hypercornconfig.bind = (HOST + ":" + PORT)
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"issuer": "https://auth.hectabit.org",
|
||||||
|
"authorization_endpoint": "https://auth.hectabit.org/auth",
|
||||||
|
"token_endpoint": "https://auth.hectabit.org/authtoken",
|
||||||
|
"userinfo_endpoint": "https://auth.hectabit.org/userinfo",
|
||||||
|
"response_types_supported": ["code"],
|
||||||
|
"subject_types_supported": ["public"]
|
||||||
|
}
|
Reference in New Issue