# Enabling OAuth2 Authorization in your Google Account

OAuth2 authorization requires some configuration with your service provider.

1\. Log in to your Google Account.

Open a browser window and log into the Google account from which you intend to download emails or through which you intend to send emails using Email This Issue.

2\. Access Google Console.

1. Open [Google Developer Console](https://console.developers.google.com/flows/enableapi?apiid=gmail\&credential=client_key\&pli=1) in your browser. Make sure your are logged in as the Google Account you want to use.
2. Click **Continue** when the following screen appears:

![](https://4173056255-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FY44m7ZY1jU4Arh2tzwNn%2Fuploads%2Fr9IPDZ1Vdgtwp93kYVVm%2Fdc3603a0-2030-4f3c-b3c7-b6426cc6454f.png?alt=media\&token=1333d5f1-a85b-48d1-bb4a-b6fcdcce4fb9)

3\. Select a project or create a new project.

At this point you need to choose: if you have already set up Email This Issue as a project, select it in the dropdown list. Otherwise, start creating new project by clicking **Continue**.

![](https://4173056255-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FY44m7ZY1jU4Arh2tzwNn%2Fuploads%2FVw4F3U3kBWMiWl6qKipu%2Fimage.png?alt=media\&token=7a647ae2-724d-415c-b0d5-facdb3317236)

## Creating a new project <a href="#enableoauth2authorizationinyourgoogleaccount-step4-confirmapiisenabled" id="enableoauth2authorizationinyourgoogleaccount-step4-confirmapiisenabled"></a>

If you choose to create a project because Email This Issue does not exist yet, you have to do the following:&#x20;

1. Confirm that API is enabled. If you do it the first time, you’ll see this page. Click **Go to Credentials**.

![Step 5 - Set up Credentials](https://4173056255-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FY44m7ZY1jU4Arh2tzwNn%2Fuploads%2Fwhb0jKfmNdPq34GARm4m%2Fimage.png?alt=media\&token=447f11de-0f91-4490-adbd-f4c023c7f0f8)

When the following screen appears, make sure you configure it as  in the screenshot. If completed, click **What credentials do I need?**

![](https://4173056255-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FY44m7ZY1jU4Arh2tzwNn%2Fuploads%2FJcbMbKLJlUIHVCrNRW02%2Fimage.png?alt=media\&token=c6182138-2ddc-4793-ac81-d72f9e680777)

2\. Set up Consent.

When the following screen appears, click **Set up Consent Screen**.

![](https://4173056255-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FY44m7ZY1jU4Arh2tzwNn%2Fuploads%2F1P05N5Sfca2rgvThCS6s%2Fimage.png?alt=media\&token=2d289604-60cd-427b-95ef-ce57831abb6d)

When the following screen appears, you can select **Internal** if you are connecting to an account in your organization (you use GSuite). If you are connecting to a regular Gmail account, select **External**.

![](https://4173056255-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FY44m7ZY1jU4Arh2tzwNn%2Fuploads%2Fswiu9auf3efPTtCXLJVI%2Fimage.png?alt=media\&token=caba9fea-de69-4370-9140-d1ab508f62d2)

3\. Configure the consent for Email This Issue.

{% hint style="info" %}
**Note**: A consent is a set of information that is presented during the authorization process. It helps identify the application that requires the authorization.
{% endhint %}

In the Consent page, enter the application name: "Email This Issue", and click **Save**.

![](https://4173056255-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FY44m7ZY1jU4Arh2tzwNn%2Fuploads%2FPvN3MCmZ0YvuhUWZMObG%2Fimage.png?alt=media\&token=21f1b216-11c2-4db5-bf41-6e4657d5200c)

4\. Create credentials.

Go to **Credentials** in the left side menu. Click **Create Credentials** and select **OAuth Client ID**.

![](https://4173056255-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FY44m7ZY1jU4Arh2tzwNn%2Fuploads%2Fi7TLZAVDrxRLkwBSlfz3%2Fimage.png?alt=media\&token=6ba36dd2-ba23-4242-98d1-33619c3743b5)

5\. Configure your credentials.

Configure the credentials as shown in the following screenshot. The Application type is **Web Application**, and the name of the app is **Email This Issue**.

![](https://4173056255-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FY44m7ZY1jU4Arh2tzwNn%2Fuploads%2Fb1R3mk65XS9zbpqXGskZ%2Fimage.png?alt=media\&token=a66d09d5-59db-4d61-ad3e-d21010a9df27)

{% hint style="info" %}
**Important**: Do not forget to add the Redirect URI. This is going to be specific to your Jira URL. The Redirect URI always follows this format: `<JIRA BASE URL>/rest/jeti/1.0/oauth/callback`
{% endhint %}

Click **Create** to receive the newly generated secure client credentials:

![](https://4173056255-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FY44m7ZY1jU4Arh2tzwNn%2Fuploads%2FgOM3grQt10N5DYkCRv7k%2Fimage.png?alt=media\&token=8788422a-1c0d-4083-84ce-6fd9d9c04417)

6\. Save Client Credentials in Email This Issue.

Use the above screen to copy **Your Client ID** and **Your Client Secret** values into the **Edit OAuth2 Client Credentials** window under **SETTINGS** --> **OAuth2 Client Credentials** in Email This Issue as shown below:

![](https://4173056255-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FY44m7ZY1jU4Arh2tzwNn%2Fuploads%2FsA5oJrcMh3B1cMiNGQfk%2Fimage.png?alt=media\&token=b6dee4e7-dfd7-419d-ab81-d9685a1b2cc8)


---

# 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.meta-inf.hu/email-this-issue/email-this-issue-for-jira-server-data-center/documentation/administration/oauth2-authorizations-in-email-this-issue/enabling-oauth2-authorization-in-your-google-account.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.
