danielgtaylor / openapi-cli-generator

Generate a CLI from an OpenAPI 3 specification
MIT License
179 stars 49 forks source link

feat(auth): Enable default values for params #36

Open mgagliardo91 opened 4 years ago

mgagliardo91 commented 4 years ago

This PR hopes to allow the ability for consumers to add default values for parameters that will be sent up alongside the oauth2 authorizationCode request. Currently, you can add parameters that must be filled out by the user input when setting up a profile, this change allows us to define default values as a way to encode query params such as audience client_id params without needing the user to configure it themselves.

danielgtaylor commented 4 years ago

@mgagliardo91 also consider checking out https://rest.sh/ (https://github.com/danielgtaylor/restish) I've been thinking of suggesting an OpenAPI extension to auto-configure parts of the auth there. If you don't explicitly need code generation it might be a good option.