qm_keycloak/lib.rs
1//! # keycloak
2//!
3//! `keycloak` is a crate for management everything that has to do with
4//! Keycloak. Keycloak is used for authentication and authorization.
5//!
6//! In the development environment, Keycloak can be found in a Kubernetes
7//! at <https://keycloak.qm.local>.
8//! If Keycloak is missing, you need to run
9//! `k8s/helm-charts/skaffold/skaffold.infra-1-base.yaml`.
10//!
11//! Default username/password: `admin`/`Admin123`
12mod client;
13
14pub mod session;
15pub use client::*;
16pub mod config;
17pub mod realm;
18pub mod schema;
19pub mod token;
20pub mod validation;
21pub use token::store::JwtStore;
22
23#[macro_export]
24macro_rules! keycloak {
25 ($storage:ty) => {
26 impl AsRef<qm::keycloak::Keycloak> for $storage {
27 fn as_ref(&self) -> &qm::keycloak::Keycloak {
28 &self.inner.keycloak
29 }
30 }
31 };
32}