globus-0.1.3: 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
FromJSON State Source # 
Instance details

Defined in Network.Globus.Auth

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 #

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
FromJSON TokenItem Source # 
Instance details

Defined in Network.Globus.Auth

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

type Rep TokenItem Source # 
Instance details

Defined in Network.Globus.Auth

type Rep TokenItem = D1 ('MetaData "TokenItem" "Network.Globus.Auth" "globus-0.1.3-717zbk1pF7jBkH3Wb8XUPf" 'False) (C1 ('MetaCons "TokenItem" 'PrefixI 'True) ((S1 ('MetaSel ('Just "scope") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Scopes) :*: S1 ('MetaSel ('Just "access_token") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Token 'Access))) :*: (S1 ('MetaSel ('Just "expires_in") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "state") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 State))))

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
FromJSON UserInfo Source # 
Instance details

Defined in Network.Globus.Auth

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

type Rep UserInfo Source # 
Instance details

Defined in Network.Globus.Auth

type Rep UserInfo = D1 ('MetaData "UserInfo" "Network.Globus.Auth" "globus-0.1.3-717zbk1pF7jBkH3Wb8XUPf" '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
FromJSON UserEmail Source # 
Instance details

Defined in Network.Globus.Auth

Show UserEmail Source # 
Instance details

Defined in Network.Globus.Auth

Eq UserEmail Source # 
Instance details

Defined in Network.Globus.Auth

data UserProfile Source #

Instances

Instances details
FromJSON UserProfile Source # 
Instance details

Defined in Network.Globus.Auth

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

type Rep UserProfile Source # 
Instance details

Defined in Network.Globus.Auth

type Rep UserProfile = D1 ('MetaData "UserProfile" "Network.Globus.Auth" "globus-0.1.3-717zbk1pF7jBkH3Wb8XUPf" '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)))))