Uploaded image for project: 'jclouds'
  1. jclouds
  2. JCLOUDS-1591

OAuth: ClientCredentialsJWTBearerTokenFlow.filter method throws Null Pointer Exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.4.0
    • 2.5.0
    • None

    Description

      Null pointer exception is thrown when ClientCredentialsJWTBearerTokenFlow.filter() creates ClientCredentialsClaims using "null" in jti placeholder

      Class: org.jclouds.oauth.v2.filters.ClientCredentialsJWTBearerTokenFlow
      Method: filter
      Lines#:
      ClientCredentialsClaims claims = ClientCredentialsClaims.create( //
      credentialsSupplier.get().identity, // iss
      credentialsSupplier.get().identity, // sub
      oauthConfig.audience(), // aud
      -1, // placeholder exp for the cache
      -1, // placeholder nbf for the cache
      null // placeholder jti for the cache
      );

      Ran into this exception during OAuth using org.jclouds.oauth.v2.config.CredentialType.CLIENT_CREDENTIALS_P12_AND_CERTIFICATE.

      Attachments

        1. log.txt
          1 kB
          Anand

        Activity

          People

            Unassigned Unassigned
            satyanan Anand
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: