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 :: (MonadIO m, IsAuthManager o) => o -> m AuthManager
- noAuthManager :: Maybe AuthManager
- authManagerClearCachedCredentials :: (HasCallStack, MonadIO m, IsAuthManager a) => a -> m ()
- authManagerUseAuth :: (HasCallStack, MonadIO m, IsAuthManager a, IsAuth b) => a -> URI -> b -> m ()
- type AuthManagerAuthenticateCallback = Message -> Auth -> Bool -> IO ()
- type C_AuthManagerAuthenticateCallback = Ptr () -> Ptr Message -> Ptr Auth -> CInt -> Ptr () -> IO ()
- afterAuthManagerAuthenticate :: (IsAuthManager a, MonadIO m) => a -> AuthManagerAuthenticateCallback -> m SignalHandlerId
- genClosure_AuthManagerAuthenticate :: AuthManagerAuthenticateCallback -> IO Closure
- mk_AuthManagerAuthenticateCallback :: C_AuthManagerAuthenticateCallback -> IO (FunPtr C_AuthManagerAuthenticateCallback)
- noAuthManagerAuthenticateCallback :: Maybe AuthManagerAuthenticateCallback
- onAuthManagerAuthenticate :: (IsAuthManager 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) |
class GObject o => IsAuthManager o Source #
Instances
toAuthManager :: (MonadIO m, IsAuthManager o) => o -> m AuthManager Source #
Methods
clearCachedCredentials
authManagerClearCachedCredentials Source #
Arguments
:: (HasCallStack, MonadIO m, IsAuthManager a) | |
=> a |
|
-> m () |
Clear all credentials cached by manager
Since: 2.58
useAuth
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 :: (IsAuthManager a, MonadIO m) => a -> AuthManagerAuthenticateCallback -> m SignalHandlerId Source #
mk_AuthManagerAuthenticateCallback :: C_AuthManagerAuthenticateCallback -> IO (FunPtr C_AuthManagerAuthenticateCallback) Source #
onAuthManagerAuthenticate :: (IsAuthManager a, MonadIO m) => a -> AuthManagerAuthenticateCallback -> m SignalHandlerId Source #