<p style="padding:0 0 0 0; margin:0 0 0 0;">No one Base64 decoder can decode it. Even atob JS function, ...</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> </p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> </p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">______________________________________________________________<br />
> Od: Stian Thorgersen <sthorger@redhat.com><br />
> Komu: Pavel Hora <phofficial@centrum.cz><br />
> Datum: 13.04.2016 20:43<br />
> Předmět: Re: [keycloak-user] Token cant be decoded with base64<br />
></p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">> CC: "keycloak-user"</p>
<p dir="ltr">It's base64 URL encoded which is slightly different, but only sometimes</p>
<div class="gmail_quote">On 13 Apr 2016 16:36, "Pavel Hora" <<a href="mailto:phofficial@centrum.cz">phofficial@centrum.cz</a>> wrote:<br />
<blockquote class="gmail_quote" style="margin: 0 0 0 .8ex; border-left: 1px #ccc solid; padding-left: 1ex;">
<p style="padding: 0 0 0 0; margin: 0 0 0 0;">...we have custom mapper of type user property with property value lastName</p>
<p style="padding: 0 0 0 0; margin: 0 0 0 0;"> </p>
<p style="padding: 0 0 0 0; margin: 0 0 0 0;">Full user name mapper type works fine</p>
<p style="padding: 0 0 0 0; margin: 0 0 0 0;">______________________________________________________________<br />
> Od: "Pavel Hora" <<a href="mailto:phofficial@centrum.cz">phofficial@centrum.cz</a>><br />
> Komu: <<a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a>><br />
> Datum: 13.04.2016 12:39<br />
> Předmět: Token cant be decoded with base64<br />
></p>
<p style="padding: 0 0 0 0; margin: 0 0 0 0;">Hi,</p>
<p style="padding: 0 0 0 0; margin: 0 0 0 0;"> </p>
<p style="padding: 0 0 0 0; margin: 0 0 0 0;">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áš</p>
<p style="padding: 0 0 0 0; margin: 0 0 0 0;"> </p>
<p style="padding: 0 0 0 0; margin: 0 0 0 0;">String[] splited = src_bad.split("\\.");</p>
<p style="padding: 0 0 0 0; margin: 0 0 0 0;">String srcToEnc = splited[1];</p>
<p style="padding: 0 0 0 0; margin: 0 0 0 0;">Decoder d = Base64.getDecoder();</p>
<p style="padding: 0 0 0 0; margin: 0 0 0 0;">d.decode(srcToEnc);</p>
<p style="padding: 0 0 0 0; margin: 0 0 0 0;"> </p>
<p style="padding: 0 0 0 0; margin: 0 0 0 0;">...Illegal base64 character</p>
<p style="padding: 0 0 0 0; margin: 0 0 0 0;"> </p>
<p style="padding: 0 0 0 0; margin: 0 0 0 0;"> </p>
<p style="padding: 0 0 0 0; margin: 0 0 0 0;">Any suggestion?</p>
<p style="padding: 0 0 0 0; margin: 0 0 0 0;"><span style="font-size: 10pt;">thx,</span></p>
<p style="padding: 0 0 0 0; margin: 0 0 0 0;"><span style="font-size: 10pt;">pH.</span></p>
<br />
_______________________________________________<br />
keycloak-user mailing list<br />
<a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br />
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></blockquote>
</div>