-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: refactor authorization package - add auth server (#71)
- Loading branch information
1 parent
fe51770
commit 47d8f53
Showing
27 changed files
with
308 additions
and
172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
samples/AuthorizationAndCleanArchitecture/Controllers/AuthZController.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...es.Sdk/AuthZ/IKeycloakProtectionClient.cs → ...zationServer/IKeycloakProtectionClient.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
...eycloak.AuthServices.Authorization/AuthorizationServer/KeycloakProtectionClientOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
namespace Keycloak.AuthServices.Authorization.AuthorizationServer; | ||
|
||
using Common; | ||
|
||
/// <summary> | ||
/// Defines a set of options used to perform Authorization Server calls | ||
/// </summary> | ||
public sealed class KeycloakProtectionClientOptions : KeycloakInstallationOptions | ||
{ | ||
/// <summary> | ||
/// Default section name. | ||
/// </summary> | ||
public const string Section = ConfigurationConstants.ConfigurationPrefix; | ||
|
||
/// <summary> | ||
/// Gets or sets the source authentication scheme used for header propagation. | ||
/// </summary> | ||
public string SourceAuthenticationScheme { get; set; } = "Bearer"; | ||
|
||
/// <summary> | ||
/// Gets or sets a value indicating whether to use the protected resource policy provider. | ||
/// </summary> | ||
/// <remarks> | ||
/// When set to true, the protected resource policy provider will be used to dynamically register policies based on their names. | ||
/// </remarks> | ||
public bool UseProtectedResourcePolicyProvider { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.