Coder Social home page Coder Social logo

Make the token available about sharpbucket HOT 2 CLOSED

maxbakke avatar maxbakke commented on August 11, 2024
Make the token available

from sharpbucket.

Comments (2)

mnivet avatar mnivet commented on August 11, 2024

We have that but in current release it's only internal, not publicly exposed
see here: https://github.com/MitjaBezensek/SharpBucket/blob/master/SharpBucket/Authentication/OAuth2TokenProvider.cs

and we have a git clone usage in our unit tests.
See the usage of the token provider here:
https://github.com/MitjaBezensek/SharpBucket/blob/master/SharpBucketTests/GitHelpers/OAuth2GitCredentialsProvider.cs
And our git clone operation done with LibGit2Sharp in the constructor of that class:
https://github.com/MitjaBezensek/SharpBucket/blob/master/SharpBucketTests/GitHelpers/TestRepositoryBuilder.cs

I suppose we can easily expose to public the OAuth2TokenProvider if it match your needs
But for the OAuth2GitCredentialsProvider it won't be so simple. It depends on a git implementation (LibGit2Sharp) on which we don't want to take any dependency for the package we provide, and which may not be the one that you expect to use.
But if you use the same implementation, maybe we can though to provide a second package that provide that class. Or you can simply copy/past it in your own code, since creating a package for so little may not be relevant.

Take a look at those classes and tell me if just exposing the OAuth2TokenProvider to public would be good for you.

from sharpbucket.

mnivet avatar mnivet commented on August 11, 2024

OAuth2TokenProvider has been improved and will be exposed to public in the next release

from sharpbucket.

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.