-
Notifications
You must be signed in to change notification settings - Fork 113
Chef Authentication
smith edited this page Sep 23, 2014
·
7 revisions
Supermarket uses oc-id, a Chef Identity Service, to handle accounts and authentication with OAuth2. It allows users to have one account across multiple Chef applications.
Chef Identity is included with Enterprise Chef server 11.2.0 and newer and with Chef server 12 and newer. If you're running a version of Enterprise Chef server 11 older than 11.2.0 you'll have to run oc-id locally.
For instructions on running oc-id locally, see the oc-id project README.
If you're running a local copy of Supermarket, you'll need to set the following environment variables:
-
CHEF_OAUTH2_URL
: The protocol, host, and port of your oc-id instance (example: https://supermarket.mycorp.com:12345) -
CHEF_OAUTH2_APP_ID
andCHEF_OAUTH2_SECRET
: The keys from your oc-id application
After Supermarket has been restarted, you should be able to sign in using your oc-id instance.