From 39e21ff7fe4a6fef131e40c2e1de5aee33c2f196 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrej=20Rama=C5=A1euski?= <andrej@x2.cz> Date: Sun, 15 Dec 2024 20:26:29 +0100 Subject: [PATCH] Uprava pro akitualni verzi Mojo::JWT --- Dockerfile | 2 +- VERSION | 2 +- lib/SeMeet/Helpers/OIDC.pm | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index cc4c812..77980a3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,7 +25,7 @@ RUN cpanm \ Mojolicious \ Mojo::Pg \ Mojo::Redis \ - Mojo::JWT@0.09 \ + Mojo::JWT \ GraphQL::Client \ Mojolicious::Plugin::Authentication \ Mojolicious::Plugin::I18N \ diff --git a/VERSION b/VERSION index 7cca771..c3d16c1 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.17.1 +0.17.2 diff --git a/lib/SeMeet/Helpers/OIDC.pm b/lib/SeMeet/Helpers/OIDC.pm index 4f8ae42..81d5b1d 100644 --- a/lib/SeMeet/Helpers/OIDC.pm +++ b/lib/SeMeet/Helpers/OIDC.pm @@ -23,8 +23,10 @@ sub register { my $res = $tx->result; if ($res->is_success) { + my $key = join "\n", unpack("(A64)*", $res->json->{public_key}); + $jwt = Mojo::JWT->new( - public => sprintf( KEY_FORMAT, $res->json->{public_key} ) + public => sprintf( KEY_FORMAT, $key ) ); } -- GitLab