Skip to content

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

Open
mgagliardo91 wants to merge 1 commit intodanielgtaylor:masterfrom
mgagliardo91:master
Open

feat(auth): Enable default values for params#36
mgagliardo91 wants to merge 1 commit intodanielgtaylor:masterfrom
mgagliardo91:master

Conversation

@mgagliardo91
Copy link

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.

Keys []string
Params []string
Scopes []string
DefaultValues map[string]string
Copy link
Owner

Choose a reason for hiding this comment

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

Does this need to get initialized somewhere? If we rely on it to happen in someone's main then what happens if they forget?

@danielgtaylor
Copy link
Owner

@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.

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