> For the complete documentation index, see [llms.txt](https://200ok.gitbook.io/200ok-documents/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://200ok.gitbook.io/200ok-documents/user-manual/most-frequently-used-scenarios/how-to-set-up-auth-provider-and-named-credentials.md).

# How to set up auth provider and named credentials?

In the Setup menu, search Auth. Provider in quick find box.

Give clientId, client secret and endpoint url (create project/app , then generate credentials).

Scope : refer service provider's document, and give relevant scope.

Lets consider  google sheet example, visit [ https://console.cloud.google.com/ <br>](< https://console.cloud.google.com/&#xD;&#xA;>)

<figure><img src="https://1271267903-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F899iGp7icc9A7KXck3HI%2Fuploads%2Fm71rxjUf3acaKS2un3EI%2FScreenshot%202022-11-21%20170039.png?alt=media&amp;token=cf024d81-716c-4998-b1ad-341b13f4b02b" alt=""><figcaption></figcaption></figure>

&#x20;**Create project**

<figure><img src="https://lh5.googleusercontent.com/-6vX71pvmq23LfJhxq-Vp58zaDYosFPxEzzbh1Er6Red3mdW-e43O0vM8Vc3SWItBSk7Fc8mvgskF8HNJAauhfeCJILGGHA43kn-dRiAtGsHiclwJvN_wzbbmId4vWJakrPIcz_6S4egnRqQUKobt3AS5LXcRqq4ss1LBbG78nJg2ETmCKneWtioGzM88w" alt=""><figcaption></figcaption></figure>

**Fill out the mandatory fields and click Create**

<figure><img src="https://lh3.googleusercontent.com/HFk87QTLb_WhKka4o3CqpDSCnP8UpIsNDAF6naLoKnwYJbvKsJivzGWuqpOLQYGqiGwnZbwiDNc3kjNrUXRnXkmHK4MTUu-NpHc-OD0Wo44D15WIafL2-JalKfTUtz8cOL-zSegED0MpNyGdIwx5Y5B1Gg6zmZLSyQNJDF1q6-eQTdCD4VboHTilNBr72g" alt=""><figcaption></figcaption></figure>

**Click OAuthConcent Screen to create the application.**

<figure><img src="https://lh5.googleusercontent.com/2C5KA5D1JNcwrRuLsbBtdeptyE8lfEmCexiSLxURD_BZpeMzUEvlxscMWA2M-h3S-6VJiA-HeCw1mKaf2FQnyRW-JR97RSSvjFX19aPVK_x3RbpSNGAiMykQjFj0cgvO12zNsR36Y6K8aJTnhLpYDDJ0zB3Qzsrzt-6vPEg0-fbq2bzGitA3le1rfL3xMw" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1271267903-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F899iGp7icc9A7KXck3HI%2Fuploads%2FDtRvlo0fhkQBGD1xeSB6%2Fimage.png?alt=media&amp;token=d9d79780-2c2c-46d2-8cf5-749bc56cbd6b" alt=""><figcaption></figcaption></figure>

Once the authentication is done, status will be reflected into the named credential

<figure><img src="https://1271267903-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F899iGp7icc9A7KXck3HI%2Fuploads%2Fv3nApmHEbEh5TIaggjon%2Fimage.png?alt=media&amp;token=127923c2-ebb4-4093-b1eb-4dd81a7a3d03" alt=""><figcaption></figcaption></figure>

While creating the channel, click named credential , and select from the drop down.

<figure><img src="https://1271267903-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F899iGp7icc9A7KXck3HI%2Fuploads%2Fy6d2VGO5JUsEeWWfy9Gx%2Fimage.png?alt=media&amp;token=f4662531-65e1-421b-b9fd-a9ee02d4e32d" alt=""><figcaption></figcaption></figure>
