C
C
Crawlin2018-10-03 01:46:30
Java
Crawlin, 2018-10-03 01:46:30

How to get the URL of a protected resource caught by spring security filter?

When trying to get to a protected url, the spring throws the user to the login page, after authorization, you can redirect him to the url that the filter caught.
How to get this url from spring?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladislav, 2018-10-03
@Div100

Here, apparently, what you need - Link
In general, the process does not look complicated enough:
1. You hang up successHandler after login
2. You write your own logic in it, what to do after login.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question