Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPA-3627 Pass Through VOT Header #125

Merged
merged 3 commits into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<AssignMessage async="false" continueOnError="false" enabled="true" name="AddUserAuthLevel">
<DisplayName>Add User Auth Level</DisplayName>
<AssignMessage async="false" continueOnError="false" enabled="true" name="AddUserAuthHeaders">
<DisplayName>Add User Auth Headers</DisplayName>
<Add>
<Headers>
<Header name="accesstoken.auth_level">{toUpperCase(accesstoken.auth_level)}</Header>
<Header name="accesstoken.auth_user_id">{accesstoken.auth_user_id}</Header>
<Header name="accesstoken.auth_vot">{jwt.DecodeAccessTokenJWT.claim.vot}</Header>
</Headers>
</Add>
<IgnoreUnresolvedVariables>true</IgnoreUnresolvedVariables>
<AssignTo createNew="false" transport="http" type="request"/>
</AssignMessage>
</AssignMessage>

This file was deleted.

11 changes: 0 additions & 11 deletions proxies/live/apiproxy/policies/AssignMessage.AddUserNHSNumber.xml

This file was deleted.

4 changes: 4 additions & 0 deletions proxies/live/apiproxy/policies/DecodeAccessTokenJWT.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<DecodeJWT async="false" continueOnError="false" enabled="true" name="DecodeAccessTokenJWT">
<DisplayName>DecodeAccessTokenJWT</DisplayName>
<Source>accesstoken.id_token</Source>
</DecodeJWT>
4 changes: 2 additions & 2 deletions proxies/live/apiproxy/targets/target.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
<Name>AddProxyURL</Name>
</Step>
<Step>
<Name>AddUserAuthLevel</Name>
<Name>DecodeAccessTokenJWT</Name>
</Step>
<Step>
<Name>AddUserNHSNumber</Name>
<Name>AddUserAuthHeaders</Name>
</Step>
<Step>
<Name>RaiseFault.415UnsupportedMediaType</Name>
Expand Down