3 ms·
Anyone else gets an authentication error when trying to login to the admin console with github credentials?
by msravi 12y ago
Anyone else gets an authentication error when trying to login to the admin console with github credentials?
- rcarmo 12y agoyou have to fork it to a repo you control.
- msravi 12y agoYes, 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) """
- msluyter 12y agoI have a similar issue. I was able to access the admin console, but get a 401 when trying to save anything.
- Anthonny 12y agoI had a look to your configuration, it seems to be good. Are you still blocked ?
- msluyter 12y agoYeah, when I hit save from the admin console, I errors in the console, like: http://msluyter.github.io/blog/hubpress/scripts/Dexie.min.js.map 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.
- Anthonny 12y agoThere 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.
- Anthonny 12y agoHi, 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/hubpress/config.json 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" } }
- msravi 12y agoDuh, thanks! That was real stupid of me.