Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
GI.Soup.Objects.AuthManager
Description
- newtype AuthManager = AuthManager (ManagedPtr AuthManager)
- class GObject o => IsAuthManager o
- toAuthManager :: IsAuthManager o => o -> IO AuthManager
- noAuthManager :: Maybe AuthManager
- data AuthManagerUseAuthMethodInfo
- authManagerUseAuth :: (HasCallStack, MonadIO m, IsAuthManager a, IsAuth b) => a -> URI -> b -> m ()
- type AuthManagerAuthenticateCallback = Message -> Auth -> Bool -> IO ()
- data AuthManagerAuthenticateSignalInfo
- type C_AuthManagerAuthenticateCallback = Ptr () -> Ptr Message -> Ptr Auth -> CInt -> Ptr () -> IO ()
- afterAuthManagerAuthenticate :: (GObject a, MonadIO m) => a -> AuthManagerAuthenticateCallback -> m SignalHandlerId
- genClosure_AuthManagerAuthenticate :: AuthManagerAuthenticateCallback -> IO Closure
- mk_AuthManagerAuthenticateCallback :: C_AuthManagerAuthenticateCallback -> IO (FunPtr C_AuthManagerAuthenticateCallback)
- noAuthManagerAuthenticateCallback :: Maybe AuthManagerAuthenticateCallback
- onAuthManagerAuthenticate :: (GObject a, MonadIO m) => a -> AuthManagerAuthenticateCallback -> m SignalHandlerId
- wrap_AuthManagerAuthenticateCallback :: AuthManagerAuthenticateCallback -> Ptr () -> Ptr Message -> Ptr Auth -> CInt -> Ptr () -> IO ()
Exported types
newtype AuthManager Source #
Constructors
AuthManager (ManagedPtr AuthManager) |
Instances
GObject AuthManager Source # | |
IsObject AuthManager Source # | |
IsSessionFeature AuthManager Source # | |
IsAuthManager AuthManager Source # | |
((~) * info (ResolveAuthManagerMethod t AuthManager), MethodInfo * info AuthManager p) => IsLabel t (AuthManager -> p) Source # | |
((~) * info (ResolveAuthManagerMethod t AuthManager), MethodInfo * info AuthManager p) => IsLabelProxy t (AuthManager -> p) Source # | |
HasAttributeList * AuthManager Source # | |
type AttributeList AuthManager Source # | |
type SignalList AuthManager Source # | |
class GObject o => IsAuthManager o Source #
Instances
toAuthManager :: IsAuthManager o => o -> IO AuthManager Source #
Methods
useAuth
data AuthManagerUseAuthMethodInfo Source #
Instances
((~) * signature (URI -> b -> m ()), MonadIO m, IsAuthManager a, IsAuth b) => MethodInfo * AuthManagerUseAuthMethodInfo a signature Source # | |
Arguments
:: (HasCallStack, MonadIO m, IsAuthManager a, IsAuth b) | |
=> a |
|
-> URI |
|
-> b |
|
-> m () |
Records that auth
is to be used under uri
, as though a
WWW-Authenticate header had been received at that URI. This can be
used to "preload" manager
's auth cache, to avoid an extra HTTP
round trip in the case where you know ahead of time that a 401
response will be returned.
This is only useful for authentication types where the initial Authorization header does not depend on any additional information from the server. (Eg, Basic or NTLM, but not Digest.)
Since: 2.42
Signals
authenticate
type C_AuthManagerAuthenticateCallback = Ptr () -> Ptr Message -> Ptr Auth -> CInt -> Ptr () -> IO () Source #
afterAuthManagerAuthenticate :: (GObject a, MonadIO m) => a -> AuthManagerAuthenticateCallback -> m SignalHandlerId Source #
mk_AuthManagerAuthenticateCallback :: C_AuthManagerAuthenticateCallback -> IO (FunPtr C_AuthManagerAuthenticateCallback) Source #
onAuthManagerAuthenticate :: (GObject a, MonadIO m) => a -> AuthManagerAuthenticateCallback -> m SignalHandlerId Source #