You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.adoc
+21-2Lines changed: 21 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -707,10 +707,29 @@ a|
707
707
708
708
=== Server side configuration
709
709
710
-
GRPC security configuration follows the same principals and APIs as Spring WEB security configuration.
710
+
GRPC security configuration follows the same principals and APIs as Spring WEB security configuration, it's enabled by default if you have `org.springframework.security:spring-security-config` dependency in your classpath.
711
+
712
+
You can use `@Secured` annotation on services/methods to protect your endpoints, or by using API and overriding defaults (which precesses `@Secured` annotation ):
713
+
714
+
[source,java]
715
+
----
716
+
@Configuration
717
+
class MySecurityCfg extends GrpcSecurityConfigurerAdapter {
718
+
@Override
719
+
public void configure(GrpcSecurity builder) throws Exception {
0 commit comments