| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Network.OAuth2.Experiment.Flows.DeviceAuthorizationRequest
Synopsis
- newtype DeviceCode = DeviceCode Text
- data DeviceAuthorizationResponse = DeviceAuthorizationResponse {}
- data DeviceAuthorizationRequestParam = DeviceAuthorizationRequestParam {
- arScope :: Set Scope
- arClientId :: Maybe ClientId
- arExtraParams :: Map Text Text
- class HasOAuth2Key a => HasDeviceAuthorizationRequest a where
- conduitDeviceAuthorizationRequest :: forall {k} (m :: Type -> Type) a (i :: k). (MonadIO m, HasDeviceAuthorizationRequest a) => IdpApplication i a -> Manager -> ExceptT ByteString m DeviceAuthorizationResponse
Documentation
newtype DeviceCode Source #
Constructors
| DeviceCode Text |
Instances
| FromJSON DeviceCode Source # | |
Defined in Network.OAuth2.Experiment.Flows.DeviceAuthorizationRequest Methods parseJSON :: Value -> Parser DeviceCode Source # parseJSONList :: Value -> Parser [DeviceCode] Source # | |
| ToQueryParam DeviceCode Source # | |
Defined in Network.OAuth2.Experiment.Flows.DeviceAuthorizationRequest Methods toQueryParam :: DeviceCode -> Map Text Text Source # | |
data DeviceAuthorizationResponse Source #
Constructors
| DeviceAuthorizationResponse | |
Fields
| |
Instances
data DeviceAuthorizationRequestParam Source #
Constructors
| DeviceAuthorizationRequestParam | |
Fields
| |
Instances
class HasOAuth2Key a => HasDeviceAuthorizationRequest a where Source #
Methods
mkDeviceAuthorizationRequestParam :: a -> DeviceAuthorizationRequestParam Source #
Create Device Authorization Request parameters https://www.rfc-editor.org/rfc/rfc8628#section-3.1
conduitDeviceAuthorizationRequest :: forall {k} (m :: Type -> Type) a (i :: k). (MonadIO m, HasDeviceAuthorizationRequest a) => IdpApplication i a -> Manager -> ExceptT ByteString m DeviceAuthorizationResponse Source #
Makes Device Authorization Request https://www.rfc-editor.org/rfc/rfc8628#section-3.1