| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Network.OAuth2.Experiment.Flows.DeviceAuthorizationRequest
Synopsis
- newtype DeviceCode = DeviceCode Text
- data DeviceAuthorizationResponse = DeviceAuthorizationResponse {
- deviceCode :: DeviceCode
- userCode :: Text
- verificationUri :: URI
- verificationUriComplete :: Maybe URI
- expiresIn :: Integer
- interval :: Maybe Int
- data DeviceAuthorizationRequestParam = DeviceAuthorizationRequestParam {
- arScope :: Set Scope
- arClientId :: Maybe ClientId
- arExtraParams :: Map Text Text
- class HasOAuth2Key a => HasDeviceAuthorizationRequest a where
- conduitDeviceAuthorizationRequest :: (MonadIO m, HasDeviceAuthorizationRequest a) => IdpApplication i a -> Manager -> ExceptT ByteString m DeviceAuthorizationResponse
Documentation
newtype DeviceCode Source #
Constructors
| DeviceCode Text |
Instances
| FromJSON 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
| FromJSON DeviceAuthorizationResponse Source # | |
Defined in Network.OAuth2.Experiment.Flows.DeviceAuthorizationRequest Methods parseJSON :: Value -> Parser DeviceAuthorizationResponse parseJSONList :: Value -> Parser [DeviceAuthorizationResponse] | |
data DeviceAuthorizationRequestParam Source #
Constructors
| DeviceAuthorizationRequestParam | |
Fields
| |
Instances
| ToQueryParam DeviceAuthorizationRequestParam Source # | |
Defined in Network.OAuth2.Experiment.Flows.DeviceAuthorizationRequest Methods toQueryParam :: DeviceAuthorizationRequestParam -> Map Text Text Source # | |
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 :: (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