Michael Desa
254a63be38
Use consistent argument names for bolt
2018-03-14 11:38:48 -04:00
Michael Desa
e27936ee69
Add Num to UsersStore interface
2017-11-30 12:55:59 -05:00
Michael Desa
12facba297
Ensure users name, provider, and scheme are unique
2017-11-10 12:29:17 -05:00
Jared Scheib
79b3f173fb
Change version on UsersBucket to V2 for clean upgrade path
...
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-11-01 10:57:49 -07:00
Michael Desa
6fbfde5060
Add comments throughout codebase
2017-11-01 12:30:42 -04:00
Michael Desa
d1488a973b
WIP make app usable by frontend
2017-10-31 19:50:03 -04:00
Jared Scheib
a48fb6cda9
Clean up plurals in func comments
...
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-10-24 15:09:37 -07:00
Jared Scheib
c994e8c5ac
Set Scheme to be OAuth2 explicitly for all users
...
Add Provider to Users authenticated via /me
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-10-19 14:32:33 -05:00
Michael Desa
c69925558d
Add tests for retrieving user by name and provider
...
Fix incorrect error message
Cleanup old Get user test
2017-10-19 12:52:46 -04:00
Michael Desa
4687ecf794
Use new chonograf.UserStore Get method when needed
...
Refactor tests that were dependent of old implementation of UsersStore
2017-10-18 14:45:33 -04:00
Michael Desa
0d235f646d
Generalize chronograf.UsersStore Get method
...
The `Get` method on the UsersStore was generalize by changing the second
parameter to a struct. This allows the Store to retrieve users by more
than simply their name.
-Get(ctx context.Context, name string) (*User, error)
+Get(ctx context.Context, q UserQuery) (*User, error)
2017-10-18 14:17:42 -04:00
Michael de Sa
8fe197b02f
Clean up redundant error checks
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-16 14:33:47 -05:00
Michael de Sa
924c890862
Refactor bolt UsersStore to use ID instead of name
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-12 19:33:16 -04:00
Michael de Sa
4761f4454c
Set ID on retrieved user from boltdb
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-12 19:32:35 -04:00
Jared Scheib
5947427e3f
Update bolt UsersStore for updated chronograf User
...
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-12 19:31:26 -04:00
Chris Goller
c784a6260e
Add tests for bolt user store
2017-02-21 22:15:22 -06:00
Chris Goller
451c5d0e31
Update user bolt bucket to be different b/c schema change
2017-02-21 18:48:25 -06:00
Chris Goller
7653dfdfec
Add get of all users for a data source
2017-02-17 15:13:51 -06:00
Chris Goller
9b24351732
Refactor users and add client usersstore
2017-02-17 13:37:00 -06:00
Will Piers
411e2f68dc
Dont render routes if user is not authenticated
2016-11-21 14:20:33 -07:00
Will Piers
d3da8998e8
Add users endpoints/storage plus me endpoint
2016-11-21 14:19:57 -07:00