mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-09-11 21:13:02 +02:00
impl MSC2964: OIDC token flow
# Conflicts: # Cargo.lock
This commit is contained in:
parent
db3a2dc468
commit
5ab7b61129
11 changed files with 553 additions and 1 deletions
|
@ -1,3 +1,21 @@
|
|||
/// OIDC
|
||||
///
|
||||
/// Stands for OpenID Connect, and is an authentication scheme relying on OAuth2.
|
||||
/// The MSC2964 Matrix Spec Proposal describes an authentication process based
|
||||
/// on OIDC with restrictions. See the [sample flow] for details on what's expected.
|
||||
///
|
||||
/// This module implements the needed endpoints. It relies on [`service::oidc`] and
|
||||
/// the [oxide-auth] crate.
|
||||
///
|
||||
/// [oxide-auth]: https://docs.rs/oxide-auth
|
||||
/// [sample flow]: https://github.com/sandhose/matrix-spec-proposals/blob/msc/sandhose/oauth2-profile/proposals/2964-oauth2-profile.md#sample-flow
|
||||
|
||||
mod discovery;
|
||||
mod login;
|
||||
mod authorize;
|
||||
mod token;
|
||||
|
||||
pub(crate) use self::discovery::get_auth_metadata;
|
||||
pub(crate) use self::login::oidc_login;
|
||||
pub(crate) use self::authorize::{authorize, authorize_consent};
|
||||
pub(crate) use self::token::token;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue