Comments (3)
Hi, I've done some testing and found that it's not just a missing callback URL that causes an issue, but also if the following option isn't checked:
[ ] This is a private consumer
Enables the client_credentials grant type. Installable applications that ship their OAuth consumer credentials as part of the application should not be marked as private.
The difference with BitBucket and the other providers is that BitBucket returns an HTTP 200 (Success) response when there's an auth failure response, so soba continued as if nothing was wrong.
I've modified a dependency jonhadfield/githosts-utils@f5981bc to ensure any errors are captured and returned.
...and put out a new release: https://github.com/jonhadfield/soba/releases/tag/1.2.7
Without callback uri defined:
soba: 2024/01/16 11:22:55 bitbucket.go:226: failed to get bitbucket auth token: invalid_request - No callback uri defined for the OAuth client.
Without setting OAuth consumer as a private consumer:
soba: 2024/01/16 11:22:27 bitbucket.go:226: failed to get bitbucket auth token: invalid_grant - Cannot use client_credentials with a consumer marked as "public". Calls for auto generated consumers should use urn:bitbucket:oauth2:jwt instead.
I'll put a note in the documentation also.
Thanks again for flagging, and let me know if you notice any issues.
from soba.
Hi, thanks for the feedback.
I'll take a look asap.
from soba.
thanks, works great!
from soba.
Related Issues (20)
- Using the Bitbucket provider HOT 4
- Bitbucket provider only returns the first page (10 repositories) HOT 4
- Access to Private Organization Repos? HOT 5
- Kaspersky detects VHO:Trojan.Win32.Sdum.gen in soba_1.1.1_windows_amd64.tar HOT 1
- GitLab Group projects do not get backed up HOT 4
- Handle pagination of groups and projects in GitLab HOT 1
- Ability to specify the GitLab instance URL HOT 21
- No Backup for Gitlab Repos that I am not the Creator HOT 5
- Compare bundle with latest commit to reduce backup time HOT 8
- How to restore/open backed-up repositories? HOT 2
- Add docker healthcheck HOT 5
- Documentation HOT 4
- Feature: Advanced Scheduler HOT 2
- Bug: Sync All Organisations on Gitea HOT 3
- Feature Request(?): Trigger Repo Sync via Webhook HOT 2
- Know status of scheduled backups HOT 7
- Authentication errors just exit HOT 5
- Ability to specify GitHub user repos HOT 6
- Does soba support backing up LFS storage? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from soba.