Skip to main content

openauth_plugins/
lib.rs

1//! Official OpenAuth plugin module surface.
2//!
3//! These modules intentionally start as structural placeholders that mirror the
4//! Better Auth plugin inventory. Behavior should be added module by module
5//! against the upstream reference and translated into idiomatic Rust.
6
7pub mod access;
8pub mod additional_fields;
9pub mod admin;
10pub mod anonymous;
11pub mod bearer;
12pub mod captcha;
13pub mod custom_session;
14pub mod device_authorization;
15pub mod email_otp;
16pub mod generic_oauth;
17pub mod haveibeenpwned;
18pub mod jwt;
19pub mod last_login_method;
20pub mod magic_link;
21pub mod mcp;
22pub mod multi_session;
23pub mod oauth_proxy;
24pub mod oidc_provider;
25pub mod one_tap;
26pub mod one_time_token;
27pub mod open_api;
28pub mod organization;
29pub mod phone_number;
30pub mod siwe;
31pub mod test_utils;
32pub mod two_factor;
33pub mod username;
34
35pub const PLUGIN_IDS: &[&str] = &[
36    access::UPSTREAM_PLUGIN_ID,
37    additional_fields::UPSTREAM_PLUGIN_ID,
38    admin::UPSTREAM_PLUGIN_ID,
39    anonymous::UPSTREAM_PLUGIN_ID,
40    bearer::UPSTREAM_PLUGIN_ID,
41    captcha::UPSTREAM_PLUGIN_ID,
42    custom_session::UPSTREAM_PLUGIN_ID,
43    device_authorization::UPSTREAM_PLUGIN_ID,
44    email_otp::UPSTREAM_PLUGIN_ID,
45    generic_oauth::UPSTREAM_PLUGIN_ID,
46    haveibeenpwned::UPSTREAM_PLUGIN_ID,
47    jwt::UPSTREAM_PLUGIN_ID,
48    last_login_method::UPSTREAM_PLUGIN_ID,
49    magic_link::UPSTREAM_PLUGIN_ID,
50    mcp::UPSTREAM_PLUGIN_ID,
51    multi_session::UPSTREAM_PLUGIN_ID,
52    oauth_proxy::UPSTREAM_PLUGIN_ID,
53    oidc_provider::UPSTREAM_PLUGIN_ID,
54    one_tap::UPSTREAM_PLUGIN_ID,
55    one_time_token::UPSTREAM_PLUGIN_ID,
56    open_api::UPSTREAM_PLUGIN_ID,
57    organization::UPSTREAM_PLUGIN_ID,
58    phone_number::UPSTREAM_PLUGIN_ID,
59    siwe::UPSTREAM_PLUGIN_ID,
60    test_utils::UPSTREAM_PLUGIN_ID,
61    two_factor::UPSTREAM_PLUGIN_ID,
62    username::UPSTREAM_PLUGIN_ID,
63];
64
65pub const VERSION: &str = env!("CARGO_PKG_VERSION");