File tree Expand file tree Collapse file tree 3 files changed +14
-3
lines changed
selenium/authorization-server/src/main
java/com/rabbitmq/authorization_server Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,11 @@ public String getAuthority() {
2323 return authority ;
2424 }
2525
26+ @ Override
27+ public String toString () {
28+ return "Audience:" + authority ;
29+ }
30+
2631 public static List <String > getAll (AbstractAuthenticationToken principal ) {
2732 return principal .getAuthorities ()
2833 .stream ().filter (a -> a instanceof AudienceAuthority )
Original file line number Diff line number Diff line change @@ -23,12 +23,15 @@ public String getAuthority() {
2323 return authority ;
2424 }
2525
26- public static List <String > getAllUnauthorized (AbstractAuthenticationToken principal ,
27- Set <String > authorized ) {
26+ @ Override
27+ public String toString () {
28+ return "Scope:" + authority ;
29+ }
30+
31+ public static List <String > getAuthorites (AbstractAuthenticationToken principal ) {
2832 return principal .getAuthorities ()
2933 .stream ()
3034 .filter (a -> a instanceof ScopeAuthority )
31- .filter (a -> !authorized .contains (a .getAuthority ()))
3235 .map (a -> a .getAuthority ()).toList ();
3336 }
3437
Original file line number Diff line number Diff line change 1+ logging.level :
2+ com.rabbitmq.authorization_server : DEBUG
3+
14server :
25 port : 8443
36 ssl :
You can’t perform that action at this time.
0 commit comments