diff --git a/src/core/components/auth/oauth2.jsx b/src/core/components/auth/oauth2.jsx index 6c9cfde91e3..7fec252f5a7 100644 --- a/src/core/components/auth/oauth2.jsx +++ b/src/core/components/auth/oauth2.jsx @@ -125,10 +125,10 @@ export default class Oauth2 extends React.Component { let oidcUrl = isOAS3() ? schema.get("openIdConnectUrl") : null // Auth type consts - const IMPLICIT = "implicit" - const PASSWORD = "password" - const ACCESS_CODE = isOAS3() ? (oidcUrl ? "authorization_code" : "authorizationCode") : "accessCode" - const APPLICATION = isOAS3() ? (oidcUrl ? "client_credentials" : "clientCredentials") : "application" + const AUTH_FLOW_IMPLICIT = "implicit" + const AUTH_FLOW_PASSWORD = "password" + const AUTH_FLOW_ACCESS_CODE = isOAS3() ? (oidcUrl ? "authorization_code" : "authorizationCode") : "accessCode" + const AUTH_FLOW_APPLICATION = isOAS3() ? (oidcUrl ? "client_credentials" : "clientCredentials") : "application" let flow = schema.get("flow") let scopes = schema.get("allowedScopes") || schema.get("scopes") @@ -147,12 +147,12 @@ export default class Oauth2 extends React.Component { { isAuthorized &&
OpenID Connect URL: { oidcUrl }
Authorization URL: { schema.get("authorizationUrl") }
Token URL: { schema.get("tokenUrl") }
Authorization URL: { schema.get("authorizationUrl") }
Token URL: { schema.get("tokenUrl") }
Flow: { schema.get("flow") }
******