Happstack-authenticate password

19 views
Skip to first unread message

Corentin Dupont

unread,
Jan 6, 2017, 11:57:33 AM1/6/17
to ha...@googlegroups.com, Jeremy Shaw
Hi there!
I have an app that uses happstack-authenticate.
I also uses servant to serve an API.
So the question is: how can I check the password of a given user?
I'd need a function like this:

checkUserPasssword :: Happstack m => ByteString -> UserId -> AcidState AuthenticateState -> m Bool

But I don't know how to write it. Especially I don't know how to access PasswordState from AuthenticateState.

Thanks a lot for the help!!
Corentin

David Fox

unread,
Jan 17, 2017, 1:48:14 PM1/17/17
to ha...@googlegroups.com, Jeremy Shaw
This seems like a good question.

--
You received this message because you are subscribed to the Google Groups "HAppS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to happs+unsubscribe@googlegroups.com.
To post to this group, send email to ha...@googlegroups.com.
Visit this group at https://groups.google.com/group/happs.
For more options, visit https://groups.google.com/d/optout.

Corentin Dupont

unread,
May 23, 2017, 10:24:13 AM5/23/17
to ha...@googlegroups.com, Jeremy Shaw
No ideas on that? it's been 4 months...

Come on, I love Happstack, but I must say having no support at all makes it unusable.
It's a pity, really. Happstack is technically very well built.
My software is entirely built on Happstack foundations, but the lack of support is becoming really frustrating.
 

David Fox

unread,
May 23, 2017, 10:33:03 AM5/23/17
to ha...@googlegroups.com, Jeremy Shaw
I wish I knew enough to be more helpful, but I can tell you we use the Clckwrks authenticate plugin here:


There is also an authentication example in happstack-foundation:


Corentin Dupont

unread,
May 23, 2017, 11:32:57 AM5/23/17
to Gershom B, ha...@googlegroups.com
Thanks for the response...

I browsed through the Happs Google groups, and I discovered that several of my questions in the last year has been replied!
I thought they were unanswered, because I never received reply emails.
Actually I think there is a problem with the settings of this Google groups, because the original author doesn't receives replies.

Possibly it's a problem with the "post replies" settings:
https://case.edu/utech/google/groups/training/choose-how-email-replies-are-sent/

Thanks and sorry for the rambling.
Corentin

On Tue, May 23, 2017 at 4:57 PM, Gershom B <gers...@gmail.com> wrote:
On May 23, 2017 at 10:55:51 AM, Gershom B (gers...@gmail.com) wrote:
> It seems to me that PasswordState isn’t in AuthenticateState. It just needs to be tracked
> seperately, at which point “verifyPasswordForUserId” should suffice?
>
> -g

>
>
> On May 23, 2017 at 10:33:03 AM, David Fox (dds...@gmail.com) wrote:
> > I wish I knew enough to be more helpful, but I can tell you we use the
> > Clckwrks authenticate plugin here:
> >
> > https://github.com/clckwrks/clckwrks/tree/master/Clckwrks/Authenticate
> >
> > There is also an authentication example in happstack-foundation:
> >
> >
> > https://github.com/Happstack/happstack-foundation/tree/master/examples/ControlVAuth
> >
> > On Tue, May 23, 2017 at 7:24 AM, Corentin Dupont
Reply all
Reply to author
Forward
0 new messages