Skip to content

feat: add OAuth2 Password endpoint requiring two scopes#35

Merged
2ynn merged 2 commits into
mainfrom
feat/add-product-update-endpoint
Sep 12, 2025
Merged

feat: add OAuth2 Password endpoint requiring two scopes#35
2ynn merged 2 commits into
mainfrom
feat/add-product-update-endpoint

Conversation

@2ynn

@2ynn 2ynn commented Sep 11, 2025

Copy link
Copy Markdown

GEN-1751

  1. This PR adds an endpoint that requires both products:read and products:create scopes to be requested. This will help test the following scenario in https://github.com/speakeasy-api/openapi-generation/pull/3161 :
  • create a product -> request a token with scope products:create
  • update a product -> request a token with both products:create and products:read
  • list products -> only products:read is required so reuse the last token received
  1. Set the ExpireIn to 2min for the token returned by the /clientcredentials/token endpoint so that we can test reusing a valid token when required scopes have already been requested

@2ynn
2ynn merged commit 1c743b3 into main Sep 12, 2025
4 checks passed
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.

2 participants