codeskyblue / codeskyblue/gohttpserver

openid-login.go failed?????

Open
#53 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.8k
Forks
583
PR merge metrics
No merged PRs in 30d

Description

Openid half way working, be able to login into yahoo.com,
but failed when opencallback.......

google openid, does not working.
--auth-openid https://www.google.com/accounts/o8/id

// google not working
./gohttpserver -r ../../../../../fileRestAPI --cors --theme green --auth-type openid --auth-openid https://www.google.com/accounts/o8/id

yahoo works
--auth-openid https://me.yahoo.com

// yahoo
./gohttpserver -r ../../../../../fileRestAPI --conf ../../../../../fileRestAPI/config.yml --cors --theme green --auth-type openid --auth-openid https://me.yahoo.com

But, when I successfully login to yahoo.com, when opencallback to gohttpserver, failed.....

http://localhost:8000/-/openidcallback?next=https://localhost:8000/&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.mode=id_res&openid.return_to=http%3A%2F%2Flocalhost%3A8000%2F-%2Fopenidcallback%3Fnext%3Dhttps%3A%2F%2Flocalhost%3A8000%2F&openid.claimed_id=https%3A%2F%2Fme.yahoo.com%2Fhoogw%23d0256&openid.identity=https%3A%2F%2Fme.yahoo.com%2Fhoogw&openid.assoc_handle=iLcVVWGjabUDODayEuijpKo3jpFxkVv9JI3xrIfcq3PxxWx0Sg3Ye4d7Hnd3BChYXWANhSEYTSfCaMMuaE.V5rDxZt3kSjJvzHtxzC6Qb3MXC3hkDE8fjvwn5jFWbXWIdj4z&openid.response_nonce=2018-12-21T22%3A44%3A55ZLJJRMAiKQCrRV8GGkWoFej0IGqDKnTzG2A--&openid.signed=assoc_handle%2Cclaimed_id%2Cidentity%2Cmode%2Cns%2Cop_endpoint%2Cresponse_nonce%2Creturn_to%2Csigned%2Cpape.auth_level.nist&openid.op_endpoint=https%3A%2F%2Fopen.login.yahooapis.com%2Fopenid%2Fop%2Fauth&openid.pape.auth_level.nist=0&openid.sig=e5FBX8bstv7U9hVukR4r%2BjpDtLs%3D

I test openid-go, sample login on separate port 8080, it successfully login to yahoo.com and back.

If your project use same code as openid-go, why their sample login page work, but this login page only work half way, when opencallback, it fails.......

Can you try this
--auth-openid https://me.yahoo.com

Did you successfully login and back without error?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.