Spring Security
I wanna Config The Spring Config class but due to changemnet in version i am not able to do it . Can anyone Help
i want to make a custom login page and authenticate every endpoint excpet the
/
this one how could i achieve it ?32 Replies
⌛
This post has been reserved for your question.
Hey @Danix! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
What happens with your current config? How is that different from what you expect?
i am doing it like this but stil not able to access the
/registerPage
i dont know why ?What happens when attempting to access it?
returning to /LoginPage Everytime
auth.anyRequest().authenticated()
that means any request that doesn't have a specific configuration before that requires authentication
You can put the
belowbut i have permitted the
/registerPage
as well right ?Is
/registerPage
redirected anywhere?
I think that one should be permitted
now i have changed everything but still not reachable ->
@dan1st | Daniel
What happens which you don't expect to happen?
i want the registe Page but when i click on register through login page then it still redirect me into loginpage endpoint
@dan1st | Daniel
try replacing
with
still getting same
When exactly are you redirected? When loading the register page or after sending username/password?
i am not sending the username and password right now bcz i am just checking the endpoints and if the user is not registred then how it could register itseld first
.
Are you redirected on the GET endpoint?
Can you show the main class including the package declaration?
i am getting 302 with /registerpage endpoint means Get one when i click on register
/registerpage
?
Not /registerPage
?What are you requesting in your browser?
What's the link in the login page?
Can you enable Spring Security debug logging?
You did restart the application after making the changes, right?
Yehh I do
.
Yehh
ok after opening of debugg and clicking on register i got a huge error
check registration.html line 104, col 54
It doesn't know
name
ok got it
💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.