Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
NikiforovAll committed May 6, 2024
1 parent eeb5e50 commit c6f60de
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ public sealed class KeycloakAuthorizationServerOptions : KeycloakInstallationOpt
/// </summary>
public const string Section = ConfigurationConstants.ConfigurationPrefix;


/// <summary>
/// Gets or sets the source authentication scheme used for header propagation.
/// </summary>
Expand All @@ -35,7 +34,6 @@ public sealed class KeycloakAuthorizationServerOptions : KeycloakInstallationOpt
/// Represents the mode for validating scopes.
/// </summary>
public ScopesValidationMode ScopesValidationMode { get; set; } = ScopesValidationMode.AllOf;

}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public ProtectedResourcePolicyProvider(IOptions<AuthorizationOptions> options)
return registeredPolicy;
}

// TODO: policy should be cached and managed properly, not production ready
// Policy should be cached and managed properly, probably not production ready
// https://0xnf.github.io/posts/oauthserver/15/#dynamically-handling-policies
var builder = new AuthorizationPolicyBuilder();
var tokens = policyName.Split('#');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,14 +145,14 @@ public static IHttpClientBuilder AddAuthorizationServer(
services.AddSingleton<IAuthorizationPolicyProvider, ProtectedResourcePolicyProvider>();
}

var clientBuilder = services.AddAuthorizationServerClient(configureClient);
var builder = services.AddAuthorizationServerClient(configureClient);

if (!KeycloakAuthorizationServerOptions.DisableHeaderPropagation)
{
clientBuilder.AddHeaderPropagation();
builder.AddHeaderPropagation();
}

return clientBuilder;
return builder;
}

/// <summary>
Expand Down

0 comments on commit c6f60de

Please sign in to comment.