Uploaded image for project: 'Apache Oltu'
  1. Apache Oltu
  2. OLTU-28

End User Authorization Endpoint (namely OAuthAuthzRequest) needs to be updated to latest spec

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • oauth2-0.22
    • oauth2-authzserver
    • None

    Description

      As for [0] response_type MUST be set to "code".
      At the moment OAuthAuthzRequest is still in line with the old spec (The requested response: an access token, an
      authorization code, or both. ):

      protected OAuthValidator initValidator() throws OAuthProblemException, OAuthSystemException {
      .....
      validators.put(ResponseType.CODE.toString(), CodeValidator.class);
      validators.put(ResponseType.TOKEN.toString(), TokenValidator.class);
      validators.put(ResponseType.CODE_AND_TOKEN.toString(), CodeTokenValidator.class);
      String requestTypeValue = getParam(OAuth.OAUTH_RESPONSE_TYPE);
      ...
      Class clazz = validators.get(requestTypeValue);

      patch to follow.

      [0] http://tools.ietf.org/html/draft-ietf-oauth-v2-22#section-4.1.1

      Attachments

        1. AMBER-31-asanso-patch.txt
          9 kB
          Antonio Sanso

        Activity

          People

            teofili Tommaso Teofili
            asanso Antonio Sanso
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: