1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-11-20 12:02:22 +03:00

Support prompt=create

Allows RPs to ask for account creation

See https://openid.net/specs/openid-connect-prompt-create-1_0.html
This commit is contained in:
Quentin Gliech
2022-03-14 16:33:24 +01:00
parent 794a1b8651
commit 8e9bda654f
4 changed files with 27 additions and 3 deletions

View File

@@ -25,7 +25,7 @@ use serde::Serialize;
use serde_with::skip_serializing_none;
use url::Url;
use crate::requests::{Display, GrantType, ResponseMode};
use crate::requests::{Display, GrantType, Prompt, ResponseMode};
#[derive(Serialize, Clone, Copy, PartialEq, Eq, Hash, Debug)]
#[serde(rename_all = "lowercase")]
@@ -234,4 +234,7 @@ pub struct Metadata {
/// Indicates whether the authorization server accepts authorization
/// requests only via PAR.
pub require_pushed_authorization_requests: Option<bool>,
/// Array containing the list of prompt values that this OP supports.
pub prompt_values_supported: Option<HashSet<Prompt>>,
}

View File

@@ -95,6 +95,7 @@ pub enum Prompt {
Login,
Consent,
SelectAccount,
Create,
}
#[serde_as]