From 279ae11c55b807ab5dbb62205d4d7904d54c95b9 Mon Sep 17 00:00:00 2001
From: joegoldman2 <147369450+joegoldman2@users.noreply.github.com>
Date: Wed, 26 Jun 2024 16:58:51 +0000
Subject: [PATCH] Add a constant for the create prompt in OpenIdConnectPrompt
class (#2658)
Co-authored-by: joegoldman2 <147369450+joegoldman@users.noreply.github.com>
---
.../OpenIdConnectPrompt.cs | 6 +++++-
.../OpenIdConnectRequestType.cs | 2 +-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/Microsoft.IdentityModel.Protocols.OpenIdConnect/OpenIdConnectPrompt.cs b/src/Microsoft.IdentityModel.Protocols.OpenIdConnect/OpenIdConnectPrompt.cs
index 537053d1e0..8d57176929 100644
--- a/src/Microsoft.IdentityModel.Protocols.OpenIdConnect/OpenIdConnectPrompt.cs
+++ b/src/Microsoft.IdentityModel.Protocols.OpenIdConnect/OpenIdConnectPrompt.cs
@@ -13,6 +13,11 @@ public static class OpenIdConnectPrompt
///
public const string None = "none";
+ ///
+ /// Indicates 'create' prompt type see: https://openid.net/specs/openid-connect-prompt-create-1_0.html.
+ ///
+ public const string Create = "create";
+
///
/// Indicates 'login' prompt type see: http://openid.net/specs/openid-connect-core-1_0.html#AuthRequest.
///
@@ -29,4 +34,3 @@ public static class OpenIdConnectPrompt
public const string SelectAccount = "select_account";
}
}
-
diff --git a/src/Microsoft.IdentityModel.Protocols.OpenIdConnect/OpenIdConnectRequestType.cs b/src/Microsoft.IdentityModel.Protocols.OpenIdConnect/OpenIdConnectRequestType.cs
index 3da8bda4ab..e212fb4909 100644
--- a/src/Microsoft.IdentityModel.Protocols.OpenIdConnect/OpenIdConnectRequestType.cs
+++ b/src/Microsoft.IdentityModel.Protocols.OpenIdConnect/OpenIdConnectRequestType.cs
@@ -17,7 +17,7 @@ public enum OpenIdConnectRequestType
Authentication,
///
- /// Indicates a Logout Request see:http://openid.net/specs/openid-connect-frontchannel-1_0.html#RPLogout.
+ /// Indicates a Logout Request see: http://openid.net/specs/openid-connect-frontchannel-1_0.html#RPLogout.
///
Logout,