<div dir="ltr"><div>







<p class="">Hi,</p><p class="">I have to create a rest layer to allow a mobile application to interact with KC because mobile developers don&#39;t want to use any kind of redirect or webview, only rest calls for login/registration.</p><p class="">For a username/password  authentication/registration  is easy, I can use admin rest api, but for social login (only via facebook), there is a way to get a keycloak JWT token passing a facebook token using admin api or any other rest api?</p><p class="">If not,  it&#39;s better to plug  an authentication provider using <span style="color:rgb(51,51,51);font-family:&quot;Helvetica Neue&quot;,Helvetica,Arial,sans-serif;letter-spacing:0.2px">Authentication SPI or create a custom rest endpoint and generate (don&#39;t know how) a JWT? </span></p><p class=""><span style="font-size:12.8px">Thanks.</span></p></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-family:tahoma,&quot;new york&quot;,times,serif;font-weight:bold">Luigi De Masi</div><div style="font-family:tahoma,&quot;new york&quot;,times,serif"><i style="font-family:&quot;times new roman&quot;,serif;font-size:12.8px">&quot;Talk is cheap. Show me the code.&quot;</i><br></div><div><font face="times new roman, serif"><i>                           -- Linus Torvalds</i></font></div><br></div></div></div></div></div></div></div></div>
</div>

