...
This service provides a SOAP alternative to the RESTful oauth2revoketoken
service, and is used to revoke an OAuth 2 Token that was previously used by an OAuth 2 Authenticated User of a Client App for access to Projector services. Note that this service should not be provided with a SessionTicket on invocation. Note also that if the response has a non-null value for RedirectUrl
, the service was invoked on the incorrect server and must be re-invoked on the server specified in RedirectUrl
.
As per OAuth 2.0 standard, this service will respond with "success" whether or not the presented refresh token is currently valid and in play, or has been previously revoked. The service will complain if the token presented is of incorrect or invalid form.
Request Format
Panel |
---|
title | PwsRevokeOauth2RefreshToken Request |
---|
|
- PwsRevokeOauth2RefreshToken
|
...
Response Usage Example(s)
Code Block |
---|
language | xml |
---|
title | Response on successful revocation of token |
---|
linenumbers | true |
---|
collapse | true |
---|
|
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<PwsRevokeOauth2RefreshTokenResponse xmlns="http://projectorpsa.com/PwsProjectorServices/">
<PwsRevokeOauth2RefreshTokenResult xmlns:a="http://projectorpsa.com/DataContracts/Responses/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Messages xmlns="http://projectorpsa.com/CommonServices/" xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/"/>
<ResponseId xmlns="http://projectorpsa.com/CommonServices/">0</ResponseId>
<Status xmlns="http://projectorpsa.com/CommonServices/">Ok</Status>
<ServerTimestampUtc xmlns="http://projectorpsa.com/CommonServices/">2021-12-08T16:19:04.5684513Z</ServerTimestampUtc>
<a:RedirectUrl>http://secure2.projectorpsa.com</a:RedirectUrl>
</PwsRevokeOauth2RefreshTokenResult>
</PwsRevokeOauth2RefreshTokenResponse>
</s:Body>
</s:Envelope> |
Code Block |
---|
language | xml |
---|
title | Response when revocation request was invoked on incorrect server |
---|
linenumbers | true |
---|
collapse | true |
---|
|
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<PwsRevokeOauth2RefreshTokenResponse xmlns="http://projectorpsa.com/PwsProjectorServices/">
<PwsRevokeOauth2RefreshTokenResult xmlns:a="http://projectorpsa.com/DataContracts/Responses/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Messages xmlns="http://projectorpsa.com/CommonServices/" xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/"/>
<ResponseId xmlns="http://projectorpsa.com/CommonServices/">0</ResponseId>
<Status xmlns="http://projectorpsa.com/CommonServices/">Ok</Status>
<ServerTimestampUtc xmlns="http://projectorpsa.com/CommonServices/">2021-12-08T16:19:04.5684513Z</ServerTimestampUtc>
<a:RedirectUrl i:nil="true"/>
</PwsRevokeOauth2RefreshTokenResult>
</PwsRevokeOauth2RefreshTokenResponse>
</s:Body>
</s:Envelope> |
PwsRevokeOauth2RefreshToken - Common Errors and Warnings
...