axum-oidc/examples/basic/src/main.rs

11 lines
425 B
Rust
Raw Normal View History

use basic::run;
#[tokio::main]
async fn main() {
dotenvy::dotenv().ok();
let app_url = std::env::var("APP_URL").expect("APP_URL env variable");
let issuer = std::env::var("ISSUER").expect("ISSUER env variable");
let client_id = std::env::var("CLIENT_ID").expect("CLIENT_ID env variable");
let client_secret = std::env::var("CLIENT_SECRET").ok();
run(app_url, issuer, client_id, client_secret).await
}