Yes, but this is a separate case where I want to create an OAuth server
on top of an existing security domain. So, the custom IdentityManager
would be delegating to the configured one.
On 8/16/2013 12:13 PM, Stuart Douglas wrote:
For your use case don't you need to use a custom IdentityManager
anyway? If so you can just have getRoles() on your account implementation and cast it.
Stuart
----- Original Message -----
> From: "Bill Burke" <bburke(a)redhat.com>
> To: undertow-dev(a)lists.jboss.org
> Sent: Friday, 16 August, 2013 5:50:00 PM
> Subject: [undertow-dev] Account.getRoles()?
>
> Any way we could have an Account.getRoles()?
>
> One of the things Resteasy OAuth integration can do with AS7 is turn an
> existing SecurityDomain into an OAuth server with SkeletonKey tokens.
> To do this though I need to be able to extract the user's role mappings
> after authentication. For AS7, this can be extracted from the
> Principal. For Undertow only though, Account has no getRoles() method.
>
> Can you add Set<String> getRoles() to Account?
> --
> Bill Burke
> JBoss, a division of Red Hat
>
http://bill.burkecentral.com
> _______________________________________________
> undertow-dev mailing list
> undertow-dev(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/undertow-dev
>
--
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com