You've already forked authentication-service
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:
@@ -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>>,
|
||||
}
|
||||
|
||||
@@ -95,6 +95,7 @@ pub enum Prompt {
|
||||
Login,
|
||||
Consent,
|
||||
SelectAccount,
|
||||
Create,
|
||||
}
|
||||
|
||||
#[serde_as]
|
||||
|
||||
Reference in New Issue
Block a user