GithubHelp home page GithubHelp logo

Abstract OAuth authentication process about go-uber HOT 6 CLOSED

 avatar commented on August 21, 2024
Abstract OAuth authentication process

from go-uber.

Comments (6)

 avatar commented on August 21, 2024

Not sure if this is possible to do on our end since we need the end-user to login via uber. What do you guys think? @r-medina @sjkaliski

from go-uber.

sjkaliski avatar sjkaliski commented on August 21, 2024

In my opinion there are three options:

  1. Leave it up to the user.
  2. Take OAuth configuration as an argument when creating a client. See https://github.com/kurrik/twittergo, https://github.com/ChimeraCoder/anaconda)
  3. Inject http routes in a similar way that net/http/pprof does (you can even use an "_" import).

I'm leaning towards the second option. Seems to be pretty standard across other api wrappers. https://github.com/garyburd/go-oauth is a good starting point.

from go-uber.

 avatar commented on August 21, 2024

Sounds good. What do you mean by taking the oauth configuration as an argument. Are you referring to the access_token (in which case the process is not abstracted) or something else?

from go-uber.

r-medina avatar r-medina commented on August 21, 2024

https://github.com/ChimeraCoder/anaconda/blob/47bdd6d45c8e335a34a5f4b94cd4ffbe1c172621/twitter.go#L60-L64

from go-uber.

r-medina avatar r-medina commented on August 21, 2024

@asubiott wanna knock this out sunday?

from go-uber.

r-medina avatar r-medina commented on August 21, 2024

#17

from go-uber.

Related Issues (12)

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.