diff --git a/main b/main index 685c4d2..4ca554a 100644 --- a/main +++ b/main @@ -417,6 +417,10 @@ async def homeserver(): async def mainapp(): return await render_template("main.html") +@app.route("/.well-known/openid-configuration") +async def openid(): + return await render_template("openid.json") + # Start server hypercornconfig = Config() hypercornconfig.bind = (HOST + ":" + PORT) diff --git a/templates/openid.json b/templates/openid.json new file mode 100644 index 0000000..acfeafe --- /dev/null +++ b/templates/openid.json @@ -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"] +}