feat(docker): add OAUTH_USE_BASIC_AUTH env (#7474)
Makes the last `initOAuth` variable configurable via environment variables in the swagger-ui docker image. Co-authored-by: Christopher Giroir <chrisgiroir@improbable.io> Co-authored-by: Tim Lai <timothy.lai@gmail.com>
This commit is contained in:
committed by
GitHub
parent
bd19c9c60c
commit
c81d7f0f30
@@ -22,6 +22,7 @@ describe("docker: env translator - oauth block", function() {
|
||||
OAUTH_APP_NAME: ``,
|
||||
OAUTH_SCOPE_SEPARATOR: "",
|
||||
OAUTH_ADDITIONAL_PARAMS: ``,
|
||||
OAUTH_USE_BASIC_AUTH: false,
|
||||
OAUTH_USE_PKCE: false
|
||||
}
|
||||
|
||||
@@ -33,6 +34,7 @@ describe("docker: env translator - oauth block", function() {
|
||||
appName: "",
|
||||
scopeSeparator: "",
|
||||
additionalQueryStringParams: undefined,
|
||||
useBasicAuthenticationWithAccessCodeGrant: false,
|
||||
usePkceWithAuthorizationCodeGrant: false,
|
||||
})`))
|
||||
})
|
||||
@@ -45,6 +47,7 @@ describe("docker: env translator - oauth block", function() {
|
||||
OAUTH_APP_NAME: `myAppName`,
|
||||
OAUTH_SCOPE_SEPARATOR: "%21",
|
||||
OAUTH_ADDITIONAL_PARAMS: `{ "a": 1234, "b": "stuff" }`,
|
||||
OAUTH_USE_BASIC_AUTH: true,
|
||||
OAUTH_USE_PKCE: true
|
||||
}
|
||||
|
||||
@@ -56,6 +59,7 @@ describe("docker: env translator - oauth block", function() {
|
||||
appName: "myAppName",
|
||||
scopeSeparator: "%21",
|
||||
additionalQueryStringParams: { "a": 1234, "b": "stuff" },
|
||||
useBasicAuthenticationWithAccessCodeGrant: true,
|
||||
usePkceWithAuthorizationCodeGrant: true,
|
||||
})`))
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user