Jeff Mitchell
603b0582d7
Fix CLI help output and make more consistent ( #605 )
2020-10-09 20:26:48 -04:00
Todd Knight
6c6fb7a4d0
Format errors better for CLI ( #552 )
...
* Start making errors easier to read for Table based CLI UI.
* Add TODO about reporting "update_mask" related errors.
2020-10-06 14:08:49 -07:00
Jeff Mitchell
a38f40606e
Create default roles in scopes to allow authentication and listing scopes/auth methods ( #502 )
2020-09-29 20:38:16 -04:00
Todd Knight
fd0da998e8
SDK error revamp ( #432 )
...
SDK methods now return 1 error. To differentiate between Client errors and Server errors I've also implemented the AsServerError function which returns an *api.Error if it is an error originating from the remote server or nil otherwise.
2020-09-24 14:34:58 -07:00
Jeff Mitchell
0a44ed3edd
Fix global scope lookup ( #367 )
...
The changed auth logic + verify logic in the scope handler pass the
parent ID for validation, which is correct, as a scope lives in its
parent ID. However, the global scope has no parent, and the changes
resulted in an empty ID being passed in rather than the global scope
itself. This fixes that lookup.
2020-09-16 11:15:42 -04:00
Jeff Mitchell
a00ee7a948
Add Result types to Go SDK and properly populate body/map fields ( #358 )
2020-09-15 01:08:21 -04:00
Jeff Mitchell
6201357902
Use scope-specific token DEKs ( #342 )
2020-09-14 12:30:11 -04:00
Jeff Mitchell
f8237fb945
Move some packages into SDK, out of internal
2020-09-09 01:24:25 -04:00
Todd Knight
c3ecea172d
Generate new version of SDK resources and Add Tests ( #331 )
2020-09-08 16:27:51 -04:00
Jeff Mitchell
17ecb6f2ce
Separate accounts/host catalogs/host sets into their own packages ( #311 )
2020-08-27 20:43:33 -04:00
Jeff Mitchell
490be8a7e4
Add ability to skip role creation on scope create ( #308 )
...
* Initial work on scope creation skipping
* Fix things
2020-08-26 23:27:25 -04:00
Jeff Mitchell
adfc5681be
Auth methods CLI ( #277 )
2020-08-18 17:46:34 -04:00
Jeff Mitchell
efaf58b568
Add users CLI command and do some cleanup ( #269 )
2020-08-13 20:59:32 -04:00
Jeff Mitchell
b75a6fc5e5
Update scopes CLI command in the model of the roles command ( #262 )
...
* Update scopes CLI command in the model of the roles command
* Pull help functions to helper methods
2020-08-13 11:20:22 -04:00