File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
services-api/src/main/java/io/scalecube/services
services/src/test/java/io/scalecube/services/sut/security Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1212import io .scalecube .services .annotations .Tag ;
1313import io .scalecube .services .api .Qualifier ;
1414import io .scalecube .services .api .ServiceMessage ;
15- import io .scalecube .services .auth .Auth ;
15+ import io .scalecube .services .auth .Secured ;
1616import io .scalecube .services .methods .MethodInfo ;
1717import java .lang .reflect .Method ;
1818import java .lang .reflect .ParameterizedType ;
@@ -361,7 +361,7 @@ public static boolean isService(Class<?> type) {
361361 }
362362
363363 public static boolean isAuth (Method method ) {
364- return method .isAnnotationPresent (Auth .class )
365- || method .getDeclaringClass ().isAnnotationPresent (Auth .class );
364+ return method .isAnnotationPresent (Secured .class )
365+ || method .getDeclaringClass ().isAnnotationPresent (Secured .class );
366366 }
367367}
Original file line number Diff line number Diff line change 1515@ Documented
1616@ Target ({METHOD , TYPE })
1717@ Retention (RUNTIME )
18- public @interface Auth {}
18+ public @interface Secured {}
Original file line number Diff line number Diff line change 22
33import io .scalecube .services .annotations .Service ;
44import io .scalecube .services .annotations .ServiceMethod ;
5- import io .scalecube .services .auth .Auth ;
5+ import io .scalecube .services .auth .Secured ;
66import reactor .core .publisher .Mono ;
77
88@ Service (PartiallySecuredService .SERVICE_NAME )
@@ -14,6 +14,6 @@ public interface PartiallySecuredService {
1414 Mono <String > publicMethod (String name );
1515
1616 @ ServiceMethod
17- @ Auth
17+ @ Secured
1818 Mono <String > securedMethod (String name );
1919}
Original file line number Diff line number Diff line change 22
33import io .scalecube .services .annotations .Service ;
44import io .scalecube .services .annotations .ServiceMethod ;
5- import io .scalecube .services .auth .Auth ;
5+ import io .scalecube .services .auth .Secured ;
66import reactor .core .publisher .Mono ;
77
8- @ Auth
8+ @ Secured
99@ Service (SecuredService .SERVICE_NAME )
1010public interface SecuredService {
1111
You can’t perform that action at this time.
0 commit comments