ncsa / oa4mp

Open Authorization for MyProxy
https://oa4mp.org/
Other
8 stars 10 forks source link

in the CLC (Command line client): Change the ID token from being a JSON object to a Java token object #130

Closed jjg-123 closed 10 months ago

jjg-123 commented 11 months ago

Once upon a time in the CLC, the ID token was the only JWT known. The CLC has the payload for the ID token as a JSON object, which means that code is littered with direct access to it for information like expiration time etc. In the mean time, JWTs got their own spec and there is now very nice machinery in the rest of OA4MP to deal with JWTs. Therefore, convert the CLC to use one of these rather than the ever more clunky direct access.

This should not change functionality at all, but will centralize a lot of operations and just make the code less of a mess.