CallAccountsEndpointWithBearerTokenExpectingError checks whether Resource Server returns error when it receives Access Token that became invalid due to some reason (double usage of Authz Code).
Resource Server needs to have capability of checking whether received Access Token is valid or not.
To do so, Resource Server asks keycloak for it by Token Introspection, and returns error to the Client if it is invalid.
CallAccountsEndpointWithBearerTokenExpectingError
checks whether Resource Server returns error when it receives Access Token that became invalid due to some reason (double usage of Authz Code).Resource Server needs to have capability of checking whether received Access Token is valid or not.
To do so, Resource Server asks keycloak for it by Token Introspection, and returns error to the Client if it is invalid.