Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Cache
indextrue
refresh100d
showRefreshtrue
iddoc
titleRefresh page
showDatetrue
retryEnable

servoy sReturnTypes2100%height: 30px;2Supported ClientssWordListNGClient

servoy sSummary12%30%58%height: 30px;3Methods SummaryCreates an OAuth service that can be used to obtain an access token and access protected data.Creates an OAuth service configurator.

functionservoy sDetail2100%height:30px2Methods DetailsgetOAuthServicename

getOAuthService(provider, clientId, clientSecret, scope, state,

callbackmethod

deeplinkmethod)

dessIndent
Creates an OAuth service that can be used to obtain an access token and access protected data.
This method will be deprecated in the following versions, the preferred way is plugins.oauth.serviceBuilder with a callback function.
prs

Parameters

sIndentprovideran OAuth provider id, see plugins.oauth.OAuthProvidersclientIdyour app idclientSecretyour client secretscopeconfigures the OAuth scope. This is only necessary in some APIs (like Microsoft's).stateconfigures the anti forgery session state. This is available in some APIs (like Facebook's).
callbackmethoddeeplinkmethodthe name of a global method, which will get the code returned by the OAuth providerret

Returns

sIndent
clients

Supported Clients

sIndentNGClient
sam

Sample

sIdentjavascript
lastDetailRow
serviceBuildername

serviceBuilder(clientID)

dessIndent
Creates an OAuth service configurator.
prs

Parameters

sIndentclientID ;
ret

Returns

sIndent
clients

Supported Clients

sIndentNGClient
sam

Sample

sIdentjavascript
lastDetailRow