# Application access for chef account

**URL:** <https://discourse.chef.io/t/application-access-for-chef-account/10944>\
**Category:** Chef Infra (archive)\
**Created:** [May 24, 2017, 11:44am UTC](https://discourse.chef.io/t/application-access-for-chef-account/10944 "2017-05-24T11:44:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sam24](https://avatars.discourse-cdn.com/v4/letter/s/8e8cbc/32.png) [@sam24](https://discourse.chef.io/u/sam24)\
**Post date:** [May 24, 2017, 11:44am UTC](https://discourse.chef.io/t/application-access-for-chef-account/10944/1 "2017-05-24T11:44:20Z")

</div>

Hello,

I'm trying to set up own chef private supermarket.  
The version which am using are  
**Chef Development Kit Version: 1.3.43**  
**chef-client version: 12.19.36**  
**berks version: 5.6.4**  
**kitchen version: 1.16.0**

I have problem in granting access to supermarket application.  
I'm attaching the screenshot below: ![](https://sea2.discourse-cdn.com/flex016/images/transparent.png)

Could anyone guide me how to grant permission for this application.  
your suggestion would be helpful.

Thanks 🙂

---

<div class="post-metadata">

**Author:** ![tr\_pschaumburg](https://avatars.discourse-cdn.com/v4/letter/t/e9a140/32.png) [@tr\_pschaumburg](https://discourse.chef.io/u/tr_pschaumburg)\
**Post date:** [May 24, 2017, 12:26pm UTC](https://discourse.chef.io/t/application-access-for-chef-account/10944/2 "2017-05-24T12:26:56Z")

</div>

Hi Sam,

how did you install the supermarket? Have you followed the steps in the installation document of the supermarket? ([https://docs.chef.io/install\_supermarket.html](https://docs.chef.io/install_supermarket.html))

But i think, that you forgot to configure the OAuth 2

Best regards,  
Patrick

---

<div class="post-metadata">

**Author:** ![sam24](https://avatars.discourse-cdn.com/v4/letter/s/8e8cbc/32.png) [@sam24](https://discourse.chef.io/u/sam24)\
**Post date:** [May 25, 2017, 5:57am UTC](https://discourse.chef.io/t/application-access-for-chef-account/10944/3 "2017-05-25T05:57:58Z")

</div>

Hi Patrick,

Yes I have installed chef private super market using same link.

In the Chef Server **/etc/opscode/chef-server.rb** the redirect URI is pointing to chefsupermarketURL//auth/chef\_oauth2/callback  
And **in /etc/opscode/oc-id-application/supermarket.json** the redirect URI is pointing to the  
chef supermarket URL//auth/chef\_oauth2/callback

In chef supermarket **/etc/supermarket/supermarket.rb**  
default['supermarket']['chef\_oauth2\_url']="chefserverURL//auth/chef\_oauth2/callback

Now the error am getting is ![](https://sea2.discourse-cdn.com/flex016/images/transparent.png)

So could you please guide me out.

Thanks 🙂
