scitokens / scitokens-cpp

A C++ implementation of the SciTokens library with a C library interface
Apache License 2.0
5 stars 22 forks source link

Implement `ANY` handling logic for SciTokens 1.0 #139

Open bbockelm opened 3 months ago

bbockelm commented 3 months ago

In the scitokens claim documentation, the special ANY audience applies to both versions 1.0 and 2.0.

However, in the implementation, the special logic is only implemented for v2.0 tokens:

https://github.com/scitokens/scitokens-cpp/blob/master/src/scitokens_internal.h#L884-L891

This should be tweaked to cover both