# On Premise Builder + Github Enterprise -- 406 Not Acceptable on sign in

**URL:** https://discourse.chef.io/t/on-premise-builder-github-enterprise-406-not-acceptable-on-sign-in/18894
**Category:** Habitat Help
**Created:** [June 18, 2018, 7:01pm UTC](https://discourse.chef.io/t/on-premise-builder-github-enterprise-406-not-acceptable-on-sign-in/18894 "2018-06-18T19:01:36Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![chrisortman](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/chrisortman/32/3015_2.png) [@chrisortman](https://discourse.chef.io/u/chrisortman)
#### Post date: [June 18, 2018, 7:01pm UTC](https://discourse.chef.io/t/on-premise-builder-github-enterprise-406-not-acceptable-on-sign-in/18894/1 "2018-06-18T19:01:36Z")

</div>

I am trying to setup on premise builder with github enterprise integration.

Everything seems to work until I attempt to sign in.  
After signing in to github enterprise I am redirected back to my builder instance and then I see a call in DevTools Network tab to`/v1/authenticate/<state>` and a response of `{"code":7,"msg":"406 Not Acceptable- "}` and an http status of 401

---

<div class="post-metadata">

### Author: ![smacfarlane](https://avatars.discourse-cdn.com/v4/letter/s/e19adc/32.png) [@smacfarlane](https://discourse.chef.io/u/smacfarlane)
#### Post date: [June 18, 2018, 8:18pm UTC](https://discourse.chef.io/t/on-premise-builder-github-enterprise-406-not-acceptable-on-sign-in/18894/2 "2018-06-18T20:18:25Z")

</div>

Would it be possible to share the OAUTH\_\* env vars you used to configure your on prem builder instance? Redacting any secrets of course 🙂

IIRC, the Github Enterprise API has a slightly different prefix than public GitHub, but it’s been over a year since I’ve worked with an instance of it. The one item that would jump out at me is the OAUTH\_USERINFO\_URL, which _I think_ will a route prefix of `api/v3` (EX: `https://your-ghe-instance/api/v3/user` )

---

<div class="post-metadata">

### Author: ![chrisortman](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/chrisortman/32/3015_2.png) [@chrisortman](https://discourse.chef.io/u/chrisortman)
#### Post date: [June 18, 2018, 8:25pm UTC](https://discourse.chef.io/t/on-premise-builder-github-enterprise-406-not-acceptable-on-sign-in/18894/3 "2018-06-18T20:25:25Z")

</div>

#!!)(@!&  
I missed the `/api/` before v3

fwiw  
export OAUTH\_USERINFO\_URL=https://\<your\_github\_enterprise\_host\>/api/v3/user  
export OAUTH\_AUTHORIZE\_URL=https://\<your\_github\_enterprise\_host\>/login/oauth/authorize  
export OAUTH\_TOKEN\_URL=https://\<your\_github\_enterprise\_host\>/login/oauth/access\_token  
export OAUTH\_REDIRECT\_URL=https://\<your\_builder\_host\>/

Thank you!
