Foundation Data & Integrations
Outbound Authentication for In...
Managed - OAuth2
3 min
servicely supports external oauth providers for integration with third party systems oauth2 providers providers need to be defined in the systemoauthprovider table true left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type example system api outbound tokens systemapioutboundtoken records define a specific instance of the usage of a provider, with specific credentials for example, you may have a single google oauth provider, but have access multiple google services, each with different credentials each of those would be modelled as a systemapioutboundtoken true 155left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type example to request a new token from the provider, press the ‘get authorization token’ button you should be presented with the providers sign in page example below for a microsoft email authentication setup after authorization, you should be returned to the systemapioutboundtoken form using from the scripting environment to use the systemapioutboundtoken from the scripting environment, simply call the ‘ apitokenauth ' method of any of the outbound http methods the oauth2 signature will be applied, and any expired tokens will automatically be refreshed before the request is made