# Authentication

## OAUTH2

To learn more about Oauth2 and Authentication around REST, the Postman help section gives a good in depth look. It can be found at:  <https://learning.postman.com/docs/sending-requests/authorization/>

In Flow the connection can either be set up as it's own connector (External Oauth2 provider), or  set it up within the Rest-connector itself. This is an example with Flow set up against Salesforce with 5 input parameters (string). The response is captured under the OK response.&#x20;

&#x20;

![Salesforce example with Oauth2](https://1485304389-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzBrnkjB1FHaXbUzlzZ%2F-Mc88l3LNIT7DVkbNLY1%2F-Mc89MWO8yvtcG-msSVu%2Fimage.png?alt=media\&token=240d2a90-aff4-4075-88d9-81978bf363cc)

If you choose to set up the authentication with the Oauth2-connector it may look like this which is an example of a connection with Microsoft Office 365

![](https://1485304389-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzBrnkjB1FHaXbUzlzZ%2F-Mc88l3LNIT7DVkbNLY1%2F-Mc8CFQVtu_PQwRAlt9F%2Fimage.png?alt=media\&token=df6d658d-7f9c-4864-98c8-c7da60046f4e)

![](https://1485304389-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzBrnkjB1FHaXbUzlzZ%2F-Mc88l3LNIT7DVkbNLY1%2F-Mc8CeXxDgNDYBih0Vak%2Fimage.png?alt=media\&token=a9c96043-7662-46e5-a5df-b903c8d77c80)
