mirror of
https://codeberg.org/pfzetto/axum-oidc
synced 2025-12-10 07:05:15 +01:00
Merge branch 'pfzetto:master' into master
This commit is contained in:
commit
39422df031
5 changed files with 76 additions and 34 deletions
|
|
@ -1,9 +1,5 @@
|
|||
use axum::{
|
||||
error_handling::HandleErrorLayer,
|
||||
http::Uri,
|
||||
response::{IntoResponse, Redirect},
|
||||
routing::get,
|
||||
Router,
|
||||
error_handling::HandleErrorLayer, http::Uri, response::IntoResponse, routing::get, Router,
|
||||
};
|
||||
use axum_oidc::{
|
||||
error::MiddlewareError, EmptyAdditionalClaims, OidcAuthLayer, OidcClaims, OidcLoginLayer,
|
||||
|
|
@ -84,9 +80,5 @@ async fn maybe_authenticated(
|
|||
}
|
||||
|
||||
async fn logout(logout: OidcRpInitiatedLogout) -> impl IntoResponse {
|
||||
let logout_uri = logout
|
||||
.with_post_logout_redirect(Uri::from_static("https://pfzetto.de"))
|
||||
.uri()
|
||||
.unwrap();
|
||||
Redirect::temporary(&logout_uri.to_string())
|
||||
logout.with_post_logout_redirect(Uri::from_static("https://pfzetto.de"))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue