summaryrefslogtreecommitdiffstats
path: root/api4/oauth_test.go
Commit message (Collapse)AuthorAgeFilesLines
* MM-10573 Add error page if user doesn't authorize Mattermost for OAuth (#9402)Harrison Healey2018-09-141-0/+26
|
* Implement OAuth2 implicit grant flow (#9178)Joram Wilander2018-07-271-0/+22
|
* Restore config after finisht the test case (#9085)Carlos Tadeu Panato Junior2018-07-111-0/+36
|
* Simplify oauth (#8972)Emil Velikov2018-06-261-10/+3
| | | | | | | | | | | | | | | | * Remove unused OauthProvider::GetIdentifier Signed-off-by: Emil Velikov <emil.velikov@collabora.com> * Reuse gitlab's getAuthData() instead of open-coding it Signed-off-by: Emil Velikov <emil.velikov@collabora.com> * Remove OauthProvider::GetAuthDataFromJson interface The data is already available via GetUserFromJson().AuthData Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
* MM-8708 Remove api package (#8784)Joram Wilander2018-05-161-0/+413
| | | | | | | | | | | | | | | | | | | | | | * Remove api package * Remove api dependency from cmd package * Remove EnableAPIv3 setting * Update web tests * Add more websocket tests * Move some ws and oauth tests to api4 package * Move command tests into api4 package * Test fixes * Fix msg command test * Add some app file tests
* Merge branch 'master' into advanced-permissions-phase-1George Goldberg2018-02-131-25/+8
|\
| * Remove license globals entirely (#8229)Chris2018-02-091-62/+0
| | | | | | | | | | | | | | | | * remove license globals entirely * fix infinite recursion * test fix
* | XYZ-37: Advanced Permissions Phase 1 Backend. (#8159)George Goldberg2018-02-061-43/+57
|/ | | | | | | | | | | | | | | | | | | | | | | | | | * XYZ-13: Update Permission and Role structs to new design. * XYZ-10: Role store. * XYZ-9/XYZ-44: Roles API endpoints and WebSocket message. * XYZ-8: Switch server permissions checks to store backed roles. * XYZ-58: Proper validation of roles where required. * XYZ-11/XYZ-55: Migration to store backed roles from policy config. * XYZ-37: Update unit tests to work with database roles. * XYZ-56: Remove the "guest" role. * Changes to SetDefaultRolesFromConfig. * Short-circuit the store if nothing has changed. * Address first round of review comments. * Address second round of review comments.
* Fix oauth app update (#7913)Joram Wilander2017-12-011-0/+7
|
* Role refactor (#7867)Chris2017-11-211-17/+16
| | | | | | | | * role refactor * add missing file * fix web test
* Reduce utils.Cfg references (#7650)Chris2017-10-181-67/+67
| | | | | | | | | | | | * app.UpdateConfig method * test fix * another test fix * the config override option as-was is just error prone, remove it for now * derp
* Don't use global app for api / api4 tests (#7528)Chris2017-10-021-10/+10
| | | | | | | | | | | | | | * 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
* Implement update OAuthApp endpoint for APIv4, add test (#7413)n1aba2017-09-181-0/+106
|
* Renaming repoChristopher Speller2017-09-061-2/+2
|
* Various patchesJoramWilander2017-09-061-2/+10
|
* Implement v4 endpoints for OAuth (#6040)Joram Wilander2017-04-201-0/+611
* Implement POST /oauth/apps endpoint for APIv4 * Implement GET /oauth/apps endpoint for APIv4 * Implement GET /oauth/apps/{app_id} and /oauth/apps/{app_id}/info endpoints for APIv4 * Refactor API version independent oauth endpoints * Implement DELETE /oauth/apps/{app_id} endpoint for APIv4 * Implement /oauth/apps/{app_id}/regen_secret endpoint for APIv4 * Implement GET /user/{user_id}/oauth/apps/authorized endpoint for APIv4 * Implement POST /oauth/deauthorize endpoint