lizijie
2019-10-14 9f79dd626f3a5096acedcae8d7a919c8910ac240
src/main/java/com/moral/security/endpoint/RefreshTokenEndpoint.java
@@ -72,7 +72,7 @@
        if (account.getRoles() == null) throw new InsufficientAuthenticationException("User has no roles assigned");
        List<GrantedAuthority> authorities = account.getRoles().stream()
                .map(authority -> new SimpleGrantedAuthority(authority.getName()))
                .map(authority -> new SimpleGrantedAuthority(authority.getRoleName()))
                .collect(Collectors.toList());
        UserContext userContext = UserContext.create(account.getAccountName(),mode,account.getOrganizationId(),authorities);