> For the complete documentation index, see [llms.txt](https://doc.wearepatchworks.com/product-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.wearepatchworks.com/product-documentation/developer-hub/connector-builder/building-your-own-connector/3-authentication-methods/supported-authentication-types/oauth-2.md).

# OAuth 2

## Introduction

**OAuth 2** is a protocol which allows users to grant limited access to their resources/data in an application or service (e.g. NetSuite), to another application or service (in this case, Patchworks) without ever sharing their login credentials.

The authentication flow and associated configuration for OAuth 2 vary according to which **grant type** is used. Patchworks supports the following OAuth 2 grant types:

* [Authorisation code flow](/product-documentation/developer-hub/connector-builder/building-your-own-connector/3-authentication-methods/supported-authentication-types/oauth-2/oauth-2-authorisation-code.md)
* [Client credentials flow](/product-documentation/developer-hub/connector-builder/building-your-own-connector/3-authentication-methods/supported-authentication-types/oauth-2/oauth-2-authorisation-code.md)

**OAuth 2** provides a more streamlined, standardised approach than [OAuth 1](/product-documentation/developer-hub/connector-builder/building-your-own-connector/3-authentication-methods/supported-authentication-types/oauth-1.md) - it’s easier to implement and more suitable for a wide range of applications.
