Coder Social home page Coder Social logo

example doesn't compile about fosite HOT 7 CLOSED

ory avatar ory commented on April 29, 2024
example doesn't compile

from fosite.

Comments (7)

aeneasr avatar aeneasr commented on April 29, 2024

Yes, looks like you're using Go <= 1.4. Unfortunately, fosite currently only works with 1.5 or greater but I gladly accept any PRs granting compability with older Go versions while not introducing bc breaks.

from fosite.

jeberly avatar jeberly commented on April 29, 2024

Thanks for quick response! Ok, we will prob. be upgrading soon anyway.

from fosite.

aeneasr avatar aeneasr commented on April 29, 2024

I think base64 padding is the only thing that is causing older builds to fail. Not sure if there is a way to achieve the same thing (base64 without padding) with older versions of Go. But seeing how Go progresses on garbage collection and awesomeness it is probably a good idea to upgrade anyways :)

from fosite.

aeneasr avatar aeneasr commented on April 29, 2024

Found something on stackoverflow which might help: http://stackoverflow.com/questions/31971614/base64-encode-decode-without-padding-on-golang-appengine

from fosite.

jeberly avatar jeberly commented on April 29, 2024

You are fast, thanks! I know this is not the place to ask, but do you consider this ready for use in production?

from fosite.

aeneasr avatar aeneasr commented on April 29, 2024

Difficult to say, the example shows that the public facing API is pretty stable. I want to implement fosite in hydra which will be used in production. I also want to implement OpenID Connect. Both of these things might need some refactoring of internal methods.

If you need 100% API stability I'd suggest to wait until fosite is released via gopkg.in as v1. If you're okay with using godep and fixing a few things when BC breaks arise I'd say you're good to go.

In terms of security, I'd say that fosite is already more stable and more secure than other golang oauth2 frameworks.

from fosite.

aeneasr avatar aeneasr commented on April 29, 2024

One more thing: I haven't imeplemented a real storage (e.g. against mysql/postgres/...) yet, only an in-memory storage for fosite. This might also be an an area which needs a little refactoring, depending on the limitations of the different DBALs. But I tried to keep everything in mind that I have stumbled upon during the past years of using go.

from fosite.

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.