Skip to content

Commit

Permalink
revert changes made in Azure#3222 to ensureAccessTokenClaims
Browse files Browse the repository at this point in the history
  • Loading branch information
cadenmarchese committed Oct 24, 2023
1 parent 0a42348 commit 20a2f25
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pkg/validate/openshiftcluster_validatedynamic.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,7 @@ func ensureAccessTokenClaims(ctx context.Context, spTokenCredential azcore.Token
options := policy.TokenRequestOptions{Scopes: scopes}
token, err := spTokenCredential.GetToken(ctx, options)
if err != nil {
return api.NewCloudError(
http.StatusBadRequest,
api.CloudErrorCodeInvalidServicePrincipalToken,
"properties.servicePrincipalProfile",
"The provided service principal was unable to request a valid access token. Please confirm your service principal credentials, and try again.")
return err
}

var claims jwt.MapClaims
Expand Down

0 comments on commit 20a2f25

Please sign in to comment.