MCPcopy Create free account
hub / github.com/dataease/SQLBot / authorizeApplication

Function authorizeApplication

frontend/public/swagger-ui-bundle.js:31723–31735  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

31721 }
31722 const authorizeApplication =
31723 (s) =>
31724 ({ authActions: o }) => {
31725 let { schema: i, scopes: a, name: u, clientId: _, clientSecret: w } = s,
31726 x = { Authorization: 'Basic ' + utils_btoa(_ + ':' + w) },
31727 C = { grant_type: 'client_credentials', scope: a.join(' ') }
31728 return o.authorizeRequest({
31729 body: buildFormData(C),
31730 name: u,
31731 url: i.get('tokenUrl'),
31732 auth: s,
31733 headers: x,
31734 })
31735 },
31736 authorizeAccessCodeWithFormParams =
31737 ({ auth: s, redirectUrl: o }) =>
31738 ({ authActions: i }) => {

Callers

nothing calls this directly

Calls 3

utils_btoaFunction · 0.85
buildFormDataFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected