Giter Club home page Giter Club logo

Comments (3)

jonhadfield avatar jonhadfield commented on June 18, 2024 1

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.

jonhadfield avatar jonhadfield commented on June 18, 2024

Hi, thanks for the feedback.
I'll take a look asap.

from soba.

r3mi avatar r3mi commented on June 18, 2024

thanks, works great!

from soba.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.