Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/feature/ciba' into feature/ciba
Browse files Browse the repository at this point in the history
# Conflicts:
#	Abblix.Oidc.Server/Model/ConfigurationResponse.cs
  • Loading branch information
kirill-abblix committed Sep 30, 2024
2 parents 59fd6f8 + 358ac72 commit 7ae454a
Showing 1 changed file with 4 additions and 36 deletions.
40 changes: 4 additions & 36 deletions Abblix.Oidc.Server/Model/ConfigurationResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ namespace Abblix.Oidc.Server.Model;
public record ConfigurationResponse
{
/// <summary>
/// Nested class containing string constants for JSON property names used in the configuration response.
/// These names map directly to the fields returned by the OpenID Connect discovery document, ensuring
/// proper serialization and deserialization of configuration data.
/// Nested class containing string constants for JSON property names.
/// </summary>
public static class Parameters
{
Expand Down Expand Up @@ -70,10 +68,6 @@ public static class Parameters
public const string PushedAuthorizationRequestEndpoint = "pushed_authorization_request_endpoint";
public const string RequirePushedAuthorizationRequests = "require_pushed_authorization_requests";
public const string RequireSignedRequestObject = "require_signed_request_object";
public const string BackchannelTokenDeliveryModesSupported = "backchannel_token_delivery_modes_supported";
public const string BackchannelAuthenticationEndpoint = "backchannel_authentication_endpoint";
public const string BackchannelAuthenticationRequestSigningAlgValuesSupported = "backchannel_authentication_request_signing_alg_values_supported";
public const string BackchannelUserCodeParameterSupported = "backchannel_user_code_parameter_supported";
}

/// <summary>
Expand Down Expand Up @@ -139,8 +133,7 @@ public static class Parameters
public Uri? RegistrationEndpoint { init; get; }

/// <summary>
/// The URL for the Pushed Authorization Request endpoint, which allows clients to pre-register authorization
/// requests.
/// The URL for the Pushed Authorization Request endpoint, which allows clients to pre-register authorization requests.
/// </summary>
[JsonPropertyName(Parameters.PushedAuthorizationRequestEndpoint)]
public Uri? PushedAuthorizationRequestEndpoint { get; set; }
Expand All @@ -149,7 +142,7 @@ public static class Parameters
/// Indicates whether the provider requires clients to use the Pushed Authorization Requests (PAR) only.
/// </summary>
[JsonPropertyName(Parameters.RequirePushedAuthorizationRequests)]
public bool? RequirePushedAuthorizationRequests { get; set; }
public bool RequirePushedAuthorizationRequests { get; set; } //TODO use it!

/// <summary>
/// Indicates whether the OpenID Provider supports front channel logout, allowing clients to log out users
Expand Down Expand Up @@ -284,30 +277,5 @@ public static class Parameters
/// integrity of request objects received by the provider.
/// </summary>
[JsonPropertyName(Parameters.RequireSignedRequestObject)]
public bool? RequireSignedRequestObject { init; get; } //TODO use it!

/// <summary>
/// Lists the supported backchannel token delivery modes for client-initiated backchannel authentication.
/// </summary>
[JsonPropertyName(Parameters.BackchannelTokenDeliveryModesSupported)]
public IEnumerable<string>? BackChannelTokenDeliveryModesSupported { get; init; }

/// <summary>
/// The backchannel authentication endpoint for initiating CIBA (Client-Initiated Backchannel Authentication)
/// requests.
/// </summary>
[JsonPropertyName(Parameters.BackchannelAuthenticationEndpoint)]
public Uri? BackChannelAuthenticationEndpoint { get; init; }

/// <summary>
/// Lists the supported signing algorithms for backchannel authentication requests.
/// </summary>
[JsonPropertyName(Parameters.BackchannelAuthenticationRequestSigningAlgValuesSupported)]
public IEnumerable<string>? BackChannelAuthenticationRequestSigningAlgValuesSupported { get; init; }

/// <summary>
/// Indicates whether the OpenID Provider supports the backchannel user code parameter for CIBA.
/// </summary>
[JsonPropertyName(Parameters.BackchannelUserCodeParameterSupported)]
public bool? BackChannelUserCodeParameterSupported { get; init; }
public bool RequireSignedRequestObject { init; get; } //TODO use it!
}

0 comments on commit 7ae454a

Please sign in to comment.