Safe Haskell | None |
---|---|
Language | Haskell2010 |
Blockfrost authentication schemes
Synopsis
- data APIKeyInHeader (headerName :: Symbol)
- newtype APIKeyInHeaderSettings = APIKeyInHeaderSettings {
- apiKeySettingsQueryProject :: Text -> IO (Maybe Project)
- data Env
- data Project = Project {
- projectEnv :: Env
- projectId :: Text
- data ProjectAuth (auths :: [Type]) val
- mkProject :: Text -> Project
- mkProjectEnv :: Env -> Text -> Project
Documentation
data APIKeyInHeader (headerName :: Symbol) Source #
The type of Auth scheme.
newtype APIKeyInHeaderSettings Source #
Auth scheme settings Needs IO action to verify passed in token and maybe return Project
Blockfrost environments
Corresponds to Network when creating a Blockfrost project. Each environment has separate token.
Instances
Eq Env Source # | |
Ord Env Source # | |
Read Env Source # | |
Show Env Source # | |
Generic Env Source # | |
type Rep Env Source # | |
Defined in Blockfrost.Env type Rep Env = D1 ('MetaData "Env" "Blockfrost.Env" "blockfrost-api-0.2.1.0-KZcfvGT2yF56UZeMbClPE7" 'False) ((C1 ('MetaCons "Ipfs" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Mainnet" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Testnet" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Localhost" 'PrefixI 'False) (U1 :: Type -> Type))) |
Project | |
|
Instances
Eq Project Source # | |
Show Project Source # | |
IsString Project Source # | |
Defined in Blockfrost.Auth fromString :: String -> Project # | |
Generic Project Source # | |
type Rep Project Source # | |
Defined in Blockfrost.Auth type Rep Project = D1 ('MetaData "Project" "Blockfrost.Auth" "blockfrost-api-0.2.1.0-KZcfvGT2yF56UZeMbClPE7" 'False) (C1 ('MetaCons "Project" 'PrefixI 'True) (S1 ('MetaSel ('Just "projectEnv") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Env) :*: S1 ('MetaSel ('Just "projectId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) |
data ProjectAuth (auths :: [Type]) val Source #
Instances
HasLink sub => HasLink (ProjectAuth tag value :> sub :: Type) Source # | |
Defined in Blockfrost.Auth type MkLink (ProjectAuth tag value :> sub) a # toLink :: (Link -> a) -> Proxy (ProjectAuth tag value :> sub) -> Link -> MkLink (ProjectAuth tag value :> sub) a # | |
type MkLink (ProjectAuth tag value :> sub :: Type) r Source # | |
Defined in Blockfrost.Auth |