The Wayback Machine - https://web.archive.org/web/20201017030709/https://github.com/bugy/script-server/issues/217
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow auth.username and auth.audit_name in script values #217

Open
muzzol opened this issue May 20, 2019 · 2 comments
Open

allow auth.username and auth.audit_name in script values #217

muzzol opened this issue May 20, 2019 · 2 comments
Labels
Milestone

Comments

@muzzol
Copy link

@muzzol muzzol commented May 20, 2019

opening this feature request as recommended here: #130

it would be nice to allow auth variables in script values.
ex:

    {
      "name": "Roles",
      "type": "list",
      "values": { "script": "/opt/scripts/list_rols.sh ${auth.audit_name}" }
    },


@bugy bugy added the feature label Aug 17, 2019
@autogun
Copy link
Contributor

@autogun autogun commented Jun 21, 2020

Hey @bugy,

I'd like to add this one, also to have ${auth.username} templated in the description field.
Can you point me to the right place?

@bugy
Copy link
Owner

@bugy bugy commented Jun 22, 2020

Hi @autogun, for filling the values, there is a model_helper.replace_auth_vars method

For script substitution: parameter_config.py:183
For the description: parameter_config.py:70

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants
You can’t perform that action at this time.