oauth2_types/
lib.rs

1// Copyright 2021, 2022 The Matrix.org Foundation C.I.C.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15//! [OAuth 2.0] and [OpenID Connect] types.
16//!
17//! This is part of the [Matrix Authentication Service] project.
18//!
19//! [OAuth 2.0]: https://oauth.net/2/
20//! [OpenID Connect]: https://openid.net/connect/
21//! [Matrix Authentication Service]: https://github.com/matrix-org/matrix-authentication-service
22
23#![deny(missing_docs)]
24#![allow(clippy::module_name_repetitions)]
25
26pub mod errors;
27pub mod oidc;
28pub mod pkce;
29pub mod registration;
30pub mod requests;
31pub mod response_type;
32pub mod scope;
33pub mod webfinger;
34
35/// Traits intended for blanket imports.
36pub mod prelude {
37    pub use crate::pkce::CodeChallengeMethodExt;
38}
39
40#[cfg(test)]
41mod test_utils;