[ 
https://issues.apache.org/jira/browse/CXF-4656?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13505998#comment-13505998
 ] 

Sergey Beryozkin commented on CXF-4656:
---------------------------------------

Hi - I've completely got confused with all the grants - thanks for reminding 
and explaining how ImplicitGrantService is supposed to work :-)

That is it - I'll do that method protected and next we can think of customizing 
it further somehow...

I'm fine with setting the extra attributes - however Map is tricky to deal with 
when JAXB is involved if the validation is done remotely; I'd like to avoid 
adding type adapters for getting the map marshalled... So I think of 
introducing a utility Property class (name, value fields) and then keeping them 
in a List...I'll think more about it...



  

                
> [OAuth 2] Add attributes property to UserSubject object
> -------------------------------------------------------
>
>                 Key: CXF-4656
>                 URL: https://issues.apache.org/jira/browse/CXF-4656
>             Project: CXF
>          Issue Type: Improvement
>          Components: JAX-RS Security
>    Affects Versions: 2.6.3, 2.7.0
>            Reporter: Steven Tippetts
>
> I need to be able to provide a few authentication attributes to my endpoints 
> along with the login and roles. These attributes are things like the 
> principal's id or name and come from the authentication provider. An 
> "attributes" property that is a Map<String, String> in the UserSubject object 
> would work out nicely.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to