• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

Spring Security integration with a REST API

Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys,

Heard about this forum and thought this would be a great place to ask a question. They say there are no stupid questions... please disagree if you feel like it.

I'm trying to pick up Spring but not having a strong Java knowledge I have to learn a lot of stuff around it as I get to it. I understand it's a terrible way to learn but I kinda enjoy it. I understand there is no structure to such learning but I'm having fun and I see it as a form of entertainment. This is a hobby so I am not charging anybody money or making any sort of real world damage.

I'm trying to integrate Spring Security with a rest api I'm trying to build. Most things are clear. I need to override methods that redirect and return 401 / 200 instead of 302. Also I have to configure in memory users. I've followed a couple of tutorial but in the end I made a solution that's kind of a hybrid. Having done that I am left with 3 lines that confuse me, because I don't really understand what Spring is doing with it.

My custom security configurer class that extends WebSecurityConfigurerAdapter

I'm am not sure what these lines are doing. And any help would be greatly appreciated.

I'm assuming that Spring registers it somewhere but I would like to know a bit more.

Here are the other two files in my `security` package

Thank you in advance.

To avoid criticism do nothing, say nothing, be nothing. -Elbert Hubbard. Please critique this tiny ad:
a bit of art, as a gift, the permaculture playing cards
    Bookmark Topic Watch Topic
  • New Topic