authentication - Spring Security privacy policy message after successful login -


i'm looking way include warning page after successful login in spring security app. warning page display message user has logged in pressing "yes" agree terms , conditions bla bla... want ensure can't access resources unless click "yes".

how can include in journey? i've implemented custom success handler if help.

thank's in advance.

this matter of choice implement it.

you can creating custom implementation of userdetailsservice. interface has 1 method namely loaduserbyusername, returns instance of userdetails again interface spring security. implementing userdetails interface user pojo/entity can have access useful messages can check user active or enabled or credentials non expired, etc. have @ javadoc. there can handle user has accepted terms , conditions or not.

another way create custom spel check whether user has accepted terms or not.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -