Skip to content

Commit

Permalink
FEAT: Implementing new method to return client secret
Browse files Browse the repository at this point in the history
  • Loading branch information
fmattioli committed Jul 7, 2024
1 parent ff80afb commit 396fbb0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<PackageTags>keycloak</PackageTags>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<Version>1.2.0</Version>
<Authors>Felipe Mattioli</Authors>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ public string GetClientId()
return _authSettings.ClientId!;
}

public string GetClientSecret()
{
return _authSettings.ClientSecret!;
}

public Realm GetRealm(string realmName)
{
return _authSettings.Realms.FirstOrDefault(r => r.Name == realmName)!;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ public interface IAuthService
{
string GetTenantFromToken();
string GetClientId();
string GetClientSecret();
Realm GetRealm(string realmName);
Guid GetUserFromToken();
}
Expand Down

0 comments on commit 396fbb0

Please sign in to comment.