<br>
<div style="font-size:small;color:rgb(34,34,34);font-stretch:normal;background-color:rgb(255,255,255)"><font size="2">
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<hr></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></font><table style="color:rgb(0,0,0);font-size:12.8px;font-family:&quot;Times New Roman&quot;;border:0px;margin:0px;padding:0px;background:none" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family:arial,sans-serif;margin:0px;padding:0px 7px 0px 0px;border-top-width:0px;border-right-width:3px;border-right-style:solid;border-right-color:rgb(189,69,24)" valign="top"><img src="https://ci6.googleusercontent.com/proxy/OexdHtSluslMltlgJtjhuQfMv_pN2XvNq15qRxNvzWbiVkH-cwUnHAi6cuI50Fp9aM8IT4asflXee0EI4wiBoGtvwmlDMRQRBPAI-MpJ7EH0G6itq9YN=s0-d-e1-ft#http://email.extrasrl.it/hubfs/Logos/Extra_Logo-287379-edited.png"></td><td style="font-family:arial,sans-serif;margin:0px;padding:0px 0px 0px 12px"><table style="border:0px;margin:0px;padding:0px;background:none" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td colspan="2" style="font-family:Arial,Helvetica,sans-serif;margin:0px;padding-bottom:5px;color:rgb(189,69,24);font-size:18px">Extra srl</td></tr><tr><td style="font-family:Arial,Helvetica,sans-serif;margin:0px;vertical-align:top;width:20px;color:rgb(247,31,31);font-size:14px" valign="top" width="20">p:</td><td style="font-family:Arial,Helvetica,sans-serif;margin:0px;vertical-align:top;color:rgb(29,161,219);font-size:14px" valign="top"><a style="color:rgb(29,161,219);text-decoration:none">+39 0587975800</a></td></tr><tr><td style="font-family:Arial,Helvetica,sans-serif;margin:0px;vertical-align:top;width:20px;color:rgb(247,31,31);font-size:14px" valign="top" width="20">a:</td><td style="font-family:Arial,Helvetica,sans-serif;margin:0px;vertical-align:top;color:rgb(51,51,51);font-size:14px" valign="top"><a href="https://goo.gl/maps/ngs7hecn9By" style="color:rgb(29,161,219);text-decoration:none" target="_blank">Via Salvo D&#39;Acquisto 40/P - 56025 - Pontedera - Italy</a></td></tr><tr><td style="font-family:Arial,Helvetica,sans-serif;margin:0px;vertical-align:top;width:20px;color:rgb(247,31,31);font-size:14px" valign="top" width="20">w:</td><td style="font-family:Arial,Helvetica,sans-serif;margin:0px;vertical-align:top;color:rgb(51,51,51);font-size:14px" valign="top"><a href="http://www.extrasrl.it/" style="color:rgb(29,161,219);text-decoration:none" target="_blank">www.extrasrl.it</a>  <span style="color:rgb(247,31,31)">e: </span><a href="mailto:info@extrasys.it" style="color:rgb(29,161,219);text-decoration:none" target="_blank">info@<wbr>extrasys.it</a></td></tr><tr><td colspan="2" style="margin:0px;padding-top:5px"><a href="https://www.facebook.com/Extra-149813195076455/?fref=ts" style="color:rgb(17,85,204);border:0px;text-decoration:none" target="_blank"><img src="https://ci4.googleusercontent.com/proxy/KSd1y52khHv9agmQvrCbryrM-2fW2_TTiv_ZyM7g8CvIOy1lLeiL98i21qwjj_AtIcK1gmFVa_3klKcL84Nn9soPAtkHRj9nuToKZ86G2yoOSEHDRVJtmcoMmxPmmaYL9i1otg=s0-d-e1-ft#http://cdn2.hubspot.net/hubfs/184235/dev_images/signature_app/facebook_sig.png" style="border:none;width:25px;min-height:25px;max-width:25px!important;max-height:25px!important" height="25" width="25"> </a>  <a href="https://twitter.com/extrasrl" style="color:rgb(17,85,204);border:0px;text-decoration:none" target="_blank"><img src="https://ci6.googleusercontent.com/proxy/Sh-8YmBCXXgMOdOoPgPtgPnKQjxnBXcEwel_xmwS_cHPKRztClUPBPiJEHPdtG3Hei5hccBS7ONl-N_UCmjOHpHCwBzTomOq7BWdwmxz1KhrziiqbYJgeX4FOXOOh5DEqF8y=s0-d-e1-ft#http://cdn2.hubspot.net/hubfs/184235/dev_images/signature_app/twitter_sig.png" style="border:none;width:25px;min-height:25px;max-width:25px!important;max-height:25px!important" height="25" width="25"> </a>  <a href="https://www.linkedin.com/company/extra-srl" style="color:rgb(17,85,204);border:0px;text-decoration:none" target="_blank"><img src="https://ci5.googleusercontent.com/proxy/hzQ50OystqOxlKMduZD32nQoNlmY4n_0V4lxPUWy5nU5cr1gbQR-03vxhbJL7qRILyM-QnaRbLIvZIoxOof999Ep266X82hDAOK2K4jC9rBUhUVgcslhZQ1jOUHJwKu2s6_4sA=s0-d-e1-ft#http://cdn2.hubspot.net/hubfs/184235/dev_images/signature_app/linkedin_sig.png" style="border:none;width:25px;min-height:25px;max-width:25px!important;max-height:25px!important" height="25" width="25"> </a>  <a href="https://flipboard.com/@extrasrl/soluzioni-per-il-business-0rk6urr6y" style="color:rgb(17,85,204);border:0px;text-decoration:none" target="_blank"><img src="https://ci6.googleusercontent.com/proxy/ggirPE4PTkolJ0O_e-OV3ZXeTcKY0u0QpgQrPXTbpLNMrxFdmZTQg6pFGxGp-HOtx2opNj1Bx56E3OXVldMCKdfB2LVWAzudIkfC_vDw0KP6KpZxZ3fWgT5M81P9uBgnv8wOBgLAPuQWElz5_KpnV6iQrwWBbOJiEg=s0-d-e1-ft#http://cdn2.hubspot.net/hubfs/1976691/Logos/Flipboard-icon-5-best-apps-for-college-students-tlu.jpg" style="border:none;width:25px;min-height:25px;max-width:25px!important;max-height:25px!important" height="25" width="25"> </a>  <a href="https://www.youtube.com/channel/UCZa_aTznqeh5zoIPKPk1dNg" style="color:rgb(17,85,204);border:0px;text-decoration:none" target="_blank"><img src="https://ci6.googleusercontent.com/proxy/mJBFS-WimmCljJsnRpxJiV929FhrGctD7SOVh0Vc1scfwI7nLGbL0kBMHC-oKf4xWUj5zaIjKhxtkTZbTl6k6qTwnFI0HI3hNxxMIImfVSG7-gPB96eVIyKfuAu15lI=s0-d-e1-ft#http://cdn2.hubspot.net/hubfs/1976691/Logos/youtube-icon-block-png-17.png" style="border:none;width:25px;min-height:25px;max-width:25px!important;max-height:25px!important" height="25" width="25"></a><br></td></tr></tbody></table></td></tr></tbody></table><span style="font-size:6pt;font-family:Arial,sans-serif;color:gray" lang="IT">Le informazioni trasmesse sono riservate alla persona o ente alla quali sono indirizzate e possono contenere informazioni riservate e/o materiale di valore. Qualsiasi revisione, ritrasmissione, diffusione o altro uso, o l&#39;adozione di azioni basate su tali informazioni da parte di soggetti diversi dal destinatario è proibita. Se avete ricevuto per errore questo messaggio, siete pregati di informare il mittente e cancellare il materiale contenuto da ogni computer.</span><span style="font-size:6pt;font-family:Arial,sans-serif" lang="IT"></span></div><div style="color:rgb(34,34,34);font-stretch:normal;background-color:rgb(255,255,255)"><p style="margin:0px 0px 0.0001pt;font-family:arial,sans-serif;font-size:12.8px;text-align:justify"><span style="font-size:6pt;font-family:&quot;Times New Roman&quot;,serif" lang="IT"> </span></p><p style="margin:0px 0px 0.0001pt;font-family:arial,sans-serif;font-size:12.8px;text-align:justify;background-image:initial;background-repeat:initial"><span style="font-size:6pt;font-family:Arial,sans-serif;color:gray">The information transmitted is intended for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.</span></p></div><div style="color:rgb(34,34,34);font-stretch:normal;background-color:rgb(255,255,255)"><font style="font-size:small" face="Arial"><span style="color:rgb(128,128,128)"><font size="2"><img style="border-width:0pt;border-style:none;border-color:-moz-use-text-color" src="http://www.extrasrl.it/wp-content/uploads/2013/10/ThinkPrint.jpg" height="41" width="68"></font></span></font></div>