> For the complete documentation index, see [llms.txt](https://apis.rightrev.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://apis.rightrev.com/getting-started/using-implicit-or-password-flow.md).

# Using Implicit or Password Flow

## **To Authenticate and Execute RightRev API using Implicit or Password Flow**

* Go to top of the Swagger. In the **Servers** drop-down select the OAuth server URL, provide the **tenantId** and **Environment** and then click on **Authorize** button as shown in the screenshot below.<br>

  <figure><img src="https://3364757261-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F193S0RVwbPrcp6u9CoPJ%2Fuploads%2FsEgnewCVDMedkiUOKvDl%2FCapture1.png?alt=media&amp;token=ef8b7df8-1b30-44c5-b3ed-3ad89902122f" alt=""><figcaption></figcaption></figure>
* Generate token using one of the flows

### For Implicit Flow

1. Provide the **client\_id** value as Swagger and click **Authorize** button as shown in the screenshot below\ <br>

   <figure><img src="https://3364757261-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F193S0RVwbPrcp6u9CoPJ%2Fuploads%2FEZcyACSlK4ENiwvIpwaX%2FCapture3.png?alt=media&amp;token=c3bb5632-da40-492e-85cb-fa3a46c42efe" alt=""><figcaption></figcaption></figure>
2. Page will open on the browser to authenticate, enter credentials and login.&#x20;
3. Once the token is validated, you will be viewing the below screenshot and then click on **Close** button<br>

   <figure><img src="https://3364757261-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F193S0RVwbPrcp6u9CoPJ%2Fuploads%2FnsZVwJMugUB1n7h2Thdc%2Fimage1.png?alt=media&amp;token=dd8cb2f7-d097-4e54-a7c1-1cbe66a9de4e" alt=""><figcaption></figcaption></figure>

### For Password Flow

1. Enter provided **client\_id**, **client\_secret**, **username** and **password**
2. Click on **Authorize** button<br>

   <figure><img src="https://3364757261-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F193S0RVwbPrcp6u9CoPJ%2Fuploads%2FFGp1hMus2xAG9rdXGJ24%2FCapture4.png?alt=media&amp;token=60ebe44c-1895-4ba8-ab3c-25610b0ffc18" alt=""><figcaption></figcaption></figure>
3. Once the token is validated, you will be viewing the below screenshot and then click on **Close** button<br>

   <figure><img src="https://3364757261-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F193S0RVwbPrcp6u9CoPJ%2Fuploads%2Fwp3NY8VunoFExTIwwyNx%2FCapture7.png?alt=media&amp;token=6c061a73-ec26-44da-b4ed-6160fd744546" alt=""><figcaption></figcaption></figure>
4. Click on **Close** button
5. Once you have generated the token now change the URL in the **Servers** drop-down to point to the API server. Now provide the same **tenantId** and **Environment** for which you have generated a token<br>

   <figure><img src="https://3364757261-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F193S0RVwbPrcp6u9CoPJ%2Fuploads%2F97quOeA4fkCiPOwZux5G%2FCapture5.png?alt=media&amp;token=773ce1c8-7ed3-45e6-887e-9f8498dc57f6" alt=""><figcaption></figcaption></figure>

#### Once you are done with the above steps, click on any one of the APIs and try it out.

{% hint style="info" %}
Token time interval is 5 minutes
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://apis.rightrev.com/getting-started/using-implicit-or-password-flow.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
