Skip to content

Add prototype version of the system JWKS cache#195

Open
bbockelm wants to merge 1 commit intomasterfrom
system_jwks_cache
Open

Add prototype version of the system JWKS cache#195
bbockelm wants to merge 1 commit intomasterfrom
system_jwks_cache

Conversation

@bbockelm
Copy link
Contributor

No description provided.

@bbockelm bbockelm requested a review from djw8605 December 19, 2025 00:52
Copy link
Contributor

@DrDaveD DrDaveD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks good to me, although it could use some more comments and some documentation somewhere saying that it is following the WLCG system JWKS cache standard.

It makes the most sense to me to implement fetch-jwks using the same code base, as a subpackage of scitokens-cpp (without inheriting the prefix).

return oss.str();
}

bool extract_json_objects(const std::string &content,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm suprised that picojson doesn't have a function like "get me the next json object starting at this index", and "and next object starting at this index".

Copy link
Contributor

@DrDaveD DrDaveD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is still looking for the short names with a .0 in the cache directory, not following the released standard.

It does appear to work correctly when JWKS_CACHE_FILE is set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants