Skip to content

Commit

Permalink
fix: address custom audience issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sheensantoscapadngan committed Nov 28, 2024
1 parent 84ff71f commit 105eb70
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ export const identityKubernetesAuthServiceFactory = ({
apiVersion: "authentication.k8s.io/v1",
kind: "TokenReview",
spec: {
token: serviceAccountJwt
token: serviceAccountJwt,
...(identityKubernetesAuth.allowedAudience ? { audiences: [identityKubernetesAuth.allowedAudience] } : {})
}
},
{
Expand Down

0 comments on commit 105eb70

Please sign in to comment.