@@ -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?;
|
||||
|
@@ -40,6 +40,7 @@ async fn main() -> anyhow::Result<()> {
|
||||
"--zitadel-client-secret=rWwDi8gjNOyuMFKoOjNSlhjcVZ1B25wDh6HsDL27f0g2Hb0xGbvEf0WXFY2akOlL",
|
||||
"--session-backend=postgresql",
|
||||
"--session-postgres-conn=postgres://nefarious-test:somenotverysecurepassword@localhost:5432/nafarious-test",
|
||||
"--login-return-url=http://localhost:3001/authed"
|
||||
]);
|
||||
|
||||
let auth_service = AuthService::new(&cmd.auth).await?;
|
||||
|
Reference in New Issue
Block a user