mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Update identity-kubernetes-auth-service.ts
This commit is contained in:
@@ -79,7 +79,7 @@ export const identityKubernetesAuthServiceFactory = ({
|
|||||||
|
|
||||||
const callbackResult = await withGatewayProxy(
|
const callbackResult = await withGatewayProxy(
|
||||||
async (port) => {
|
async (port) => {
|
||||||
const res = await gatewayCallback("localhost", port);
|
const res = await gatewayCallback("https://localhost", port);
|
||||||
return res;
|
return res;
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -138,11 +138,7 @@ export const identityKubernetesAuthServiceFactory = ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
const tokenReviewCallback = async (host: string = identityKubernetesAuth.kubernetesHost, port?: number) => {
|
const tokenReviewCallback = async (host: string = identityKubernetesAuth.kubernetesHost, port?: number) => {
|
||||||
let baseUrl = `https://${host}`;
|
const baseUrl = port ? `${host}:${port}` : host;
|
||||||
|
|
||||||
if (port) {
|
|
||||||
baseUrl += `:${port}`;
|
|
||||||
}
|
|
||||||
|
|
||||||
const res = await axios
|
const res = await axios
|
||||||
.post<TCreateTokenReviewResponse>(
|
.post<TCreateTokenReviewResponse>(
|
||||||
|
|||||||
Reference in New Issue
Block a user