summaryrefslogtreecommitdiffstats
path: root/api4/user_test.go
Commit message (Collapse)AuthorAgeFilesLines
* Eliminate utils.SetLicense calls (#8217)Chris2018-02-071-49/+4
| | | | | | | | | | * eliminate utils.SetLicense calls * test fix * another test fix * more test fixes
* Finally remove utils.Cfg (#8113)Chris2018-01-171-44/+40
| | | | | | | | * finally remove utils.Cfg * fix compile error * another test compilation fix
* [PLT-7793] Add /users/tokens/search endpoint (#8088)Adrian Carolli2018-01-111-0/+46
| | | | | | | | * Add /users/tokens/search endpoint + tests * Fix check-style * Unnecessary deletion
* [PLT-7793] Added /users/tokens endpoint (#8038)Adrian Carolli2018-01-051-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added /users/tokens/all endpoint - UserAccessStore now has getAll method - Added tests - Added route - Added handler * Remove space fix check-style * Remove blank space check-style * Fixes for make check-style * Remove extra code that is un-needed in user_test.go * Rename endpoint + grammar - Renamed /users/tokens/all to /users/tokens - Renamed getUserAccessTokens to getUserAccessTokensForUser - Renamed getAllUserAccessTokens to getUserAccessTokens - Minor Grammar changes * Add localization for sql_user_access_token.get_all * Fix minor plural spelling
* Add admin update endpoint that can update authservice and authdata (#7842)Chris Duarte2018-01-041-0/+63
| | | | | | | | | | * add admin update endpoint that can upate authservice and authdata * Control only SystemAdmin access * Refactored AdminUpdate endpoint to only be able to update AuthData, AuthService and Password by User.Id * Refactor to move `PUT /api/v4/users/{user_id}/auth`. Created a struct to hold UserAuth info.
* Allow deactivation of SSO users (#7952)Joram Wilander2017-12-081-1/+10
|
* Add Config to disable Auth Transfers. (#7843)Chris Duarte2017-11-281-0/+51
| | | | | | * Add Config to disable Auth Transfers. * Set config ExperimentalEnableAuthenticationTransfer behind an E20 license restriction
* Role refactor (#7867)Chris2017-11-211-33/+33
| | | | | | | | * role refactor * add missing file * fix web test
* more global config ref cleanup (#7802)Chris2017-11-091-12/+8
|
* prevent deactivation of sso users (#7759)Chris2017-11-021-2/+2
|
* PLT-7978 Add websocket event for user role update (#7745)Joram Wilander2017-10-311-7/+7
| | | | | | | | * Add websocket event for user role update * Fix tests * More test fixes
* simplify things (#7735)Chris2017-10-301-3/+3
|
* Remove more global refs / state (#7723)Chris2017-10-261-6/+5
| | | | | | | | | | * remove more global refs / state * fix job enterprise initialization * fix api4 test compilation * saml api endpoints fix
* eliminate more utils.Cfg references (#7701)Chris2017-10-241-26/+0
|
* add model.NewX funcs for builtin types (#7692)Chris2017-10-231-10/+5
| | | | | | * add model.NewX funcs for builtin types * whoops, forgot to add the new file
* Reduce cfg boilerplate (#7689)Chris2017-10-231-78/+4
| | | | | | | | | | | | * reduce cfg boilerplate * fix compile error * user test fix * another test fix * simplify diagnostics / testing
* Expose user.Props through REST API (#7661)Joram Wilander2017-10-201-1/+7
|
* [PLT-7794] Add user access token enable/disable endpoints (#7630)Nick Frazier2017-10-191-1/+97
| | | | | | | | | | | | * Add column to UserAccessTokens table * PLT-7794 Add user access token enable/disable endpoints * replaced eliminated global variable * updates to user_access_token_store and upgrade.go * style fix and cleanup
* Reduce utils.Cfg references (#7650)Chris2017-10-181-83/+83
| | | | | | | | | | | | * app.UpdateConfig method * test fix * another test fix * the config override option as-was is just error prone, remove it for now * derp
* [PLT-7396] Add the ability to revoke user sessions in System Console > Users ↵Rick Batka2017-10-161-0/+45
| | | | | | | | #7493 (#7623) * add endpoint and tests for revoking all sessions for a user * fix failing test build
* PLT-7781 Some more OAuth fixes (#7568)Joram Wilander2017-10-041-23/+83
| | | | | | * Some other oauth fixes * Fix unit test
* Updates to session revoking in v4 (#7565)Joram Wilander2017-10-041-0/+8
|
* Don't use global app for api / api4 tests (#7528)Chris2017-10-021-40/+50
| | | | | | | | | | | | | | * don't use global app for api / api4 tests * put sleep back. we're gonna have to do some goroutine wrangling * fix oauth test config assumptions * jobs package, i'm comin' for you next * app test fix * try increasing sleep a little
* Fixing profile image tag (#7435)Corey Hulen2017-09-191-2/+2
| | | | | | | | * Fixing profile image tag * Fixing unit test * Fixing unit test
* Renaming repoChristopher Speller2017-09-061-2/+2
|
* Adding jenkinsfile for new build server.Christopher Speller2017-09-061-5/+4
|
* app type transition (#7167)Chris2017-09-061-18/+17
|
* Fix setting profile image for other users (#7306)Joram Wilander2017-08-311-0/+9
|
* set to default value with config is missing (#7320)Saturnino Abril2017-08-301-3/+3
|
* PLT-6226 Fixing races with licensing (#7213)Corey Hulen2017-08-161-15/+15
| | | | | | | | | | * PLT-6226 Fixing races with licensing * Fixing build issue * Fixing licensing issue * removing commented code
* PLT-6763 Implement user access tokens and new roles (server-side) (#6972)Joram Wilander2017-07-311-0/+252
| | | | | | | | | | | | | | | | * Implement user access tokens and new roles * Update config.json * Add public post permission to apiv3 * Remove old comment * Fix model unit test * Updates to store per feedback * Updates per feedback from CS
* Add some basic sorting support for GET /users endpoint (#6801)Joram Wilander2017-06-301-0/+58
|
* Fixed error information being obscured when joining teams with API v4 (#6751)Harrison Healey2017-06-281-2/+2
|
* Move remaining actions over to use redux and v4 endpoints (#6720)Joram Wilander2017-06-261-1/+1
|
* Fix panic in v4 client (#6704)Joram Wilander2017-06-211-1/+1
|
* Add tests for CreateUserWithInviteId and CreateUserWithHash (#6363)Carlos Tadeu Panato Junior2017-05-101-3/+247
|
* Fix user autocomplete for DMs and GMs (#6265)Joram Wilander2017-04-281-0/+6
|
* Fix error not appearing when updating to existing username (#6255)Joram Wilander2017-04-281-0/+7
|
* Creating common token store and moving email invites and verification to it ↵Christopher Speller2017-04-271-22/+30
| | | | (#6213)
* PLT-4457 Added API to get multiple users by their usernames (#6218)Harrison Healey2017-04-251-0/+32
| | | | | | | | | | * Allow getting profiles by username without a team * Changed UserStore.GetProfilesByUsernames to return an array * PLT-4457 Added API to get multiple users by their usernames * Changed users/names route to users/usernames
* Don't sanitize returned user when updating a user (#6095)Joram Wilander2017-04-191-0/+5
| | | | | | * Don't sanitize returned user when updating a user * Use user model function for clearing private data
* Revert "Usernames must start with a letter (#5581)"Christopher Speller2017-04-181-6/+0
| | | | This reverts commit 2e911b77c3386833f8f0cea82c7b6b3e5583a08e.
* APIv4 PUT /users/{user_id}/active (#6118)Saturnino Abril2017-04-171-0/+43
|
* PLT-5860 Updated copyright date (#6058)Harrison Healey2017-04-121-1/+1
| | | | | | | | | | | | * PLT-5860 Updated copyright date in about modal * PLT-5860 Updated copyright notice in JSX files * PLT-5860 Updated copyright notice in go files * Fixed misc copyright dates * Fixed component snapshots
* Refactor switching login type code into app layer and add v4 endpoint (#6000)Joram Wilander2017-04-101-1/+92
| | | | | | * Refactor switching login type code into app layer and add v4 endpoint * Fix unit test
* PLT-6162: Search for users not in a given team. (#5943)George Goldberg2017-04-031-0/+40
|
* Re-enable MFA test (#5911)Joram Wilander2017-03-311-2/+2
|
* Use 201 status code where appropriate for APIv4 (#5903)Joram Wilander2017-03-311-0/+1
|
* PLT-2713 Added ability for admins to list users not in any team (#5844)Harrison Healey2017-03-291-0/+50
| | | | | | * PLT-2713 Added ability for admins to list users not in any team * Updated style of unit test
* PLT-6083: API to get users not in a specific team. (#5888)George Goldberg2017-03-291-0/+46
|