feat: Implement support for prompt=create in the authorization code flow

This commit is contained in:
Ginger committed 2026-06-29 09:35:50 -04:00
1 parent c7e5c8df22
commit 138ec05cf2
11 files changed
+112 -40

No files matched your search

+11
View File
@@ -18,6 +18,8 @@ pub struct AuthorizationCodeQuery {
pub response_mode: ResponseMode,
pub code_challenge: String,
pub code_challenge_method: CodeChallengeMethod,
#[serde(default)]
pub prompt: Option<Prompt>,
}
#[derive(Debug, Clone, Default, Deserialize, Serialize)]
@@ -36,6 +38,15 @@ pub enum CodeChallengeMethod {
S256,
}
#[derive(Debug, Clone, Deserialize, Serialize)]
#[serde(rename_all = "snake_case")]
#[non_exhaustive]
pub enum Prompt {
Create,
#[serde(other)]
Unknown,
}
#[derive(Debug, Clone, Deserialize, Serialize, PartialOrd, Ord)]
pub enum Scope {
Device(OwnedDeviceId),