Hacker News new | past | comments | ask | show | jobs | submit login

Anyone else gets an authentication error when trying to login to the admin console with github credentials?



Hi, i'm the creator of HubPress, to log in the app, you need to update your config file :

https://github.com/msravi/msravi.github.io/blob/master/hubpr...

In your case :

{ "meta": { "username": "msravi", "repositoryName": "msravi.github.io", "branch": "master" }, "theme": { "name": "Casper" } }


Duh, thanks! That was real stupid of me.


you have to fork it to a repo you control.


Yes, I did. And I updated the config.json to use my username and repository name. But once I go to <username>.github.io/hubpress and try to login, there's an authentication error. Looking at the console output shows this:

""" AuthServices - login error Objecterror: 404path: "/repos/undefined/undefined"request: XMLHttpRequest__proto__: Object__defineGetter__: function __defineGetter__() { [native code] }__defineSetter__: function __defineSetter__() { [native code] }__lookupGetter__: function __lookupGetter__() { [native code] }__lookupSetter__: function __lookupSetter__() { [native code] }constructor: function Object() { [native code] }hasOwnProperty: function hasOwnProperty() { [native code] }isPrototypeOf: function isPrototypeOf() { [native code] }propertyIsEnumerable: function propertyIsEnumerable() { [native code] }toLocaleString: function toLocaleString() { [native code] }toString: function toString() { [native code] }valueOf: function valueOf() { [native code] }get __proto__: function __proto__() { [native code] }set __proto__: function __proto__() { [native code] }app.js:3544 (anonymous function) """


I have a similar issue. I was able to access the admin console, but get a 401 when trying to save anything.


I had a look to your configuration, it seems to be good. Are you still blocked ?


Yeah, when I hit save from the admin console, I errors in the console, like:

http://msluyter.github.io/blog/hubpress/scripts/Dexie.min.js... Failed to load resource: the server responded with a status of 404 (Not Found)

I'll open an issue in the main hubpress project I guess.


There is an issue for 404 on the map files but in your case it's not the problem.

In your config file you must set the repositoryName to blog (I added a comment on your commit)

Sorry i did not see it before.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: