Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Identity Provider: Github enterprise support? #66

Closed
dbollaer opened this issue Mar 11, 2014 · 2 comments
Closed

Identity Provider: Github enterprise support? #66

dbollaer opened this issue Mar 11, 2014 · 2 comments

Comments

@dbollaer
Copy link

Hello,

I was wondering if there is support for github enterpise?
I already tried extending github implementation, overwrite the url's.
But I keep getting the same exception:
Required option not passed: access_token

Mar 11 15:52:10 simplesamlphp ERROR [f1e80aee5a] Backtrace:
Mar 11 15:52:10 simplesamlphp ERROR [f1e80aee5a] 4 /home/oauth-dev/vendor/league/oauth2-client/src/League/OAuth2/Client/Token/AccessToken.php:38 (League\OAuth2\Client\Token\AccessToken::__construct)
Mar 11 15:52:10 simplesamlphp ERROR [f1e80aee5a] 3 /home/oauth-dev/vendor/league/oauth2-client/src/League/OAuth2/Client/Grant/Authorizationcode.php:25 (League\OAuth2\Client\Grant\Authorizationcode::handleResponse)
Mar 11 15:52:10 simplesamlphp ERROR [f1e80aee5a] 2 /home/oauth-dev/vendor/league/oauth2-client/src/League/OAuth2/Client/Provider/IdentityProvider.php:137 (League\OAuth2\Client\Provider\IdentityProvider::getAccessToken)

Thank you in advance.

@TomHAnderson
Copy link
Contributor

This split-question of 1. does this support something it obviously doesn't and 2. why does my code error falls across the liens of 1. No, but you can write it and 2. because you didn't write it right.

I suggest @dbollaer submit a PR with a unit test to show this problem.

@philsturgeon
Copy link
Member

The attitude in the reply by Tom is a bit off, but he does make a valid point regardless.

It doesn't support github enterprise out of the box. It probably could with some work though, so fire over a PR to a third  party repo or add some code in. 

Thank you, and sorry.

Sent from Mailbox

On Sat, Apr 26, 2014 at 12:11 AM, Tom Anderson notifications@github.com
wrote:

This split-question of 1. does this support something it obviously doesn't and 2. why does my code error falls across the liens of 1. No, but you can write it and 2. because you didn't write it right.

I suggest @dbollaer submit a PR with a unit test to show this problem.

Reply to this email directly or view it on GitHub:
#66 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants