Re: Spring Security problem
Blessed Sakweson <[email protected]> Thu, 18 Jan 2018 09:27:31 -0500
| Newsgroups | gmane.org.user-groups.ajug.members |
|---|---|
| Message-ID | <[email protected]> |
--===============6595784161297337325== Content-Type: multipart/alternative; boundary=Apple-Mail-63F46317-0427-487A-AFD8-EDECC25468E4 Content-Transfer-Encoding: 7bit --Apple-Mail-63F46317-0427-487A-AFD8-EDECC25468E4 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable There is also plenty of examples using oAuth2 spring security module with tr= ivial integration steps that will give you JWT tokens. Take a look a this tu= torial https://spring.io/guides/tutorials/spring-boot-oauth2/ and http://www= .baeldung.com/rest-api-spring-oauth2-angularjs. Hopefully that helps.=20 Regards, Blessed Sakweson m: +1703.935.9137 > On Jan 18, 2018, at 7:15 AM, Chris Curtin <[email protected]> wrote: >=20 > This is specific to JWT and Spring security/boot but the idea is the same.= You'll need to write your own code to create and validate the token, but de= pending on which token types you should be able to find a library easily eno= ugh >=20 > https://www.toptal.com/java/rest-security-with-jwt-spring-security-and-jav= a >=20 >> On Wed, Jan 17, 2018 at 10:33 PM, Mike Barnes <[email protected]> wrote: >> I have a problem where I need to set up spring security to handle a token= based authenticatioln. >>=20 >> Currently, I feel like I am going around in circle trying to simple get s= tarted. >> I also need to mention that this is a spring boot restful application. >>=20 >> The process is that the consmer will come to the site and request a token= which will then be used as authentication with all the other end points. >>=20 >> Could someone point me in the direction of a good tutorial or cookbook th= at shows how to do token based authentication using Spring Security. >>=20 >> Thanks >> Mike Barnes >>=20 >> _______________________________________________ >> ajug-members mailing list >> [email protected] >> Manage your subscription and unsubscribe http://lists.ajug.org/mailman/li= stinfo/ajug-members >=20 >=20 >=20 > --=20 > Thanks, >=20 > Chris > _______________________________________________ > ajug-members mailing list > [email protected] > Manage your subscription and unsubscribe http://lists.ajug.org/mailman/lis= tinfo/ajug-members --Apple-Mail-63F46317-0427-487A-AFD8-EDECC25468E4 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <html><head><meta http-equiv=3D"content-type" content=3D"text/html; charset=3D= utf-8"></head><body dir=3D"auto">There is also plenty of examples using oAut= h2 spring security module with trivial integration steps that will give you J= WT tokens. Take a look a this tutorial <a href=3D"https://spring.io/gui= des/tutorials/spring-boot-oauth2/">https://spring.io/guides/tutorials/spring= -boot-oauth2/</a> and <a href=3D"http://www.baeldung.com/rest-api-= spring-oauth2-angularjs">http://www.baeldung.com/rest-api-spring-oauth2-angu= larjs</a>. Hopefully that helps. <br><br><div id=3D"AppleMailSignature"= >Regards,<br><div>Blessed Sakweson</div><div>m: +1703.935.9137</div></div><d= iv><br>On Jan 18, 2018, at 7:15 AM, Chris Curtin <<a href=3D"mailto:ccurt= [email protected]">[email protected]</a>> wrote:<br><br></div><block= quote type=3D"cite"><div><div dir=3D"ltr">This is specific to JWT and Spring= security/boot but the idea is the same. You'll need to write your own code t= o create and validate the token, but depending on which token types you shou= ld be able to find a library easily enough<div><br></div><div><a href=3D"htt= ps://www.toptal.com/java/rest-security-with-jwt-spring-security-and-java">ht= tps://www.toptal.com/java/rest-security-with-jwt-spring-security-and-java</a= ><br></div></div><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">O= n Wed, Jan 17, 2018 at 10:33 PM, Mike Barnes <span dir=3D"ltr"><<a href=3D= "mailto:[email protected]" target=3D"_blank">[email protected]</a>></span= > wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;bor= der-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div><div>I have a= problem where I need to set up spring security to handle a token based auth= enticatioln.<br><br></div>Currently, I feel like I am going around in circle= trying to simple get started.<br></div><div>I also need to mention that thi= s is a spring boot restful application.</div><div><br></div><div>The process= is that the consmer will come to the site and request a token which will th= en be used as authentication with all the other end points.</div><div><br></= div><div>Could someone point me in the direction of a good tutorial or cookb= ook that shows how to do token based authentication using Spring Security.</= div><div><br></div><div>Thanks</div><span class=3D"HOEnZb"><font color=3D"#8= 88888"><div>Mike Barnes<br></div></font></span></div> <br>______________________________<wbr>_________________<br> ajug-members mailing list<br> <a href=3D"mailto:[email protected]">[email protected]</= a><br> Manage your subscription and unsubscribe <a href=3D"http://lists.ajug.org/ma= ilman/listinfo/ajug-members" rel=3D"noreferrer" target=3D"_blank">http://lis= ts.ajug.org/mailman/<wbr>listinfo/ajug-members</a><br></blockquote></div><br= ><br clear=3D"all"><div><br></div>-- <br><div class=3D"gmail_signature" data= -smartmail=3D"gmail_signature">Thanks,<br><br>Chris</div> </div> </div></blockquote><blockquote type=3D"cite"><div><span>____________________= ___________________________</span><br><span>ajug-members mailing list</span>= <br><span><a href=3D"mailto:[email protected]">ajug-members@lists.= ajug.org</a></span><br><span>Manage your subscription and unsubscribe <a hre= f=3D"http://lists.ajug.org/mailman/listinfo/ajug-members">http://lists.ajug.= org/mailman/listinfo/ajug-members</a></span></div></blockquote></body></html= >= --Apple-Mail-63F46317-0427-487A-AFD8-EDECC25468E4-- --===============6595784161297337325== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KYWp1Zy1tZW1i ZXJzIG1haWxpbmcgbGlzdAphanVnLW1lbWJlcnNAbGlzdHMuYWp1Zy5vcmcKTWFuYWdlIHlvdXIg c3Vic2NyaXB0aW9uIGFuZCB1bnN1YnNjcmliZSBodHRwOi8vbGlzdHMuYWp1Zy5vcmcvbWFpbG1h bi9saXN0aW5mby9hanVnLW1lbWJlcnM= --===============6595784161297337325==--