MCPcopy Index your code
hub / github.com/dataease/SQLBot / constructor

Method constructor

frontend/public/swagger-ui-bundle.js:59395–59417  ·  view source on GitHub ↗
(s, o)

Source from the content-addressed store, hash-verified

59393 }))
59394 }
59395 class Oauth2 extends Re.Component {
59396 constructor(s, o) {
59397 super(s, o)
59398 let { name: i, schema: a, authorized: u, authSelectors: _ } = this.props,
59399 w = u && u.get(i),
59400 x = _.getConfigs() || {},
59401 C = (w && w.get('username')) || '',
59402 j = (w && w.get('clientId')) || x.clientId || '',
59403 L = (w && w.get('clientSecret')) || x.clientSecret || '',
59404 B = (w && w.get('passwordType')) || 'basic',
59405 $ = (w && w.get('scopes')) || x.scopes || []
59406 ;('string' == typeof $ && ($ = $.split(x.scopeSeparator || ' ')),
59407 (this.state = {
59408 appName: x.appName,
59409 name: i,
59410 schema: a,
59411 scopes: $,
59412 clientId: j,
59413 clientSecret: L,
59414 username: C,
59415 password: '',
59416 passwordType: B,
59417 }))
59418 }
59419 close = (s) => {
59420 s.preventDefault()

Callers

nothing calls this directly

Calls 2

getConfigsMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected