servoy sReturnTypes2100%height: 30px;2Supported ClientssWordListNGClientservoy sSummary12%30%58%height: 30px;3Methods SummaryCreate a custom OAuth api builder.Creates an OAuth service that can be used to obtain an access token and access protected data.Help method to get the redirect URL which needs to be configured on the OAuth provider application page.Creates an OAuth service configurator.functionservoy sDetail2100%height:30px2Methods DetailscustomApiname
sIndentauthorizationBaseUrlthe base URL where you should redirect your users to authenticate your applicationaccessTokenEndpointthe URL that receives the access token requestsret
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).deeplinkmethodthe name of a global method, which will get the code returned by the OAuth providerret
Help method to get the redirect URL which needs to be configured on the OAuth provider application page.
The url is computed based on what is set on the service builder: deeplink method name, response mode and response type.