Open jwswj opened 10 years ago
Absolutely :+1: Will have a look next weekend if no one beats me to it!
:+1:
+1
+1
+1
+1
+1
Lots of +1s - anyone interested in building it?
I still am, but shortly after my last comment I moved on to a job where I no longer use Samson :( If I can find some spare time on weekends I'll try to contribute! Maybe we could start by sketching out a plan, to at least make it easier for anyone to contribute?
From a quick scan of the code, it looks like there is GitHub support for OAuth, Pull Request compares & commenting, and deployment logging? Is this correct @jwswj?
I guess a good first step would be to abstract the current GitHub code into an adapter with a generic interface, then next step would be to add an adapter for BitBucket (opening the possibility to add other providers such as GitLab)?
That sounds reasonable to me. Ideally we would build adapters as plugins. On 22 Aug 2015 5:37 pm, "Ryan Djurovich" notifications@github.com wrote:
I still am, but shortly after my last comment I moved on to a job where I no longer use Samson :( If I can find some spare time on weekends I'll try to contribute! Maybe we could start by sketching out a plan, to at least make it easier for anyone to contribute?
From a quick scan of the code, it looks like there is GitHub support for OAuth, Pull Request compares & commenting, and deployment logging? Is this correct @jwswj https://github.com/jwswj?
I guess a good first step would be to abstract the current GitHub code into an adapter with a generic interface, then next step would be to add an adapter for BitBucket (opening the possibility to add other providers such as GitLab)?
— Reply to this email directly or view it on GitHub https://github.com/zendesk/samson/issues/1#issuecomment-133648856.
Great idea @sandlerr!
@kernel-io probably not with comments like that. If you're interested why don't you draft up an approach and post a link here? @ryandjurovich will probably help out. We're supportive of adding this functionality, but we use Github at Zendesk so don't have the need ourselves at the moment.
+1
+1 , So @ryan0x44 please notify when you commit pull request may be i can you :) :+1:
Is this issue under development? It would be really nice :) I'm waiting for that.
+1
I'm not aware of anyone actively working on this, but we accept pull requests.
It appeared that we need to use access token (and refresh token) which are available via Oauth2, for bitbucket authentication. We have two gems: https://rubygems.org/gems/omniauth-bitbucket (have unreleased update to oauth2) and https://rubygems.org/gems/omniauth-bitbucket2. Unfortunatelly both of them have problem with Authentication failure! invalid_credentials: OAuth2::Error, invalid_request: redirect_uri does not match
described here https://github.com/birmacher/omniauth-bitbucket2/issues/1. I need to hack them to resolve this problem (I was able to do it). I have two questions:
module OmniAuth
module Strategies
class Bitbucket2 < OmniAuth::Strategies::OAuth2
def callback_url
full_host + script_name + callback_path
end
end
end
end
but it will be good to hear your idea about how we should deal with it.
either is fine ... would prefer the monkey-patch with clear docs on when it can be removed over github dependency ... if omniauth-bitbucket is dead/unmaintained also fine to switch to omniauth-bitbucket2
In omniuth-bitbucket something happened in this year on github and omniauth-bitbucket2 looks like dead gem.
Prefer to get a hold of the author of omniauth-bitbucket via email/twitter etc and ask them to add you/someone as maintainer ... so we don't end up with a split user base / bad gems ...
see https://github.com/zendesk/samson/pull/3227 for how to do it
At the moment Samson relies heavily on Github. It would be great to see Bitbucket support added.