Add docs for K8s auth method

This commit is contained in:
Tuan Dang
2024-05-14 18:02:05 -07:00
parent 2b91ec5ae9
commit 0d89aa8607
8 changed files with 245 additions and 8 deletions
@@ -115,9 +115,11 @@ export const identityKubernetesAuthServiceFactory = ({
"Content-Type": "application/json",
Authorization: `Bearer ${tokenReviewerJwt}`
},
httpsAgent: new https.Agent({
ca: caCert,
rejectUnauthorized: false // TODO: change to [true]
...(caCert && {
httpsAgent: new https.Agent({
ca: caCert,
rejectUnauthorized: true
})
})
}
);