# OAuth

Frends offers seamless integration with [OAuth](https://oauth.net), enabling you to effortlessly connect and automate data flows involving OAuth authentication and authorization.

Frends provides tasks for performing all core OAuth operations.

By leveraging Frends' task-based approach, you can configure and customize OAuth integrations according to your specific requirements. Frends offers a wide range of tasks that facilitate integrations to a variety of systems and protocols.

## Important note

***Handling JWT tokens directly implies user authentication and authorizations. Those are complex topics and should be taken seriously. In most cases it is advisable to consider ready-made solutions for JWT token issuing and validation.***

Frends has a built-in features for token validation and REST API call authentication and authorization. Those should be used instead of manual token validation inside of the process. ***Read more about Frends built-in features*** [***here***](https://docs.frends.com/en/articles/2206533-oauth-settings)***.***

## Use cases

Below you will find typical use cases for OAuth integrations and how they are implemented in Frends.

### Create a JWT token

By using the HTTP trigger and the [`CreateJWTToken`](https://docs.frends.com/tasks/tasks/oauth/createjwttoken) task, we can create an integration that creates a JWT token in reply to token request over HTTP.

<figure><img src="https://2096450325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FevBo49UTUjEN84O2WPl6%2Fuploads%2Fgit-blob-78c70d85d5aca735b7b24ad56093af0443273359%2Foauth-create-jwt.svg?alt=media" alt=""><figcaption><p>Create JWT token</p></figcaption></figure>

### Parse JWT token

By using the HTTP trigger and the [`ParseToken`](https://docs.frends.com/tasks/tasks/oauth/parsetoken) task, we can create an integration that parses an incoming JWT token.

<figure><img src="https://2096450325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FevBo49UTUjEN84O2WPl6%2Fuploads%2Fgit-blob-1244c2751a275b1f2b0aa8ab5888af017dbae3b9%2Foauth-parse-jwt.svg?alt=media" alt=""><figcaption><p>SQL</p></figcaption></figure>
