Closed bcg closed 10 years ago
If I understand things correctly your m.Get("/login"
and m.Get("/logout"
will never be called since this handler will overwrite the call to those URLs with its own functions login(...)
and logout(...)
.
Your RedirectURL should probably also be http://127.0.0.1:3000/oauth2callback since the code that fetches the token and puts it into the session is activated by that URL.
Hope this helps.
Sorry for the late reply, someone else was not able to go through the exchange flow with Github. It turned out his redirect is not properly set as @hansrodtang mentions above. See #18.
Was trying out the code from #18 when I stumbled on what looks like code.google.com/p/goauth2 not storing the
access_token
from Github. Both/
and/login
render nothing fortokens.Access()
.