Y
Y
Yuri2017-02-21 12:02:38
Java
Yuri, 2017-02-21 12:02:38

Spring Security + REST server how to login?

Hello. I'm trying to attach to the Spring Security REST server, but I can't figure out how the authorization happens. Need to create a controller and pass username, password and csrf token to it? Then where should the data go and what should be returned to the client in response?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
maxt888, 2017-02-21
@maxt888

Read the SpringSecurity doc in detail, everything is described in great detail there.

0
0xD34F, 2017-10-26
@0xD34F

What is meant by "any format" is not very clear... but for the options that you have shown, such a regular expression is suitable, for example: '/^\+372((( |-)?\d){8,})$/'.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question