mirror of
https://github.com/wisemapping/wisemapping-open-source.git
synced 2025-04-04 11:14:29 +08:00
Add missing auth.
This commit is contained in:
parent
cad9c6ca0f
commit
9547543042
@ -47,8 +47,8 @@ public class RestAppConfig {
|
||||
.requestMatchers(mvc.pattern("/api/restful/app/config")).permitAll()
|
||||
.requestMatchers(mvc.pattern("/api/restful/maps/*/document/xml-pub")).permitAll()
|
||||
.requestMatchers(mvc.pattern("/api/restful/users/resetPassword")).permitAll()
|
||||
.requestMatchers(mvc.pattern("/api/oauth2/googlecallback")).permitAll()
|
||||
.requestMatchers(mvc.pattern("/api/oauth2/confirmaccountsync")).permitAll()
|
||||
.requestMatchers(mvc.pattern("/api/restful/oauth2/googlecallback")).permitAll()
|
||||
.requestMatchers(mvc.pattern("/api/restful/oauth2/confirmaccountsync")).permitAll()
|
||||
.requestMatchers(mvc.pattern("/api/restful/admin/**")).hasAnyRole("ADMIN")
|
||||
.requestMatchers(mvc.pattern("/**")).hasAnyRole("USER", "ADMIN")
|
||||
.anyRequest().authenticated()
|
||||
|
Loading…
x
Reference in New Issue
Block a user