feat: with config
All checks were successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/push/test Pipeline was successful

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2023-11-01 21:51:09 +01:00
parent 393be43db1
commit 8711fc2a7b
9 changed files with 115 additions and 82 deletions

View File

@@ -10,7 +10,8 @@ use nefarious_login::{
auth::AuthService,
axum::{AuthController, UserFromSession},
login::{
config::{AuthEngine, ZitadelClap},
auth_clap::{AuthEngine, ZitadelClap},
config::ConfigClap,
AuthClap,
},
session::{PostgresqlSessionClap, SessionBackend},
@@ -44,6 +45,7 @@ async fn main() -> anyhow::Result<()> {
conn: Some("postgres://nefarious-test:somenotverysecurepassword@localhost:5432/nefarious-test".into()),
},
},
config: ConfigClap { return_url: "http://localhost:3001/authed".into() }
};
let auth_service = AuthService::new(&auth).await?;