cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steven Tippetts (JIRA)" <>
Subject [jira] [Commented] (CXF-4673) [OAuth2] Add requestedScope as a parameter to getPreauthorizedToken
Date Wed, 05 Dec 2012 15:20:58 GMT


Steven Tippetts commented on CXF-4673:

Thank you. By the way, in the method convertScopeToPermissions in my OAuthDataProvider object,
I filter out any of the requested scopes that are not in my list of approved scopes from my
pre-registered clients. This way the client doesn't get more permissions than they are approved
for and they also only get the permissions they ask for.
> [OAuth2] Add requestedScope as a parameter to getPreauthorizedToken
> -------------------------------------------------------------------
>                 Key: CXF-4673
>                 URL:
>             Project: CXF
>          Issue Type: Improvement
>          Components: JAX-RS Security
>    Affects Versions: 2.7.0
>            Reporter: Steven Tippetts
>            Assignee: Sergey Beryozkin
>             Fix For: 2.6.4, 2.7.1
> When using pre-authorized tokens I need the requested scope to be able to create the
> Please change the OAuthDataProvider interface to include:
> {code}
> ServerAccessToken getPreauthorizedToken(Client client,
>                                         UserSubject subject,
>                                         String grantType, 
>                                         List<String> requestedScope)
>     throws OAuthServiceException;
> {code}
> And change and to pass the
requestedScope variable in to getPreauthorizedToken.
> Thanks.

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:

View raw message