oauth2_types/lib.rs
1// Copyright 2024 New Vector Ltd.
2// Copyright 2021-2024 The Matrix.org Foundation C.I.C.
3//
4// SPDX-License-Identifier: AGPL-3.0-only
5// Please see LICENSE in the repository root for full details.
6
7//! [OAuth 2.0] and [OpenID Connect] types.
8//!
9//! This is part of the [Matrix Authentication Service] project.
10//!
11//! [OAuth 2.0]: https://oauth.net/2/
12//! [OpenID Connect]: https://openid.net/connect/
13//! [Matrix Authentication Service]: https://github.com/element-hq/matrix-authentication-service
14
15#![deny(missing_docs)]
16#![allow(clippy::module_name_repetitions)]
17
18pub mod errors;
19pub mod oidc;
20pub mod pkce;
21pub mod registration;
22pub mod requests;
23pub mod response_type;
24pub mod scope;
25pub mod webfinger;
26
27/// Traits intended for blanket imports.
28pub mod prelude {
29 pub use crate::pkce::CodeChallengeMethodExt;
30}
31
32#[cfg(test)]
33mod test_utils;