-
Notifications
You must be signed in to change notification settings - Fork 73
Can't figure out how to use the BasicAuth portion of this package #137
Comments
Additionally it seems like I HAVE to use cookies/JWT with BasicAuth even though I don't really want to. I was under the impression that this package generalized the Auth process, and that I could pick which Auth mechanisms I wanted (or didn't want) to use. Is this possible or is this package SOLELY for Cookie/JWT auth? |
You will actually use the function you implemented ( From my project:
|
I'm unfortunately unable to answer your questions as to whether basic auth can be used on its own. It seems like any use of the Perhaps somebody else can provide some more clarity on using auth methods independently. |
I appreciate the response! I think I understand how that works now, but it does seem to appear that these auth mechanisms are not at all independent. |
You need to implement |
Note also #140 @CaptJakk does that clarify your questions? |
does #140 mean that you don't need a ToJWT/FromJWT instance anymore? |
I was trying to figure out how to use this package to do basic auth and I'm probably missing something but am having trouble.
I have defined the following type instance for BasicAuthCfg
type instance BasicAuthCfg = BasicAuthData -> IO (AuthResult UUID)
and the following typeclass instance for FromBasicAuthData
but how do I pass in the implementation above referenced
checkBasicAuthFunction :: BasicAuthCfg
?The text was updated successfully, but these errors were encountered: