open-vault/builtin/credential/github
John-Michael Faircloth a2da7b17f8
github auth: use org id to verify creds (#13332)
* github auth: use org id to verify creds

* add check for required org param; add test case

* update UTs

* add nil check for org

* add changelog

* fix typo in ut

* set org ID if it is unset; add more ut coverage

* add optional organization_id

* move client instantiation

* refactor parse URL; add UT for setting org ID

* fix comment in UT

* add nil check

* don't update org name on change; return warning

* refactor verifyCredentials

* error when unable to fetch org ID on config write; add warnings

* fix bug in log message

* update UT and small refactor

* update comments and log msg

* use getter for org ID
2021-12-14 16:37:19 -06:00
..
cmd/github Update to api 1.0.1 and sdk 0.1.8 2019-04-15 14:10:07 -04:00
backend.go
backend_test.go github auth: use org id to verify creds (#13332) 2021-12-14 16:37:19 -06:00
cli.go Migrate to sdk/internalshared libs in go-secure-stdlib (#12090) 2021-07-15 20:17:31 -04:00
path_config.go github auth: use org id to verify creds (#13332) 2021-12-14 16:37:19 -06:00
path_config_test.go github auth: use org id to verify creds (#13332) 2021-12-14 16:37:19 -06:00
path_login.go github auth: use org id to verify creds (#13332) 2021-12-14 16:37:19 -06:00
path_login_test.go github auth: use org id to verify creds (#13332) 2021-12-14 16:37:19 -06:00