Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Revokes all of the access tokens generated by, and at the same time as, the specified refresh token. After a token is revoked, you can't use the revoked token to access Amazon Cognito user APIs, or to authorize access to your resource server.
Synopsis
- data RevokeToken = RevokeToken' {}
- newRevokeToken :: Text -> Text -> RevokeToken
- revokeToken_clientSecret :: Lens' RevokeToken (Maybe Text)
- revokeToken_token :: Lens' RevokeToken Text
- revokeToken_clientId :: Lens' RevokeToken Text
- data RevokeTokenResponse = RevokeTokenResponse' {
- httpStatus :: Int
- newRevokeTokenResponse :: Int -> RevokeTokenResponse
- revokeTokenResponse_httpStatus :: Lens' RevokeTokenResponse Int
Creating a Request
data RevokeToken Source #
See: newRevokeToken
smart constructor.
Instances
Create a value of RevokeToken
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:
RevokeToken
, revokeToken_clientSecret
- The secret for the client ID. This is required only if the client ID has
a secret.
$sel:token:RevokeToken'
, revokeToken_token
- The refresh token that you want to revoke.
RevokeToken
, revokeToken_clientId
- The client ID for the token that you want to revoke.
Request Lenses
revokeToken_clientSecret :: Lens' RevokeToken (Maybe Text) Source #
The secret for the client ID. This is required only if the client ID has a secret.
revokeToken_token :: Lens' RevokeToken Text Source #
The refresh token that you want to revoke.
revokeToken_clientId :: Lens' RevokeToken Text Source #
The client ID for the token that you want to revoke.
Destructuring the Response
data RevokeTokenResponse Source #
See: newRevokeTokenResponse
smart constructor.
RevokeTokenResponse' | |
|
Instances
newRevokeTokenResponse Source #
Create a value of RevokeTokenResponse
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:httpStatus:RevokeTokenResponse'
, revokeTokenResponse_httpStatus
- The response's http status code.
Response Lenses
revokeTokenResponse_httpStatus :: Lens' RevokeTokenResponse Int Source #
The response's http status code.