You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've noticed that current codegen always includes all scopes for oauth2 security schema within operations.
Invalid codegen example of updatePetWithForm operation which requires only write:pets and read:pets scopes but contains all existed:
Add 'test:test': just for tests purpose scope to petstore_auth in securityDefinitions.
Start any generator with -DdebugSupportingFiles option.
Check that all secured endpoints have just created scope(test:test) in authMethods property which is wrong because they need write:pets and read:pets only.
Suggest a fix
Include only required scopes in codegen of each operation or mark somehow required ones.
The text was updated successfully, but these errors were encountered:
Bug Report Checklist
Description
I've noticed that current codegen always includes all scopes for
oauth2
security schema within operations.Invalid codegen example of
updatePetWithForm
operation which requires onlywrite:pets
andread:pets
scopes but contains all existed:openapi-generator version
4.0.0-SNAPSHOT
OpenAPI declaration file content or url
Command line used for generation
Added
-DdebugSupportingFiles
to print codegenSteps to reproduce
'test:test': just for tests purpose
scope topetstore_auth
in securityDefinitions.-DdebugSupportingFiles
option.test:test
) inauthMethods
property which is wrong because they needwrite:pets
andread:pets
only.Suggest a fix
Include only required scopes in codegen of each operation or mark somehow required ones.
The text was updated successfully, but these errors were encountered: