Skip to content
This repository has been archived by the owner on Jun 13, 2020. It is now read-only.

Fix key in an AppRole definition example #126

Merged
merged 1 commit into from
Aug 3, 2017
Merged

Fix key in an AppRole definition example #126

merged 1 commit into from
Aug 3, 2017

Conversation

skovorodkin
Copy link
Contributor

@skovorodkin skovorodkin commented Aug 2, 2017

AppRole.__init__ expects "secret_uses" key.

I fix docs and not AppRole.__init__, because Vault option is called secret_id_num_uses, so aomi should use _uses too.

AppRole.__init__ expects "secret_uses" key [0].
I fix docs and not AppRole.__init__,
because Vault option is called "secret_id_num_uses" [1],
so aomi should use "_uses" too.

[0] https://github.com/Autodesk/aomi/blob/4f549dd2150a419e3012286ed996cf70077b1ea9/aomi/model/auth.py#L188
[1] https://www.vaultproject.io/docs/auth/approle.html#auth-approle-role-role_name-
@otakup0pe
Copy link
Contributor

TY for this! Checked and it is spelled right in auth.py at least. Do you think we should have the properties be exactly the same as in Vault?

@skovorodkin
Copy link
Contributor Author

Do you think we should have the properties be exactly the same as in Vault?

Perhaps it'd be easier to reason about if aomi used the same property names. Vault itself is quite complex to me, and differing keywords don't help too much :)

@otakup0pe
Copy link
Contributor

Captured in #129

@otakup0pe otakup0pe merged commit df56bf5 into Autodesk:master Aug 3, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants