Skip to content

Commit a410238

Browse files
gaynor@illinois.edugaynor@illinois.edu
authored andcommitted
Bad package path for OA2ATServlet
1 parent 576e53f commit a410238

File tree

1 file changed

+10
-1
lines changed
  • scitokens-server/var/qdl/scitokens

1 file changed

+10
-1
lines changed

scitokens-server/var/qdl/scitokens/st.qdl

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
Basic script to fetch the capabilities for a user (by eppn here) and
33
put it in the scopes for the access token.
44
*/
5+
define[
6+
stAud(x.)
7+
][
8+
aud_caput := 'aud:';
9+
xi. := mask(x., starts_with(x., aud_caput) == 0); // only those that start with the caput
10+
return(substring(xi., size(aud_caput)));
11+
];
512

613
EPE := 'eduPersonEntitlement';
714

@@ -16,4 +23,6 @@
1623
eta. := get_claims(create_source(cfg.), claims.'sub');
1724

1825
access_token.scope := detokenize(unique(eta.EPE), ' ', 2); // turn in to string, omit duplications, trailing space
19-
access_token.'aud' := eta.'audience';
26+
if[is_defined(eta.'audience')][access_token.'aud' := eta.'audience';];
27+
xi. := stAud(scopes.);
28+
if[0<size(xi.)][access_token.'aud' := xi.;];

0 commit comments

Comments
 (0)