Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data DiscoveryDoc = DiscoveryDoc {}
- data Tokens = Tokens {
- accessToken :: AccessToken
- idToken :: Maybe IDToken
- refreshToken :: Maybe RefreshToken
- tokenType :: TokenType
- expiresIn :: NominalDiffTime
- scopes :: Scopes
- data Credentials = Credentials {}
- type Code = Text
- type AccessToken = Text
- type RefreshToken = Text
- type IDToken = Text
- type OAuthState = ByteString
- type PKCEVerifier = ByteString
- type PKCEChallenge = ByteString
- type ProfileName = Text
- data CredentialFailure
- data CodeserverCredentials = CodeserverCredentials {}
- data UserInfo = UserInfo {}
- getCodeserverCredentials :: CodeserverId -> Credentials -> Either CredentialFailure CodeserverCredentials
- setCodeserverCredentials :: CodeserverId -> CodeserverCredentials -> Credentials -> Credentials
- codeserverCredentials :: URI -> Tokens -> UTCTime -> UserInfo -> CodeserverCredentials
- emptyCredentials :: Credentials
Documentation
data DiscoveryDoc Source #
DiscoveryDoc | |
|
Instances
FromJSON DiscoveryDoc Source # | |
Defined in Unison.Auth.Types parseJSON :: Value -> Parser DiscoveryDoc # parseJSONList :: Value -> Parser [DiscoveryDoc] # | |
Show DiscoveryDoc Source # | |
Defined in Unison.Auth.Types showsPrec :: Int -> DiscoveryDoc -> ShowS # show :: DiscoveryDoc -> String # showList :: [DiscoveryDoc] -> ShowS # |
Tokens | |
|
data Credentials Source #
Instances
FromJSON Credentials Source # | |
Defined in Unison.Auth.Types parseJSON :: Value -> Parser Credentials # parseJSONList :: Value -> Parser [Credentials] # | |
ToJSON Credentials Source # | |
Defined in Unison.Auth.Types toJSON :: Credentials -> Value # toEncoding :: Credentials -> Encoding # toJSONList :: [Credentials] -> Value # toEncodingList :: [Credentials] -> Encoding # | |
Eq Credentials Source # | |
Defined in Unison.Auth.Types (==) :: Credentials -> Credentials -> Bool # (/=) :: Credentials -> Credentials -> Bool # |
type AccessToken = Text Source #
type RefreshToken = Text Source #
type OAuthState = ByteString Source #
type PKCEVerifier = ByteString Source #
type PKCEChallenge = ByteString Source #
type ProfileName = Text Source #
data CredentialFailure Source #
Instances
Exception CredentialFailure Source # | |
Defined in Unison.Auth.Types | |
Show CredentialFailure Source # | |
Defined in Unison.Auth.Types showsPrec :: Int -> CredentialFailure -> ShowS # show :: CredentialFailure -> String # showList :: [CredentialFailure] -> ShowS # | |
Eq CredentialFailure Source # | |
Defined in Unison.Auth.Types (==) :: CredentialFailure -> CredentialFailure -> Bool # (/=) :: CredentialFailure -> CredentialFailure -> Bool # |
data CodeserverCredentials Source #
Credentials for a specific codeserver
Instances
FromJSON CodeserverCredentials Source # | |
Defined in Unison.Auth.Types parseJSON :: Value -> Parser CodeserverCredentials # parseJSONList :: Value -> Parser [CodeserverCredentials] # | |
ToJSON CodeserverCredentials Source # | |
Defined in Unison.Auth.Types toJSON :: CodeserverCredentials -> Value # toEncoding :: CodeserverCredentials -> Encoding # toJSONList :: [CodeserverCredentials] -> Value # toEncodingList :: [CodeserverCredentials] -> Encoding # | |
Eq CodeserverCredentials Source # | |
Defined in Unison.Auth.Types (==) :: CodeserverCredentials -> CodeserverCredentials -> Bool # (/=) :: CodeserverCredentials -> CodeserverCredentials -> Bool # |
Instances
FromJSON UserInfo Source # | |
ToJSON UserInfo Source # | |
Defined in Unison.Auth.Types | |
Generic UserInfo Source # | |
Show UserInfo Source # | |
Eq UserInfo Source # | |
type Rep UserInfo Source # | |
Defined in Unison.Auth.Types type Rep UserInfo = D1 ('MetaData "UserInfo" "Unison.Auth.Types" "unison-cli-0.0.0-9ca51USbfnvJ69M3lqQhft" 'False) (C1 ('MetaCons "UserInfo" 'PrefixI 'True) (S1 ('MetaSel ('Just "userId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "handle") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))) |
getCodeserverCredentials :: CodeserverId -> Credentials -> Either CredentialFailure CodeserverCredentials Source #
setCodeserverCredentials :: CodeserverId -> CodeserverCredentials -> Credentials -> Credentials Source #
codeserverCredentials :: URI -> Tokens -> UTCTime -> UserInfo -> CodeserverCredentials Source #