Further openid work

This commit is contained in:
bluepython508
2023-11-11 23:57:09 +00:00
parent 4107d37106
commit aaff151be7
8 changed files with 39 additions and 14 deletions

View File

@@ -15,6 +15,7 @@ defmodule SsoBsnWeb.Router do
pipeline :api do
plug :accepts, ["json"]
plug Corsica, origins: "*"
end
scope "/", SsoBsnWeb do
@@ -111,8 +112,9 @@ defmodule SsoBsnWeb.Router do
get "/authorize", AuthorizeController, :authorize
end
scope "/.well-known", SsoBsnWeb.Openid do
scope "/.well-known", SsoBsnWeb do
pipe_through :api
get "/openid-configuration", ConfigurationController, :config
get "/openid-configuration", Openid.ConfigurationController, :config
get "/webfinger", Webfinger, :webfinger
end
end