globus-0.1.2: GLOBUS Data Transfer
Safe HaskellSafe-Inferred
LanguageGHC2021

Network.Globus.Auth

Synopsis

Documentation

newtype State Source #

Opaque secret identifying the user. Validate on redirect

Constructors

State Text 

Instances

Instances details
IsString State Source # 
Instance details

Defined in Network.Globus.Auth

Methods

fromString :: String -> State #

Show State Source # 
Instance details

Defined in Network.Globus.Auth

Methods

showsPrec :: Int -> State -> ShowS #

show :: State -> String #

showList :: [State] -> ShowS #

FromJSON State Source # 
Instance details

Defined in Network.Globus.Auth

authorizationUrl :: Token ClientId -> Uri Redirect -> NonEmpty Scope -> State -> Uri Authorization Source #

The end user must visit this url

redirectUri :: QueryParam param => Uri Redirect -> param Source #

newtype TokenResponse Source #

fetchAccessTokens returns a non-empty list matching the scopes

data TokenItem Source #

Constructors

TokenItem 

Instances

Instances details
Generic TokenItem Source # 
Instance details

Defined in Network.Globus.Auth

Associated Types

type Rep TokenItem :: Type -> Type #

Show TokenItem Source # 
Instance details

Defined in Network.Globus.Auth

FromJSON TokenItem Source # 
Instance details

Defined in Network.Globus.Auth

type Rep TokenItem Source # 
Instance details

Defined in Network.Globus.Auth

fetchUserInfo :: MonadIO m => Token OpenId -> m UserInfoResponse Source #

You MUST include the OpenId Scope for this to work

data UserInfo Source #

Constructors

UserInfo 

Instances

Instances details
Generic UserInfo Source # 
Instance details

Defined in Network.Globus.Auth

Associated Types

type Rep UserInfo :: Type -> Type #

Methods

from :: UserInfo -> Rep UserInfo x #

to :: Rep UserInfo x -> UserInfo #

Show UserInfo Source # 
Instance details

Defined in Network.Globus.Auth

FromJSON UserInfo Source # 
Instance details

Defined in Network.Globus.Auth

type Rep UserInfo Source # 
Instance details

Defined in Network.Globus.Auth

type Rep UserInfo = D1 ('MetaData "UserInfo" "Network.Globus.Auth" "globus-0.1.2-inplace" 'False) (C1 ('MetaCons "UserInfo" 'PrefixI 'True) (S1 ('MetaSel ('Just "sub") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "last_authentication") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newtype UserEmail Source #

Constructors

UserEmail Text 

Instances

Instances details
Show UserEmail Source # 
Instance details

Defined in Network.Globus.Auth

Eq UserEmail Source # 
Instance details

Defined in Network.Globus.Auth

FromJSON UserEmail Source # 
Instance details

Defined in Network.Globus.Auth

data UserProfile Source #

Instances

Instances details
Generic UserProfile Source # 
Instance details

Defined in Network.Globus.Auth

Associated Types

type Rep UserProfile :: Type -> Type #

Show UserProfile Source # 
Instance details

Defined in Network.Globus.Auth

FromJSON UserProfile Source # 
Instance details

Defined in Network.Globus.Auth

type Rep UserProfile Source # 
Instance details

Defined in Network.Globus.Auth

type Rep UserProfile = D1 ('MetaData "UserProfile" "Network.Globus.Auth" "globus-0.1.2-inplace" 'False) (C1 ('MetaCons "UserProfile" 'PrefixI 'True) ((S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "organization") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "preferred_username") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "identity_provider") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "identity_provider_display_name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))