# OAuth2 Credentials

Email This Issue now supports OAuth2 authentication mechanism for both Google and Microsoft accounts.

To make this work you have to create the following:

* &#x20;OAuth Client Credentials in the Google Cloud Console (as described in [Enabling OAuth2 Authorization in your Google Account](https://docs.meta-inf.hu/email-this-issue/administration/email-this-issue-for-jira-cloud-oauth2-credentials/email-this-issue-for-jira-cloud-enabling-oauth2-authorization-in-your-google-account)) or in the Microsoft O365 Console (as described in [Enabling OAuth2 Authorization in your Microsoft o365 Account](https://docs.meta-inf.hu/email-this-issue/administration/email-this-issue-for-jira-cloud-oauth2-credentials/email-this-issue-for-jira-cloud-enabling-oauth2-authorization-in-your-microsoft-o365-account))&#x20;
* a Client Credentials configuration in Email This Issue with the Client ID and Client Secret from the Google Service Account or the Microsoft Service Account. These client credentials can later be selected in the [Incoming Mail Accounts](https://docs.meta-inf.hu/email-this-issue/administration/email-this-issue-for-jira-cloud-incoming-mail-accounts) and [SMTP Servers](https://docs.meta-inf.hu/email-this-issue/administration/email-this-issue-for-jira-cloud-smtp-servers) dialog.

1\. To manage the OAuth2 Credentials,  go to the **Administration** configuration tab and choose **OAuth2 Credentials** under the **OAUTH2** menu item.

<figure><img src="https://880912854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mf8H-oTE_fhOrUtfYrN-2724419853%2Fuploads%2F87h63j1Zqz2KyXZWH6jj%2Fcreds_1.png?alt=media&#x26;token=3c9e23f6-64c0-44a7-9fb0-00c37401253b" alt=""><figcaption><p>OAuth2 Credentials</p></figcaption></figure>

2\. If you create a new credential configuration or edit an existing one, a dialog opens:

<figure><img src="https://880912854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mf8H-oTE_fhOrUtfYrN-2724419853%2Fuploads%2FOGWppUc3GNMh07rk3LGc%2Fcreds_2.png?alt=media&#x26;token=26757e64-16e0-4282-81a0-f04a5533e3ba" alt=""><figcaption><p>Edit OAuth2 Credentials</p></figcaption></figure>

In this dialog you can find these properties:

* Name: a custom name for this entry.
* Client id: the Client ID of the OAuth Client Credentials created in Google Cloud Console or the Microsoft O365 Console.
* Client secret: the Client Secret of the OAuth Client Credentials created in Google Cloud Console or the Microsoft O365 Console.
* Authorization URI:
  * Google: <https://accounts.google.com/o/oauth2/auth>
  * Microsoft: custom URI generated via [Azure](https://docs.meta-inf.hu/email-this-issue/administration/email-this-issue-for-jira-cloud-oauth2-credentials/email-this-issue-for-jira-cloud-enabling-oauth2-authorization-in-your-microsoft-o365-account#enablingoauth2authorizationinyourmicrosofto365account-step6-copyendpointsuris)
* Token URI:
  * Google: <https://oauth2.googleapis.com/token>
  * Microsoft: custom URI generated via [Azure](https://docs.meta-inf.hu/email-this-issue/administration/email-this-issue-for-jira-cloud-oauth2-credentials/email-this-issue-for-jira-cloud-enabling-oauth2-authorization-in-your-microsoft-o365-account#enablingoauth2authorizationinyourmicrosofto365account-step6-copyendpointsuris)
* Redirect URI: this is a read-only field containing the redirect URI to Email This Issue.\
  You can copy its value by clicking on the icon next to the input field and it should be used in the Google Console or the Microsoft O365 Console when configuring the OAuth2 Credentials.\
  The value depends on the data residency of the Email This Issue app:\
  US: <https://jeti.addon.meta-inf.hu/admin/oauth2/callback>\
  EU: <https://jeti.addon-eu.meta-inf.hu/admin/oauth2/callback>


---

# 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/administration/email-this-issue-for-jira-cloud-oauth2-credentials.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.
