aboutsummaryrefslogtreecommitdiff
path: root/VPNAuth.Server/Responses
diff options
context:
space:
mode:
Diffstat (limited to 'VPNAuth.Server/Responses')
-rw-r--r--VPNAuth.Server/Responses/OidcDiscovery.cs27
1 files changed, 27 insertions, 0 deletions
diff --git a/VPNAuth.Server/Responses/OidcDiscovery.cs b/VPNAuth.Server/Responses/OidcDiscovery.cs
new file mode 100644
index 0000000..e4d66f4
--- /dev/null
+++ b/VPNAuth.Server/Responses/OidcDiscovery.cs
@@ -0,0 +1,27 @@
+using System.Text.Json.Serialization;
+
+namespace VPNAuth.Server.Responses;
+
+public class OidcDiscovery
+{
+ [JsonPropertyName("issuer")] public string Issuer { get; set; }
+
+ [JsonPropertyName("authorization_endpoint")]
+ public string AuthorizationEndpoint { get; set; }
+
+ [JsonPropertyName("token_endpoint")] public string TokenEndpoint { get; set; }
+
+ [JsonPropertyName("userinfo_endpoint")]
+ public string UserInfoEndpoint { get; set; }
+
+ [JsonPropertyName("jwks_uri")] public string JwksUri { get; set; }
+
+ [JsonPropertyName("response_types_supported")]
+ public List<string> ResponseTypesSupported { get; set; }
+
+ [JsonPropertyName("subject_types_supported")]
+ public List<string> SubjectTypesSupported { get; set; }
+
+ [JsonPropertyName("id_token_signing_alg_values_supported")]
+ public List<string> IdTokenSigningAlgValuesSupported { get; set; }
+}