Hello, I am using javascript providers to create custom saml mappers, everything so far is working fine, scripts features is enabled, javascript JAR is loaded , client configured, what I am struggling with is the usage of getRolesStream(), so here is the story
- Client has a one role configured with one attribute
- I need to fetch the client roles into an array / list " there might be more
so I have this piece of code
var client = clientSession.getClient();
var client_roles = client.getRolesStream().toArray();
print("client_roles", client_roles);
but the results i am getting is:
client_roles [Ljava.lang.Object;@1adbfd02
I am a bit confused, because based on the javadoc, toArray() should convert the items within this stream object into array, but I see that is not working correctly? am I doing anything wrong?