> For the complete documentation index, see [llms.txt](https://docs.langstack.com/welcome/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.langstack.com/welcome/in-depth-learning/connectors/google-drive-connector/setting-up-gcp-account-gcp-project-api-enablement-and-credentials-prerequisites/authorization-through-redirect-urls.md).

# Authorization through Redirect URLs

* Go to the Google Console and in the GCP account set up, open the relevant project.
* On the left side menu, click Credentials under APIs & Services.

<figure><img src="https://media.langstack.com/documentation/media/images/connector/googledriveconnector/gdcreatecredmenu.png" alt=""><figcaption></figcaption></figure>

* The Credentials page displays. Under the “OAuth 2.0 Client IDs”, click on the Client name or the relevant Edit icon.

<figure><img src="https://media.langstack.com/documentation/media/images/connector/googledriveconnector/gdeditoauth2client.png" alt=""><figcaption></figcaption></figure>

* Click \[+ ADD URI] to add the URL under "Authorized redirect URIs".

<figure><img src="https://media.langstack.com/documentation/media/images/connector/googledriveconnector/gdadduriauthor.png" alt=""><figcaption></figcaption></figure>

* Enter the copied URI from the Google Connector setting.

<figure><img src="https://media.langstack.com/documentation/media/images/connector/googledriveconnector/gdauthbyingd.png" alt=""><figcaption></figcaption></figure>

* Add it in the field under Authorized direct URIs.

<figure><img src="https://media.langstack.com/documentation/media/images/connector/googledriveconnector/gdaddeduri.png" alt=""><figcaption></figcaption></figure>

* Click \[SAVE].

<figure><img src="https://media.langstack.com/documentation/media/images/connector/googledriveconnector/gdaddedurisave.png" alt=""><figcaption></figcaption></figure>

* Go to the Langstack Connector, click the \[Sign in with Google] button for consent.

<figure><img src="https://media.langstack.com/documentation/media/images/connector/googledriveconnector/gdsigninwithgoogle2.png" alt=""><figcaption></figcaption></figure>
