Print this page

Winter '15 - OAuth 2.0 JWT Bearer Token Support Expands to Meet the Current Standards

Knowledge Article Number 000204593
When creating a JWT bearer token to request an OAuth access token, you can use subject (sub) instead of principal (prn) to specify the username. If both are specified, prn is used. For more information, see the spec at and OAuth 2.0 JWT Bearer Token Flow in the Salesforce online help.
{"iss": "3MVG99OxTyEMCQ3gNp2PjkqeZKxnmAiG1xV4oHh9AKL_rSK.BoSVPGZHQ
  "sub": "", 
  "aud": "", 
  "exp": "1333685628"}

promote demote