MetadataProvider and update
Brent Putman
putmanb at georgetown.edu
Thu May 11 20:32:18 EDT 2017
On 5/11/17 7:23 PM, Tom Scavo wrote:
> On Thu, May 11, 2017 at 7:00 PM, Brent Putman <putmanb at georgetown.edu> wrote:
>> However as they mention in JWS [1], it's trivial to implement base64url in
>> terms of using existing base64 routines + a bit of search/replace. So for
>> example a little wrapper script around the base64 cli tool would probably do
>> the trick.
>>
>> [1] https://tools.ietf.org/html/rfc7515#appendix-C
> Are you suggesting the following:
>
> 1. Apply base64
> 2. Translate '/' and '+' characters
Dont't forget:
3. Strip trailing '='.
That's for encoding.
Decoding is just the reverse order. Have to do a little modular
arithmetic to add the appropriate number of '=' padding at the end.
>
> The latter could be done with the tr command, I suppose.
Or perl, sed, or other things that can act as unix cmdline filters. Or
wrap the whole base64 call with perl, python, etc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20170511/bf27bc7f/attachment.html>
More information about the users
mailing list