Skip to content

Conversation

PieterKas
Copy link
Collaborator

See issue #228

In addition, the "request_context" is optional, so making it a SHOULD be included feels like maybe it is not optional. Instead the PR proposes language that says it is "RECOMMENDED".

@tulshi @gffletch - please review.

See issue #228 

In addition, the "request_context" is optional, so making it a SHOULD be included feels like maybe it is not optional. Instead the PR proposes language that says it is "RECOMMENDED".

@tulshi @gffletch - please review.
@PieterKas PieterKas requested a review from gffletch September 8, 2025 10:47
@PieterKas PieterKas requested a review from tulshi as a code owner September 8, 2025 10:47
@@ -462,7 +462,7 @@ To request a Txn-Token the workload invokes the OAuth 2.0 {{RFC6749}} token endp

The following additional parameters MAY be present in a Txn-Token Request:

* `request_context` OPTIONAL. This parameter contains a base64url encoded JSON object which represents the context of this transaction. The parameter SHOULD be present and how the Transaction Token Service uses this parameter is out of scope for this specification.
* `request_context` OPTIONAL. This parameter contains a base64url encoded JSON object which represents the context of this transaction. Use of this parameter is RECOMMENDED.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than specify it this way, should line 463 say: "The following parameter SHOULD be present in a Txn-Token request", and then line 465 can read: "request_context OPTIONAL. This parameter contains a base64url encoded JSON object with represents the context of this transaction."

The request_details parameter in this list can be under a new line that says: "The following parameters MAY be present in a Txn-Token request".

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or if we prefer RECOMMENDED

The following additional parameters are RECOMMENDED to be present in a Txn-Token Request:

This implies that both are equally recommended. If one is "more recommended" than the other then we should stay with the structure that Pieter as in this PR.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The issue that Dan flagged was that the text said that how the transaction token service uses the transaction token is out of scope, but later we actually define how it is used. The goal of this PR was to get rid of the contradiction without changing in the normative requirement (RECOMMENDED and SHOULD have equal levels of compulsion as I understand it).

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want request_details to also be SHOULD/RECOMMENDED? or just request_context. I'm good with the removal of the other text.

@@ -462,7 +462,7 @@ To request a Txn-Token the workload invokes the OAuth 2.0 {{RFC6749}} token endp

The following additional parameters MAY be present in a Txn-Token Request:
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The following additional parameters MAY be present in a Txn-Token Request:
The following additional parameters are RECOMMENDED to be present in a Txn-Token Request:

@@ -462,7 +462,7 @@ To request a Txn-Token the workload invokes the OAuth 2.0 {{RFC6749}} token endp

The following additional parameters MAY be present in a Txn-Token Request:

* `request_context` OPTIONAL. This parameter contains a base64url encoded JSON object which represents the context of this transaction. The parameter SHOULD be present and how the Transaction Token Service uses this parameter is out of scope for this specification.
* `request_context` OPTIONAL. This parameter contains a base64url encoded JSON object which represents the context of this transaction. Use of this parameter is RECOMMENDED.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* `request_context` OPTIONAL. This parameter contains a base64url encoded JSON object which represents the context of this transaction. Use of this parameter is RECOMMENDED.
* `request_context` OPTIONAL. This parameter contains a base64url encoded JSON object which represents the context of this transaction.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gffletch - after trying a few options, I think your earlier suggestion makes sense to move the normative language out of the parameter description (and also getting rid of the contradiction).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants