@@ -48,11 +48,7 @@ async fn main() -> anyhow::Result<()> {
|
||||
},
|
||||
};
|
||||
|
||||
let auth_service = AuthService::new_zitadel(
|
||||
OAuth::try_from(auth.clone())?,
|
||||
IntrospectionService::new_zitadel(&auth).await?,
|
||||
SessionService::new(&auth).await?,
|
||||
);
|
||||
let auth_service = AuthService::new(&auth);
|
||||
|
||||
let state = AppState {
|
||||
auth: auth_service.clone(),
|
||||
|
@@ -43,10 +43,7 @@ async fn main() -> anyhow::Result<()> {
|
||||
"--session-postgres-conn=postgres://como:somenotverysecurepassword@localhost:5432/como",
|
||||
]);
|
||||
|
||||
let auth = cmd.auth;
|
||||
|
||||
let session_service = SessionService::new(&auth).await?;
|
||||
let auth_service = AuthService::new(&auth, session_service).await?;
|
||||
let auth_service = AuthService::new(&cmd.auth).await?;
|
||||
|
||||
let state = AppState {
|
||||
auth: auth_service.clone(),
|
||||
|
Reference in New Issue
Block a user