mirror of
https://codeberg.org/pfzetto/axum-oidc
synced 2025-12-08 22:25:16 +01:00
update dependencies
This commit is contained in:
parent
e86842c104
commit
74551fb479
5 changed files with 51 additions and 48 deletions
|
|
@ -2,7 +2,6 @@ mod keycloak;
|
|||
|
||||
use headless_chrome::Browser;
|
||||
use log::info;
|
||||
use testcontainers::*;
|
||||
|
||||
use crate::keycloak::{Client, Keycloak, Realm, User};
|
||||
|
||||
|
|
@ -10,8 +9,6 @@ use crate::keycloak::{Client, Keycloak, Realm, User};
|
|||
async fn first() {
|
||||
env_logger::init();
|
||||
|
||||
let docker = clients::Cli::default();
|
||||
|
||||
let alice = User {
|
||||
username: "alice".to_string(),
|
||||
email: "alice@example.com".to_string(),
|
||||
|
|
@ -25,14 +22,11 @@ async fn first() {
|
|||
client_secret: Some("123456".to_string()),
|
||||
};
|
||||
|
||||
let keycloak = Keycloak::start(
|
||||
vec![Realm {
|
||||
name: "test".to_string(),
|
||||
users: vec![alice.clone()],
|
||||
clients: vec![basic_client.clone()],
|
||||
}],
|
||||
&docker,
|
||||
)
|
||||
let keycloak = Keycloak::start(vec![Realm {
|
||||
name: "test".to_string(),
|
||||
users: vec![alice.clone()],
|
||||
clients: vec![basic_client.clone()],
|
||||
}])
|
||||
.await;
|
||||
|
||||
info!("starting basic example app");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue