code: def get(self, request, *_args, **_kwargs):
          
  
          access_token = self.access_token
  
          scope_string = request.GET.get('scope')
          scope_request = scope_string.split() if scope_string else None
  
          claims_string = request.GET.get('claims')
          claims_request = json.loads(claims_string) if claims_string else None
  
          if not provider.scope.check(constants.OPEN_ID_SCOPE, access_token.scope):
              return self._bad_request('Missing openid scope.')
  
          try:
              claims = self.userinfo_claims(access_token, scope_request, claims_request)
          except ValueError, exception:
              return self._bad_request(str(exception))
  
          # TODO: Encode and sign responses if requested.
  
          response = JsonResponse(claims)
  
          return response
docs: Respond to a UserInfo request.
  
          Two optional query parameters are accepted, scope and claims.
          See the references above for more details.