mirror of
https://github.com/pfzetto/axum-oidc.git
synced 2024-11-22 19:42:50 +01:00
Paul Zinselmeyer
e62aba722c
Adds automated CI integration tests to the basic example. The integration tests launch and configure a keycloak server, launch the example and test its functionality with a headless browser.
10 lines
425 B
Rust
10 lines
425 B
Rust
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
|
|
}
|