Add /openid/token route

This commit is contained in:
2022-04-12 20:40:44 +02:00
parent 97203a955d
commit d69b44528e
8 changed files with 188 additions and 16 deletions

View File

@ -129,7 +129,8 @@ async fn main() -> std::io::Result<()> {
// OpenID routes
.route("/.well-known/openid-configuration", web::get().to(openid_controller::get_configuration))
.route("/openid/authorize", web::get().to(openid_controller::authorize))
.route(AUTHORIZE_URI, web::get().to(openid_controller::authorize))
.route(TOKEN_URI, web::post().to(openid_controller::token))
})
.bind(listen_address)?
.run()