Skip to content

Commit

Permalink
fixing the wrong casing
Browse files Browse the repository at this point in the history
  • Loading branch information
yevgenkre committed Jun 7, 2024
1 parent 78ae515 commit dde6eca
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions DuoUniversal/Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class Client

internal bool UseDuoCodeAttribute { get; set; } = false;

internal string audience_for_saml_response { get; set; } = null;
internal string AudienceForSamlResponse { get; set; } = null;

internal Client()
{
Expand Down Expand Up @@ -85,7 +85,7 @@ public async Task<bool> DoHealthCheck(bool handleException = true)
/// <returns>A URL to redirect the user's browser to</returns>
public string GenerateAuthUri(string username, string state)
{
ValidateAuthUriInputs(username, state, audience_for_saml_response);
ValidateAuthUriInputs(username, state, AudienceForSamlResponse);

string authEndpoint = CustomizeApiUri(AUTH_ENDPOINT);

Expand Down Expand Up @@ -203,9 +203,9 @@ private string GenerateAuthJwt(string username, string state, string authEndpoin
};

// issuer parameter is used for the Epic Hyperdrive integration only
if (audience_for_saml_response != null)
if (AudienceForSamlResponse != null)
{
additionalClaims[Labels.AUDIENCE_FOR_SAML_RESPONSE] = audience_for_saml_response;
additionalClaims[Labels.AUDIENCE_FOR_SAML_RESPONSE] = AudienceForSamlResponse;
}

if (UseDuoCodeAttribute)
Expand Down Expand Up @@ -425,13 +425,13 @@ public ClientBuilder UseHttpProxy(IWebProxy proxy)
}

/// <summary>
/// Set an audienceIssuer value to generate a SAML response for the Epic integration
/// Set an audienceForSamlResponse value to generate a SAML response for the Epic integration
/// </summary>
/// <param name="audienceIssuer">Specific parameter for the Epic integration for the SAML response generation</param>
/// <param name="audienceForSamlResponse">Specific parameter for the Epic integration for the SAML response generation</param>
/// <returns>The ClientBuilder</returns>
public ClientBuilder UseAudienceForSamlResponse(string audienceIssuer)
public ClientBuilder UseAudienceForSamlResponse(string audienceForSamlResponse)
{
_audienceForSamlResponse = audienceIssuer;
_audienceForSamlResponse = audienceForSamlResponse;

return this;
}
Expand All @@ -451,7 +451,7 @@ public Client Build()
ApiHost = _apiHost,
RedirectUri = _redirectUri,
UseDuoCodeAttribute = _useDuoCodeAttribute,
audience_for_saml_response = _audienceForSamlResponse
AudienceForSamlResponse = _audienceForSamlResponse
};

var httpClient = BuildHttpClient();
Expand Down

0 comments on commit dde6eca

Please sign in to comment.