Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Static.StratResultSourceStratResult defines results of strategies, as well as some helpful functions.
type 'a t = | Authenticated of 'aEntity has been authenticated successfully. Can also be used inside a strategy with bind like Ok 'a result. When returned to FPauth.Auth_sign.AUTHENTICATOR stops authentication process.
| Rescue of Base.Error.tAuthentication must be stopped immediately with an error.
*)| Redirect of Dream.response Lwt.tUser should be redirected in accordance with response. response promise is meant to be created by Dream.redirect
| NextNext strategy from the list in FPauth.Auth_sign.AUTHENTICATOR should be used.
'a t defines results of strategies.
bind r f returns f r if r is Authenticated and r if anything else