![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/rentpix.corals.io/vendor/swagger-api/swagger-ui/docker/configurator/ |
const translator = require("./translator") const indent = require("./helpers").indent const oauthBlockSchema = { OAUTH_CLIENT_ID: { type: "string", name: "clientId" }, OAUTH_CLIENT_SECRET: { type: "string", name: "clientSecret", onFound: () => console.warn("Swagger UI warning: don't use `OAUTH_CLIENT_SECRET` in production!") }, OAUTH_REALM: { type: "string", name: "realm" }, OAUTH_APP_NAME: { type: "string", name: "appName" }, OAUTH_SCOPE_SEPARATOR: { type: "string", name: "scopeSeparator" }, OAUTH_SCOPES: { type: "string", name: "scopes" }, OAUTH_ADDITIONAL_PARAMS: { type: "object", name: "additionalQueryStringParams" }, OAUTH_USE_BASIC_AUTH: { type: "boolean", name: "useBasicAuthenticationWithAccessCodeGrant" }, OAUTH_USE_PKCE: { type: "boolean", name: "usePkceWithAuthorizationCodeGrant" } } module.exports = function oauthBlockBuilder(env) { const translatorResult = translator(env, { schema: oauthBlockSchema }) if(translatorResult) { return ( `ui.initOAuth({ ${indent(translatorResult, 2)} })`) } return `` }