| 59479 | let { authActions: o, errActions: i, name: a } = this.props |
| 59480 | ;(i.clear({ authId: a, type: 'auth', source: 'auth' }), o.logoutWithPersistOption([a])) |
| 59481 | } |
| 59482 | render() { |
| 59483 | let { |
| 59484 | schema: s, |
| 59485 | getComponent: o, |
| 59486 | authSelectors: i, |
| 59487 | errSelectors: a, |
| 59488 | name: u, |
| 59489 | specSelectors: _, |
| 59490 | } = this.props |
| 59491 | const w = o('Input'), |
| 59492 | x = o('Row'), |
| 59493 | C = o('Col'), |
| 59494 | j = o('Button'), |
| 59495 | L = o('authError'), |
| 59496 | B = o('JumpToPath', !0), |
| 59497 | $ = o('Markdown', !0), |
| 59498 | U = o('InitializedInput'), |
| 59499 | { isOAS3: V } = _ |
| 59500 | let z = V() ? s.get('openIdConnectUrl') : null |
| 59501 | const Y = 'implicit', |
| 59502 | Z = 'password', |
| 59503 | ee = V() ? (z ? 'authorization_code' : 'authorizationCode') : 'accessCode', |
| 59504 | ie = V() ? (z ? 'client_credentials' : 'clientCredentials') : 'application', |
| 59505 | ae = i.selectAuthPath(u) |
| 59506 | let ce = !!(i.getConfigs() || {}).usePkceWithAuthorizationCodeGrant, |
| 59507 | le = s.get('flow'), |
| 59508 | pe = le === ee && ce ? le + ' with PKCE' : le, |
| 59509 | de = s.get('allowedScopes') || s.get('scopes'), |
| 59510 | fe = !!i.authorized().get(u), |
| 59511 | ye = a.allErrors().filter((s) => s.get('authId') === u), |
| 59512 | be = !ye.filter((s) => 'validation' === s.get('source')).size, |
| 59513 | _e = s.get('description') |
| 59514 | return Re.createElement( |
| 59515 | 'div', |
| 59516 | null, |
| 59517 | Re.createElement( |
| 59518 | 'h4', |
| 59519 | null, |
| 59520 | u, |
| 59521 | ' (OAuth2, ', |
| 59522 | pe, |
| 59523 | ') ', |
| 59524 | Re.createElement(B, { path: ae }) |
| 59525 | ), |
| 59526 | this.state.appName |
| 59527 | ? Re.createElement('h5', null, 'Application: ', this.state.appName, ' ') |
| 59528 | : null, |
| 59529 | _e && Re.createElement($, { source: s.get('description') }), |
| 59530 | fe && Re.createElement('h6', null, 'Authorized'), |
| 59531 | z && |
| 59532 | Re.createElement( |
| 59533 | 'p', |
| 59534 | null, |
| 59535 | 'OpenID Connect URL: ', |
| 59536 | Re.createElement('code', null, z) |
| 59537 | ), |
| 59538 | (le === Y || le === ee) && |