monitorjbl / stash-token-auth

Stash plugin for token-based auth

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

'Sync' path support - .../rest/sync/1.0/...

peternepp opened this issue · comments

Hi,

thanks for the great add-on. It helps a lot in our scripting workflow.

Sadly, the 'sync' path access the REST API for repository syncing related resources seems to be not supported. I cannot access this resource while others are quite working well. I'm always getting 'You are not permitted to access this resource' exceptions. Using Basic User Auth, access is granted.

https://developer.atlassian.com/static/rest/bitbucket-server/latest/bitbucket-repository-ref-sync-re...

Is it possible to add this path?

We are on Bitbucket 4.11.2 and using version 2.2 of your add-on.

Thanks so much,
Peter

Added support for this in the latest commit. Not sure the exact date of the next marketplace release, but if you'd like to give this a try you can build the plugin locally and install it as a development version.

I'm sorry for the delay.

Thank you for your support, I'm glad you could fix it. Sadly, we don't have any resources left in our company for building add-ons ourself at the moment, so we'll wait for the Marketplace release. Any idea in the meanwhile when the release will be?

Thanks,
Peter

Hi,

I'm just a random 3rd-party who has happened to build this project in the past. I've uploaded a build to my website based on that commit here:

http://bit-booster.com/token-auth/

You can paste the full path into Bitbucket's "Manage Add-Ons" URL box if you like:

http://bit-booster.com/token-auth/stash-token-auth-2.2.1-SNAPSHOT.jar

From a security best practices point of view, probably best to wait for an official version, or build your own. :-)

Hi,

thanks for sharing this. This is very kind of you. :)

No offense, but you are right, we'll wait for the official release. ;)