Generate RSA SHA256 JWT for Google APIs in PL/SQL
I'm attempting to generate a JWT for Oauth 2.0 authentication to Google's APIs. When I generate the jwt using the code below, I get an invalid jwt signature error. Tried everything from stripping line breaks and the ----BEGIN/END Private Key ------ lines, but to no avail.
Is there anything else I'm missing ? Is the algorithm compatible?