code: def userinfo(request, *args, **kwargs):
      
  
      def set_headers(response):
          response['Cache-Control'] = 'no-store'
          response['Pragma'] = 'no-cache'
          cors_allow_any(request, response)
          return response
  
      if request.method == 'OPTIONS':
          return set_headers(HttpResponse())
  
      token = kwargs['token']
  
      dic = {
          'sub': token.id_token.get('sub'),
      }
  
      standard_claims = StandardScopeClaims(token)
      dic.update(standard_claims.create_response_dic())
  
      if settings.get('OIDC_EXTRA_SCOPE_CLAIMS'):
          extra_claims = settings.get('OIDC_EXTRA_SCOPE_CLAIMS', import_str=True)(token)
          dic.update(extra_claims.create_response_dic())
  
      success_response = JsonResponse(dic, status=200)
      set_headers(success_response)
  
      return success_response
docs: Create a dictionary with all the requested claims about the End-User.
      See: http://openid.net/specs/openid-connect-core-1_0.html#UserInfoResponse
  
      Return a dictionary.