Skip to content
Snippets Groups Projects
Verified Commit e1506ed8 authored by Simon's avatar Simon
Browse files

Mitgliedsantrag Sheet base64 encode binary signature

parent e6d78277
No related branches found
No related tags found
Loading
Pipeline #1788 passed
......@@ -110,7 +110,7 @@ $pkey = openssl_pkey_get_private(base64_decode(getenv('MITGLIEDSANTRAG_SHEET_PKE
$jwt_signature = '';
openssl_sign($jwt_header.'.'.$jwt_payload, $jwt_signature, $pkey, OPENSSL_ALGO_SHA256);
openssl_free_key($pkey);
$jwt_signature = str_replace(['+', '/', '='], ['-', '_', ''], $jwt_signature);
$jwt_signature = str_replace(['+', '/', '='], ['-', '_', ''], base64_encode($jwt_signature));
$req_body = <<<EOF
{
"grant_type": "urn:ietf:params:oauth:grant-type:jwt-bearer",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment