fix: token validation
This commit is contained in:
parent
37f244e46b
commit
844677cc27
2 changed files with 37 additions and 11 deletions
|
|
@ -97,7 +97,10 @@ pub async fn start(db_url: &str) -> Result<(), Box<dyn std::error::Error>> {
|
|||
let authentik_client_secret =
|
||||
std::env::var("AUTHENTIK_CLIENT_SECRET").map_err(|_| "AUTHENTIK_CLIENT_SECRET not set")?;
|
||||
|
||||
let verifier = Arc::new(crate::auth::JwksVerifier::new(authentik_issuer.clone()).await?);
|
||||
let verifier = Arc::new(
|
||||
crate::auth::JwksVerifier::new(authentik_issuer.clone(), authentik_client_id.clone())
|
||||
.await?,
|
||||
);
|
||||
let authenticator = Arc::new(
|
||||
crate::auth::Authenticator::new(
|
||||
authentik_issuer,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue