I am trying to build a complete sample code for Gateway, UI , Resource . Every thing worked perfect except when i tried to do post .
I noticed first that i have double csrf one from gateway and one from the UI . So my decision which i am not sure is the correct was to disable csrf on UI and keep it on the gateway (Zuul Proxy) but i was not able to do that .
I could not tell what adapter i should extent WebSecurityConfigurerAdapter
or ResourceServerConfigurerAdapter
As soon i declare WebSecurityConfigurerAdapter
the whole OAuth2Sso stop working and i got access denied and ResourceServerConfigurerAdapter
does not seem to do any thing.
At first i would like to disable csrf on @EnableZuulProxy
and
@EnableOAuth2Sso