1
0
mirror of https://git.ngram.ca/OpenJam/rc-servers synced 2026-08-23 23:08:52 +00:00

Add basic auth support to get Cardlife working in non-offline mode

This commit is contained in:
NGnius (Graham)
2025-01-25 17:40:47 -05:00
commit fe2816e9d3
13 changed files with 3714 additions and 0 deletions

15
auth/src/cardlife/mod.rs Normal file
View File

@@ -0,0 +1,15 @@
#[allow(unused_variables)]
mod email;
mod steam;
mod temporary_get_user_id;
#[allow(unused_variables)]
mod token;
pub fn stage() -> rocket::fairing::AdHoc {
rocket::fairing::AdHoc::on_ignite("JSON", |rocket| async {
rocket.attach(email::stage())
.attach(steam::stage())
.attach(temporary_get_user_id::stage())
.attach(token::stage())
})
}