hmans / schnitzelpress

A lean, mean blogging machine for hackers and fools.
http://schnitzelpress.org
MIT License
77 stars 8 forks source link

BrowserID login doesn't work out of the box #22

Closed winks closed 12 years ago

winks commented 12 years ago

First I tried the heroku route, when it didn't work I tried to reproduce locally, but I can't login.

$ rbfu shotgun -o hostname config.ru Activated Ruby 1.9.3. (from /home/florian/.rbfu-version) == Shotgun/WEBrick on http://hostname:9393/ [2012-02-22 00:31:26] INFO WEBrick 1.3.1 [2012-02-22 00:31:26] INFO ruby 1.9.3 (2012-02-16) [i686-linux] [2012-02-22 00:31:26] INFO WEBrick::HTTPServer#start: pid=15509 port=9393 cache: [GET /] miss cache: [GET /blog.css] miss, store cache: [GET /login] miss cache: [GET /auth/browser_id] miss cache: [POST /auth/browser_id/callback] invalidate, pass

Open to all suggestions regarding debugging, especially if mongodb is already involved at this stage

hmans commented 12 years ago

Assuming it wasn't simply a typo in the issue's text body, you'll need to set the :administrator value like this:

:set administrator, "browser_id:correctemail@example.org"

It needs to include the browser_id: string because I'm planning on adding support for additional identity providers (Twitter, Facebook, Github etc.), allowing you to pick your preferred authorization scheme.

I'm closing this issue for now; feel free to reopen if this was a misunderstanding.

winks commented 12 years ago

Yes, sorry, that was it. Looks great.

Mental note to self: Don't try weird things after midnight.

hmans commented 12 years ago

Always try weird things after midnight! :)

Glad to hear that did the trick.