issue-az-code operation

In OAuth processing for an authorization code grant type, the authorization code is issued to the OAuth client after the resource owner provides approval. In this scenario, the stylesheet must use the issue-az-code operation.

The following excerpt shows the <input> node.

<input>
  <operation>issue-az-code</operation>
  <identity>…</identity>
  <credentials>…</credentials>
  <mapped-credentials>…</mapped-credentials>
  <resource>…</resource>
  <mapped-resource>…</mapped-resource>
</input>
After processing, the output contains a <result> node if successful or an <error> element if unsuccessful.
  • If successful, the <result> node must contain the authorization code.
    <result>
      <code>…</code>
    </result>
  • If unsuccessful, the <error> element must contain the reason for failure.
    <error>…</error>