# Authentication against berkshelf source endpoint?

**URL:** <https://discourse.chef.io/t/authentication-against-berkshelf-source-endpoint/7754>\
**Category:** Chef Infra (archive)\
**Created:** [February 6, 2016, 6:10pm UTC](https://discourse.chef.io/t/authentication-against-berkshelf-source-endpoint/7754 "2016-02-06T18:10:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Renier\_Morales](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/renier_morales/32/1265_2.png) [@Renier\_Morales](https://discourse.chef.io/u/Renier_Morales)\
**Post date:** [February 6, 2016, 6:10pm UTC](https://discourse.chef.io/t/authentication-against-berkshelf-source-endpoint/7754/1 "2016-02-06T18:10:35Z")

</div>

I want to setup my own supermarket for my own private cookbooks on the open Internet. I’d like access to these cookbooks to be secured. However, I don’t see how to specify authentication in the Berksfile to access this private source endpoint. Is there a way to do this? Or are berkshelf source endpoints meant to be unauthenticated at the moment?

Furthermore, how do you make `knife supermarket share` work in this case?

I know that the supermarket app supports OAuth (oc-id) authentication, but this is for the web ui only, right? Or is there a way to specify OAuth credentials for `knife supermarket` and berkshelf source usage?
