Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data Login = MkLogin {}
- newtype LoginCode = LoginCode {}
- data LoginId
- data PendingLoginCode = PendingLoginCode {}
- data SendLoginCode = SendLoginCode {}
- newtype LoginCodeTimeout = LoginCodeTimeout {}
- data CookieList = CookieList {
- cookieList :: [Cookie ()]
- newtype CookieId = CookieId {}
- data CookieType
- data Cookie a = Cookie {}
- newtype CookieLabel = CookieLabel {}
- data RemoveCookies = RemoveCookies {}
- toUnitCookie :: Cookie a -> Cookie ()
- data AccessToken = AccessToken {}
- bearerToken :: UserId -> LByteString -> Integer -> AccessToken
- data TokenType = Bearer
- data SomeUserToken
- data SomeAccessToken
- data UserTokenCookie = UserTokenCookie {}
- data ProviderToken = ProviderToken (Token Provider)
- data ProviderTokenCookie = ProviderTokenCookie {}
- data AccessWithCookie c = Access {
- accessToken :: !AccessToken
- accessCookie :: !(Maybe c)
- type Access u = AccessWithCookie (Cookie (Token u))
- type SomeAccess = AccessWithCookie UserTokenCookie
- type TokenResponse = WithHeaders '[OptHeader (Header "Set-Cookie" UserTokenCookie)] SomeAccess (Respond 200 "OK" AccessToken)
Login
MkLogin | |
|
Instances
Arbitrary Login Source # | |
FromJSON Login Source # | |
ToJSON Login Source # | |
Generic Login Source # | |
Show Login Source # | |
Eq Login Source # | |
ToSchema Login Source # | |
Defined in Wire.API.User.Auth | |
ToSchema Login Source # | |
Defined in Wire.API.User.Auth | |
type Rep Login Source # | |
Defined in Wire.API.User.Auth type Rep Login = D1 ('MetaData "Login" "Wire.API.User.Auth" "wire-api-0.1.0-EbZS9CKNOfZ8BBy5DRJfXi" 'False) (C1 ('MetaCons "MkLogin" 'PrefixI 'True) ((S1 ('MetaSel ('Just "lId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 LoginId) :*: S1 ('MetaSel ('Just "lPassword") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 PlainTextPassword6)) :*: (S1 ('MetaSel ('Just "lLabel") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CookieLabel)) :*: S1 ('MetaSel ('Just "lCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Value))))) |
A single-use login code.
The login ID for client API versions v0..v5
Instances
Arbitrary LoginId Source # | |
FromJSON LoginId Source # | |
ToJSON LoginId Source # | |
Generic LoginId Source # | |
Show LoginId Source # | |
Eq LoginId Source # | |
ToSchema LoginId Source # | |
Defined in Wire.API.User.Auth | |
ToSchema LoginId Source # | |
Defined in Wire.API.User.Auth | |
type Rep LoginId Source # | |
Defined in Wire.API.User.Auth type Rep LoginId = D1 ('MetaData "LoginId" "Wire.API.User.Auth" "wire-api-0.1.0-EbZS9CKNOfZ8BBy5DRJfXi" 'False) (C1 ('MetaCons "LoginByEmail" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 EmailAddress)) :+: C1 ('MetaCons "LoginByHandle" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Handle))) |
data PendingLoginCode Source #
Used for internal endpoint only.
Instances
data SendLoginCode Source #
A request for sending a LoginCode
Instances
newtype LoginCodeTimeout Source #
A timeout for a new or pending login code.
Instances
Arbitrary LoginCodeTimeout Source # | |
Defined in Wire.API.User.Auth | |
FromJSON LoginCodeTimeout Source # | |
Defined in Wire.API.User.Auth parseJSON :: Value -> Parser LoginCodeTimeout Source # parseJSONList :: Value -> Parser [LoginCodeTimeout] Source # | |
ToJSON LoginCodeTimeout Source # | |
Defined in Wire.API.User.Auth toJSON :: LoginCodeTimeout -> Value Source # toEncoding :: LoginCodeTimeout -> Encoding Source # toJSONList :: [LoginCodeTimeout] -> Value Source # toEncodingList :: [LoginCodeTimeout] -> Encoding Source # | |
Show LoginCodeTimeout Source # | |
Defined in Wire.API.User.Auth showsPrec :: Int -> LoginCodeTimeout -> ShowS # show :: LoginCodeTimeout -> String # showList :: [LoginCodeTimeout] -> ShowS # | |
Eq LoginCodeTimeout Source # | |
Defined in Wire.API.User.Auth (==) :: LoginCodeTimeout -> LoginCodeTimeout -> Bool # (/=) :: LoginCodeTimeout -> LoginCodeTimeout -> Bool # | |
ToSchema LoginCodeTimeout Source # | |
Defined in Wire.API.User.Auth | |
ToSchema LoginCodeTimeout Source # | |
Defined in Wire.API.User.Auth |
Cookies
data CookieList Source #
CookieList | |
|
Instances
data CookieType Source #
SessionCookie | A session cookie. These are mainly intended for clients that are web browsers. For other clients, session cookies behave like regular persistent cookies except for the fact that they are never renewed during a token refresh and that they have a shorter lifetime. |
PersistentCookie | A regular persistent cookie that expires at a specific date. These cookies are regularly renewed as part of an access token refresh. |
Instances
A (long-lived) cookie scoped to a specific user for obtaining new
AccessToken
s.
Cookie | |
|
Instances
newtype CookieLabel Source #
A device-specific identifying label for one or more cookies. Cookies can be listed and deleted based on their labels.
Instances
data RemoveCookies Source #
Instances
toUnitCookie :: Cookie a -> Cookie () Source #
Token
data AccessToken Source #
A temporary API access token.
Instances
bearerToken :: UserId -> LByteString -> Integer -> AccessToken Source #
Instances
data SomeUserToken Source #
Instances
Show SomeUserToken Source # | |
Defined in Wire.API.User.Auth showsPrec :: Int -> SomeUserToken -> ShowS # show :: SomeUserToken -> String # showList :: [SomeUserToken] -> ShowS # | |
FromByteString SomeUserToken Source # | |
Defined in Wire.API.User.Auth parser :: Parser SomeUserToken Source # | |
ToByteString SomeUserToken Source # | |
Defined in Wire.API.User.Auth builder :: SomeUserToken -> Builder Source # | |
FromHttpApiData SomeUserToken Source # | |
Defined in Wire.API.User.Auth |
data SomeAccessToken Source #
Instances
Show SomeAccessToken Source # | |
Defined in Wire.API.User.Auth showsPrec :: Int -> SomeAccessToken -> ShowS # show :: SomeAccessToken -> String # showList :: [SomeAccessToken] -> ShowS # | |
FromHttpApiData SomeAccessToken Source # | |
Defined in Wire.API.User.Auth |
data UserTokenCookie Source #
Data that is returned to the client in the form of a cookie containing a user token.
Instances
FromHttpApiData UserTokenCookie Source # | |
Defined in Wire.API.User.Auth | |
ToHttpApiData UserTokenCookie Source # | |
Defined in Wire.API.User.Auth | |
ToParamSchema UserTokenCookie Source # | |
Defined in Wire.API.User.Auth | |
AsHeaders '[Maybe UserTokenCookie] AccessToken SomeAccess Source # | |
Defined in Wire.API.User.Auth fromHeaders :: (NP I '[Maybe UserTokenCookie], AccessToken) -> SomeAccess Source # toHeaders :: SomeAccess -> (NP I '[Maybe UserTokenCookie], AccessToken) Source # |
data ProviderToken Source #
Instances
Show ProviderToken Source # | |
Defined in Wire.API.User.Auth showsPrec :: Int -> ProviderToken -> ShowS # show :: ProviderToken -> String # showList :: [ProviderToken] -> ShowS # | |
FromByteString ProviderToken Source # | |
Defined in Wire.API.User.Auth parser :: Parser ProviderToken Source # |
data ProviderTokenCookie Source #
Instances
FromHttpApiData ProviderTokenCookie Source # | |
Defined in Wire.API.User.Auth | |
ToHttpApiData ProviderTokenCookie Source # | |
Defined in Wire.API.User.Auth | |
ToParamSchema ProviderTokenCookie Source # | |
Defined in Wire.API.User.Auth |
Access
data AccessWithCookie c Source #
Access | |
|
Instances
Servant
type TokenResponse = WithHeaders '[OptHeader (Header "Set-Cookie" UserTokenCookie)] SomeAccess (Respond 200 "OK" AccessToken) Source #