Skip to content
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
2 changes: 1 addition & 1 deletion scitokens-server/etc/templates/client-template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<entry key="public_key">4b289478ab9e80f43a837620fd09e3484b10bb77</entry>
<entry key="last_modified_ts">2022-01-19T21:39:03.254Z</entry>
<entry key="rt_lifetime">1209600000</entry>
<entry key="cfg">{"tokens":{"access":{"audience":"ANY","type":"sci_token","qdl": {"load": "vfs#/scripts/scitokens/policies.qdl","xmd": {"exec_phase": ["pre_auth","post_token","post_refresh","post_exchange"]}}}}}</entry>
<entry key="cfg">{"tokens":{"access":{"audience":"ANY","type":"sci_token","qdl": {"load": "vfs#/scripts/scitokens/policies.qdl","xmd": {"exec_phase": ["pre_auth","post_token","post_refresh","post_exchange"]}}}, "identity": {"type": "identity", "qdl": {"load": "vfs#/scripts/scitokens/id_token_policies.qdl", "xmd": {"exec_phase": ["post_token", "post_refresh", "post_exchange"]}}} }}</entry>
<entry key="proxy_limited">false</entry>
<entry key="home_url">https://localhost:9443/client2</entry>
<entry key="sign_tokens">true</entry>
Expand Down
15 changes: 15 additions & 0 deletions scitokens-server/var/qdl/scitokens/id_token_policies.qdl
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*
Simply prefer the eppn for the subject; otherwise, pass the token through.
*/

if[
is_defined(claims.'eppn')
][
claims.'sub' := claims.'eppn';
]else[
if[
is_defined(claims.'email')
][
claims.'sub' := claims.'email';
];
];