Closed tsangiotis closed 9 years ago
Hi @tsagi !
Thank you for reporting this issue. Two factor auth is not implented yet that's why you can't login.
I'll work on it asap
Having the same issue here.
I can't log in as well, but I'm not using two factor.
Any help would be appreciated!
@ethanrubio, i checked your config, it seems to be ok. Can you clear your cache and try again ?
@anthonny I tried again, but no luck. All I get is the authentication error has occurred, and I should check the console. Should I try changing my password and trying again?
I had the same problem. Just needed a header in the request with the temporary token.
@anthonny Here's a fix: https://github.com/HubPress/hubpress.io/pull/34
I don't have 2 step auth either, and can't log in. Commenting to follow :)
@therebelrobot If you can't wait; you can just replace the default vendor.js file with mine here that's located here: https://github.com/enjikaka/hubpress.io/blob/master/hubpress/scripts/vendor.js
OOOoooooo! Thanks @enjikaka! I love this concept, and will definitely be diving into the code this week to see how it works.
Hrmmm... Even after that update, I'm still getting the error:
api.github.com/authorizations?1423528491251:1 POST https://api.github.com/authorizations?1423528491251 422 (Unprocessable Entity)
app.js:3544 AuthServices - login error Object {path: "/authorizations", request: XMLHttpRequest, error: 422}
I've tried clearing cache, resetting my password, all nogo. Maybe I'll try reforking and see if that helps.
Hm yea. Try a fresh fork and then just add my vendor.js and set up your config.json correctly. That worked fine for me.
@therebelrobot Change the vendor.js in both the branches too. (master & gh-pages) Just to be sure you got it.
Okiedokes :) thx!
I just tried forking it from here again into a new account and adding my vector.js
. It worked fine after I got the correct settings in the config.json
aswell. (It failed horribly when I didn't have the correct username and repo-name).
I'm unsure if it's possible, but can you try to log in here http://craffy.github.io/hubpress @therebelrobot ? You won't be able to make posts, but I think you can log in anyway. Remember that this only works when you generate a token with an app like Authy or Google Authenticator.
@enjikaka, thank you so much for what you have done on 2FA ! :beers: I'll try too merge your code in the raw source ASAP, but this monday was crazy and now i need to work on the organisation of next the weeks.
I'll do my best :rocket:
@anthonny , my login issues don't have anything to do with 2FA, as I don't even have it enabled. When I try to log in, I get POST https://api.github.com/authorizations?1423584613277 422 (Unprocessable Entity)
showing up in the console. Here is the full response from the github API:
documentation_url: "https://developer.github.com/v3/oauth_authorizations/#create-a-new-authorization"
errors: [{resource: "OauthAccess", code: "already_exists", field: "description"}]
0: {resource: "OauthAccess", code: "already_exists", field: "description"}
message: "Validation Failed"
Why is this post necessary, and what can I do to bypass or fix this?
@anthonny Sound good! Good luck at work! :smiley:
@enjikaka Dang, dude! Way to get that fix out fast. :beers: Can't wait to get this patch in.
@tsagi it appears to work with 2FA now :tada:
Awesome! :beers: :tada:
Hi @anthonny I have this weird problem. I was able to login with 2factor authentication. But now it always is redirecting to login page. When I enter 2factor auth code.. It says "Welcome back Ashwani".. But then does nothing. just sits on that login page. If I try to open any other page for settings, posts etc. It redirects me back to Login page. I have tired clearing the cache and tried again. But its same. Any pointers?
Hi @TheAshwanik,
You must upgrade your instance of hubpress with the version 0.3.0. The Github authorization has changed and the 0.2.0 can't work anymore
You can find a blog post here https://blog.hubpress.io
Yup.. I figured.. Thanks for the tip. I think I am gonna subscribe now.. :) Thanks for you great work.
Same problem was here: forked, login and everything worked, deleted the repo, forked again, cannot login.
Solution:
Login should work now.
I have 2 factor authentication enabled so after the first failure, I tried to make a token myself but it does not seem to work.
Any ideas?