Skip to content

Commit

Permalink
Added Keycloak credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
gterdem committed Jul 14, 2023
1 parent 08186bc commit 32b3879
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Gte/Abp/Keycloak/AbpKeycloakClientOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,21 @@ public class AbpKeycloakClientOptions
/// The URL of the keycloak server. The default is "http://localhost:8080/"
/// </summary>
public Uri Url { get; set; }

/// <summary>
/// The name of the realm that the keycloak client connects to. The default is "master".
/// </summary>
public string? RealmName { get; set; }

/// <summary>
/// The admin user name to login to the keycloak server.
/// </summary>
public string? AdminUserName { get; set; }

/// <summary>
/// The admin password to login to the keycloak server.
/// </summary>
public string? AdminUserPassword { get; set; }

public AbpKeycloakClientOptions()
{
Expand Down
2 changes: 2 additions & 0 deletions Gte/Abp/Keycloak/AbpKeycloakModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ public override void ConfigureServices(ServiceConfigurationContext context)
{
options.Url = new Uri(configuration["Keycloak:url"]!);
options.RealmName = configuration["Keycloak:realmName"];
options.AdminUserName = configuration["Keycloak:adminUsername"];
options.AdminUserPassword = configuration["Keycloak:adminPassword"];
}
);
}
Expand Down

0 comments on commit 32b3879

Please sign in to comment.