Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
browserid/mozilla persona support?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
gi...@lewman.us  
View profile  
 More options Oct 10 2012, 11:37 pm
From: gi...@lewman.us
Date: Thu, 11 Oct 2012 03:37:39 +0000
Local: Wed, Oct 10 2012 11:37 pm
Subject: browserid/mozilla persona support?
I've failed to hack in mozilla browserid/persona support to
gitit. I thought I could simply follow along the rpxnow code, but
well, I'm still learning haskell and probably screwed it up. It seems that
http://hackage.haskell.org/packages/archive/authenticate/1.3.1/doc/ht...
and http://www.yesodweb.com/blog/2011/07/browserid-support are both
possibilities for me to continue hacking.

Before I fall into the blackhole, has anyone else already done this
to gitit?

Thanks!

--
Andrew
pgp 0x6B4D6475


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Clint Adams  
View profile  
 More options Oct 11 2012, 10:00 am
From: Clint Adams <cl...@softwarefreedom.org>
Date: Thu, 11 Oct 2012 10:00:47 -0400
Local: Thurs, Oct 11 2012 10:00 am
Subject: Re: browserid/mozilla persona support?
Hi Andrew,

On Thu, Oct 11, 2012 at 03:37:39AM +0000, gi...@lewman.us wrote:
> I've failed to hack in mozilla browserid/persona support to
> gitit. I thought I could simply follow along the rpxnow code, but
> well, I'm still learning haskell and probably screwed it up. It seems that
> http://hackage.haskell.org/packages/archive/authenticate/1.3.1/doc/ht...
> and http://www.yesodweb.com/blog/2011/07/browserid-support are both
> possibilities for me to continue hacking.

I don't know anything about Happstack, but it may be easier to
hack on gitit2[0], wherein I think you would add something like
(untested)

instance YesodAuth Gitit where
    type AuthId Gitit = GititUser

    loginDest _ = HomeR
    logoutDest _ = HomeR

    getAuthId creds = GititUser (credsIdent creds) (credsIdent creds)

    authPlugins _ = [authBrowserId]

    authHttpManager = httpManager

and then add an AuthR route and do something about requireUser.

[0] https://github.com/jgm/gitit2


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »