[keycloak-user] Token cant be decoded with base64

Stian Thorgersen sthorger at redhat.com
Wed Apr 13 14:43:26 EDT 2016


It's base64 URL encoded which is slightly different, but only sometimes
On 13 Apr 2016 16:36, "Pavel Hora" <phofficial at centrum.cz> wrote:

> ...we have custom mapper of type user property with property value lastName
>
>
>
> Full user name mapper type works fine
>
> ______________________________________________________________
> > Od: "Pavel Hora" <phofficial at centrum.cz>
> > Komu: <keycloak-user at lists.jboss.org>
> > Datum: 13.04.2016 12:39
> > Předmět: Token cant be decoded with base64
> >
>
> Hi,
>
>
>
> we are using Keycloak 1.7.0 Final and for users with national characters
> in lastname (Očenášek) is not possible to decode generated token with
> base64. ...firstname is Lukáš
>
>
>
> String[] splited = src_bad.split("\\.");
>
> String srcToEnc = splited[1];
>
> Decoder d = Base64.getDecoder();
>
> d.decode(srcToEnc);
>
>
>
> ...Illegal base64 character
>
>
>
>
>
> Any suggestion?
>
> thx,
>
> pH.
>
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20160413/b840d445/attachment-0001.html 


More information about the keycloak-user mailing list