protected List < GrantedAuthority > getAuthorities ( String username ) { final List < GrantedAuthority > grantedAuths = new ArrayList <> ( ) ; grantedAuths . add ( new SimpleGrantedAuthority ( "DATA_SCIENTIST" ) ) ; return grantedAuths ; }
This method will be modified when actual roles are introduced .