From 27f612d1959624e70077ff69ba8724c727e8efc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Chalet?= Date: Tue, 22 Apr 2025 12:59:44 +0200 Subject: [PATCH] Fix the OpenIddictClientModels records to only use init setters --- src/OpenIddict.Client/OpenIddictClientModels.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/OpenIddict.Client/OpenIddictClientModels.cs b/src/OpenIddict.Client/OpenIddictClientModels.cs index 2498cc88..7fc803ca 100644 --- a/src/OpenIddict.Client/OpenIddictClientModels.cs +++ b/src/OpenIddict.Client/OpenIddictClientModels.cs @@ -169,12 +169,12 @@ public static class OpenIddictClientModels /// Gets or sets the optional identity token hint that will /// be sent to the authorization server, if applicable. /// - public string? IdentityTokenHint { get; set; } + public string? IdentityTokenHint { get; init; } /// /// Gets or sets the optional login hint that will be sent to the authorization server, if applicable. /// - public string? LoginHint { get; set; } + public string? LoginHint { get; init; } /// /// Gets or sets the application-specific properties that will be added to the context. @@ -268,12 +268,12 @@ public static class OpenIddictClientModels /// Gets or sets the optional identity token hint that will /// be sent to the authorization server, if applicable. /// - public string? IdentityTokenHint { get; set; } + public string? IdentityTokenHint { get; init; } /// /// Gets or sets the optional login hint that will be sent to the authorization server, if applicable. /// - public string? LoginHint { get; set; } + public string? LoginHint { get; init; } /// /// Gets or sets the application-specific properties that will be added to the context. @@ -471,7 +471,7 @@ public static class OpenIddictClientModels /// /// Gets or sets a boolean indicating whether userinfo should be disabled. /// - public bool DisableUserInfo { get; set; } + public bool DisableUserInfo { get; init; } /// /// Gets or sets the custom grant type that will be used for the authentication request. @@ -595,7 +595,7 @@ public static class OpenIddictClientModels /// /// Gets or sets a boolean indicating whether userinfo should be disabled. /// - public bool DisableUserInfo { get; set; } + public bool DisableUserInfo { get; init; } /// /// Gets or sets the maximum duration during which token requests will be sent @@ -900,7 +900,7 @@ public static class OpenIddictClientModels /// /// Gets or sets a boolean indicating whether userinfo should be disabled. /// - public bool DisableUserInfo { get; set; } + public bool DisableUserInfo { get; init; } /// /// Gets or sets the password that will be sent to the authorization server. @@ -1025,7 +1025,7 @@ public static class OpenIddictClientModels /// Gets or sets a boolean indicating whether userinfo should be disabled, which may be required /// when sending a refresh token that was acquired using a user-less flow (e.g client credentials). /// - public bool DisableUserInfo { get; set; } + public bool DisableUserInfo { get; init; } /// /// Gets or sets the application-specific properties that will be added to the context.