Skip to content

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jojonium committed May 13, 2024
1 parent 5541b74 commit 20a1829
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/authz/oidc.go
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ func performIDPRequest(log telemetry.Logger, client *http.Client, uri string, fo
// https://openid.net/specs/openid-connect-core-1_0.html#TokenResponse
func isValidIDPNewTokensResponse(log telemetry.Logger, config *oidcv1.OIDCConfig, tokenResponse *idpTokensResponse) bool {
// token_type must be Bearer
if !strings.EqualFold(tokenResponse.TokenType, "Bearer") {
if !strings.EqualFold(tokenResponse.TokenType, "Bearer") {
log.Info("token type is not Bearer in token response", "token-type", tokenResponse.TokenType)
return false
}
Expand All @@ -553,7 +553,7 @@ func isValidIDPNewTokensResponse(log telemetry.Logger, config *oidcv1.OIDCConfig
// https://openid.net/specs/openid-connect-core-1_0.html#RefreshTokenResponse
func isValidIDPRefreshTokenResponse(log telemetry.Logger, tokenResponse *idpTokensResponse) bool {
// token_type must be Bearer
if !strings.EqualFold(tokenResponse.TokenType, "Bearer") {
if !strings.EqualFold(tokenResponse.TokenType, "Bearer") {
log.Info("token type is not Bearer in token response", "token-type", tokenResponse.TokenType)
return false
}
Expand Down

0 comments on commit 20a1829

Please sign in to comment.