Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-4673

[OAuth2] Add requestedScope as a parameter to getPreauthorizedToken

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.7
    • 2.6.4, 2.7.1
    • JAX-RS Security
    • None
    • Unknown

    Description

      When using pre-authorized tokens I need the requested scope to be able to create the token.

      Please change the OAuthDataProvider interface to include:

      ServerAccessToken getPreauthorizedToken(Client client,
                                              UserSubject subject,
                                              String grantType, 
                                              List<String> requestedScope)
          throws OAuthServiceException;
      

      And change RedirectionBasedGrantService.java and AbstractGrantHandler.java to pass the requestedScope variable in to getPreauthorizedToken.

      Thanks.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            sergey_beryozkin Sergey Beryozkin
            tippettssh Steven Tippetts
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment