Skip to content

Commit

Permalink
Update 401 error trigger to include old tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
JackPlowman committed Apr 19, 2024
1 parent 146ac83 commit 7d5210d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion proxies/live/apiproxy/targets/target.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,18 @@
<Step>
<Name>SetMimeType</Name>
</Step>
<Step>
<Condition>response.status.code = 403</Condition>
<Name></Name>
</Step>
</Response>
</PostFlow>
<FaultRules>
<FaultRule name="unauthorized">
<Step>
<Name>RaiseFault.401Unauthorized</Name>
<Condition>
oauthV2.OauthV2.VerifyAccessToken.failed = true or fault.name = "invalid_access_token" or fault.name = "InvalidAccessToken" or fault.name = "access_token_not_approved" or fault.name = "apiresource_doesnot_exist" or fault.name = "InvalidAPICallAsNo" or fault.name = "ApiProductMatchFound"
oauthV2.OauthV2.VerifyAccessToken.failed = true or fault.name = "invalid_access_token" or fault.name = "InvalidAccessToken" or fault.name = "access_token_not_approved" or fault.name = "apiresource_doesnot_exist" or fault.name = "InvalidAPICallAsNo" or fault.name = "ApiProductMatchFound" or fault.name = "access_token_expired"
</Condition>
</Step>
</FaultRule>
Expand Down

0 comments on commit 7d5210d

Please sign in to comment.