# 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](/files/-Mc89MWO8yvtcG-msSVu)

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

![](/files/-Mc8CFQVtu_PQwRAlt9F)

![](/files/-Mc8CeXxDgNDYBih0Vak)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.novacura.com/flow-development-guidelines/advance-flow-features/rest-api/authentication.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
