Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data OAuthCredentials = OAuthCredentials' {}
- newOAuthCredentials :: Text -> Text -> OAuthCredentials
- oAuthCredentials_accessToken :: Lens' OAuthCredentials (Maybe Text)
- oAuthCredentials_refreshToken :: Lens' OAuthCredentials (Maybe Text)
- oAuthCredentials_oAuthRequest :: Lens' OAuthCredentials (Maybe ConnectorOAuthRequest)
- oAuthCredentials_clientId :: Lens' OAuthCredentials Text
- oAuthCredentials_clientSecret :: Lens' OAuthCredentials Text
Documentation
data OAuthCredentials Source #
The OAuth credentials required for OAuth type authentication.
See: newOAuthCredentials
smart constructor.
OAuthCredentials' | |
|
Instances
Create a value of OAuthCredentials
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:accessToken:OAuthCredentials'
, oAuthCredentials_accessToken
- The access token used to access protected SAPOData resources.
$sel:refreshToken:OAuthCredentials'
, oAuthCredentials_refreshToken
- The refresh token used to refresh expired access token.
$sel:oAuthRequest:OAuthCredentials'
, oAuthCredentials_oAuthRequest
- The OAuth requirement needed to request security tokens from the
connector endpoint.
$sel:clientId:OAuthCredentials'
, oAuthCredentials_clientId
- The identifier for the desired client.
$sel:clientSecret:OAuthCredentials'
, oAuthCredentials_clientSecret
- The client secret used by the OAuth client to authenticate to the
authorization server.
oAuthCredentials_accessToken :: Lens' OAuthCredentials (Maybe Text) Source #
The access token used to access protected SAPOData resources.
oAuthCredentials_refreshToken :: Lens' OAuthCredentials (Maybe Text) Source #
The refresh token used to refresh expired access token.
oAuthCredentials_oAuthRequest :: Lens' OAuthCredentials (Maybe ConnectorOAuthRequest) Source #
The OAuth requirement needed to request security tokens from the connector endpoint.
oAuthCredentials_clientId :: Lens' OAuthCredentials Text Source #
The identifier for the desired client.
oAuthCredentials_clientSecret :: Lens' OAuthCredentials Text Source #
The client secret used by the OAuth client to authenticate to the authorization server.