puppetlabs / vault-plugin-secrets-oauthapp

OAuth 2.0 secrets plugin for HashiCorp Vault supporting a variety of grant types
Apache License 2.0
94 stars 10 forks source link

Request example of passing parameters to provider=custom #5

Closed DrDaveD closed 3 years ago

DrDaveD commented 4 years ago

This plugin appears to be just about all that I'm looking for. However I haven't been able to figure out how to pass the options to the custom provider from the vault command line. Could you please provide an example?

DrDaveD commented 4 years ago

It looks like I was able to figure it out:

echo -n '{"provider_options": {"auth_code_url": "...", "token_url": "..."}}'| \
    vault write oauthapp/config provider=custom - client_id="..." client_secret="..."

I don't know if there's a simpler way, but it would be good to document this.

impl commented 4 years ago

We'll put some relevant docs in about this. Thanks for reporting!

impl commented 3 years ago

I fixed this when I was updating some additional relevant documentation as part of #22. Thanks!