Coder Social home page Coder Social logo

openid-go's People

Contributors

dependabot[bot] avatar drichardson avatar edwardbetts avatar elazarl avatar fsgmhoward avatar hochhaus avatar mapix avatar rogpeppe avatar strk avatar xstrom avatar yohcop avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

openid-go's Issues

Not getting Endpoint from Steam OpenID

I added a fmt.Println("This is the endpoint: " + endpoint)

into nonceStore.go inside the Accept method

but it prints empty with no value, is this to be expected?

Add extension support?

Could you add extension support for sreg

I have implemented one for myself. I think it is basically modify a bit in function buildRedirectURL under redirect.go.

Google integration test fails

Running go test from the integration directory results in the following output:

MacBook-Pro:integration doug(master)$ go test
--- FAIL: TestGoogleCom (0.22s)
    discovery_test.go:36: Discovery failed
    discovery_test.go:39: Unexpected endpoint:
    discovery_test.go:42: Unexpected localId:
    discovery_test.go:45: Unexpected claimedId:
FAIL
exit status 1
FAIL    github.com/yohcop/openid-go/integration 1.895s

Both the Google URLs in the test file return HTTP 404 not founds.

$ curl -v https://www.google.com/accounts/o8/ud 2>&1|grep '< HTTP/1.1'
< HTTP/1.1 404 Not Found
$ curl -v https://www.google.com/accounts/o8/id 2>&1|grep '< HTTP/1.1'
< HTTP/1.1 404 Not Found

It appears that Google has dropped OpenID 2.0 support. Probably the solution to this is to remove Google from the integration tests.

Don't endorse https://github.com/fduraffourg/go-openid

I've looked through, and every single fork of https://github.com/fduraffourg/go-openid including the unmaintained master has the same gaping security hole:
The majority of the openid verification is unimplemented and any openid.op_endpoint can be passed in, making the whole process pointless and trivial to bypass.

I would either remove the link from your readme, or at least make a note that every branch (as of right now) is completely insecure.

Nonce too old

Using your example I got such error: " Nonce too old" What can I do?

And could you be more specific about your comment:
// For the demo, we use in-memory infinite storage nonce and discovery
// cache. In your app, do not use this as it will eat up memory and never
// free it. Use your own implementation, on a better database system.
// If you have multiple servers for example, you may need to share at least
// the nonceStore between them.

what is "own better implementation"? How to do this? I don't understand quite good meaning of nonce and discovery cache.. sorry.

THank you for any kind of help.

License?

Hi!
Could you please attach some license for your library? I couldn't find anything, and I'd like to know if I could use it in my projects, and under what conditions.
Thanks in advance!

How do I retrive nickname/email ?

My OID provider provides nickname/email, and I know it's working because GNUSocial is able to retrive them. How do I retrive them with openid-go ?

discovery-cache

Hi,

Can you explain how to use the discovery cache. I see that the cache is not at all used, because while there is a Get in verify.go, there is no Put in the code anywhere. Am I supposed to do the Put myself?

In verify.go - control goes to and discovered is always nil
168 discovered := cache.Get(endpoint)
Then it returns from this block, but I don't see cache.Put anywhere in code.
197 if ep == endpoint {
Are we supposed to Put the discovered url at this point, or do this externally? An example will help greatly.
I am sorry if the question is unclear, and i haven't fully understood the code or protocol, so it may be my flawed understanding, apologies in advance.

Provide a time-based discovery cache ?

I noticed the nonce store is time-based (1 minute lifetime) -- how about also providing a time-based discovery cache ? Am I right that the discovery cache would make changes to the OpenID URI page invisible once the discovered information is cached, at the moment ?

wordpress.com OpenID provider not supported

wordpress.com exposes openid.server and openid.delegate rel links, and openid-go complains with LINK with rel=openid2.provider not found -- is there any plan to support the old version ?

I've read somewhere that new wordpress.com blogs will NOT support OpenID at all, but there are many old blogs that will continue to work with the old openid version.

Can not compile in latest go versions

$ go get github.com/yohcop/openid.go/src/openid
package exp/html: unrecognized import path "exp/html"

$ go version
go version go1.1.2 linux/amd64

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.