arche 4.10.0

An opinionated backend foundation for Axum applications, providing batteries-included integrations for cloud services, databases, authentication, middleware, and logging.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::oidc::ProviderMetadata;

pub fn google() -> ProviderMetadata {
    ProviderMetadata {
        key: "google".into(),
        issuers: vec![
            "https://accounts.google.com".into(),
            "accounts.google.com".into(),
        ],
        auth_endpoint: "https://accounts.google.com/o/oauth2/v2/auth".into(),
        token_endpoint: "https://oauth2.googleapis.com/token".into(),
        jwks_endpoint: "https://www.googleapis.com/oauth2/v3/certs".into(),
        extra_auth_params: vec![
            ("prompt".into(), "select_account".into()),
            ("access_type".into(), "online".into()),
        ],
    }
}