Lev
03f43d7ae5
Convert URLs to fully-qualified for HTTP redirects ( #19020 )
...
* Convert URLs to fully-qualified for HTTP redirects
* forgot the tests
2021-11-23 08:51:25 -08:00
Claudio Costa
92837fa1ee
[MM-22051] Remove To/From JSON ( #18070 )
...
* Posts
* Add missing translation
* Fix internal store marshaling
* [MM-22051] Remove To/From JSON (Channels) (#18116 )
* Channels
* Channel members
* ChannelSearch
* Channel categories, list, sidebar, stats, view
* Fix conversions
* [MM-22051] Remove To/From JSON (Users) (#18121 )
* User related structs
* Fix return
* Team related structures (#18127 )
* [MM-22051] Remove To/From JSON (Status, Bot, Reaction, Thread, FileInfo) (#18130 )
* Status
* Bot
* Reaction
* Thread
* FileInfo
* Some fixes
* Translations update from Weblate (#18143 )
* Translated using Weblate (German)
Currently translated at 100.0% (2309 of 2309 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/de/
* Translated using Weblate (Turkish)
Currently translated at 100.0% (2309 of 2309 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/tr/
* Translated using Weblate (Hungarian)
Currently translated at 100.0% (2309 of 2309 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/hu/
* Update translation files
Updated by "Cleanup translation files" hook in Weblate.
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/
Update translation files
Updated by "Cleanup translation files" hook in Weblate.
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/
Update translation files
Updated by "Cleanup translation files" hook in Weblate.
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/
Update translation files
Updated by "Cleanup translation files" hook in Weblate.
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/
* Translated using Weblate (German)
Currently translated at 100.0% (2301 of 2301 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/de/
* Translated using Weblate (Turkish)
Currently translated at 100.0% (2301 of 2301 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/tr/
* Translated using Weblate (Hungarian)
Currently translated at 100.0% (2301 of 2301 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/hu/
* Translated using Weblate (English (Australia))
Currently translated at 100.0% (2301 of 2301 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/en_AU/
* Translated using Weblate (Bulgarian)
Currently translated at 100.0% (2301 of 2301 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/bg/
* Translated using Weblate (Japanese)
Currently translated at 100.0% (2301 of 2301 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/ja/
* Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (2301 of 2301 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/zh_Hans/
Co-authored-by: JtheBAB <srast@bioc.uzh.ch >
Co-authored-by: Kaya Zeren <kayazeren@gmail.com >
Co-authored-by: Tóth Csaba // Online ERP Hungary Kft <csaba.toth@online-erp.hu >
Co-authored-by: Matthew Williams <Matthew.Williams@outlook.com.au >
Co-authored-by: Nikolai Zahariev <nikolaiz@yahoo.com >
Co-authored-by: kaakaa <stooner.hoe@gmail.com >
Co-authored-by: aeomin <lin@aeomin.net >
Co-authored-by: Weblate (bot) <hosted@weblate.org >
Co-authored-by: JtheBAB <srast@bioc.uzh.ch >
Co-authored-by: Kaya Zeren <kayazeren@gmail.com >
Co-authored-by: Tóth Csaba // Online ERP Hungary Kft <csaba.toth@online-erp.hu >
Co-authored-by: Matthew Williams <Matthew.Williams@outlook.com.au >
Co-authored-by: Nikolai Zahariev <nikolaiz@yahoo.com >
Co-authored-by: kaakaa <stooner.hoe@gmail.com >
Co-authored-by: aeomin <lin@aeomin.net >
* [MM-22051] Remove To/From JSON methods from model (#18138 )
* Scheme
* Role
* Session
* Config
* Status
* Fix logic
* Emoji
* GuestsInvite
* Group
* Command
* ClusterInfo
* License
* Job
* System
* Plugin
* Command2
* IncomingWebhook
* OutgoingWebhook
* Fix tests
* Update traslation
* Some fixes
* Add missing return
* Simplify
* Make Config.ToJSONFiltered() return []byte
* Make Busy.ToJSON() return []byte
* Include error in log
* Split logic
* [MM-22051] Remove To/From JSON (final) (#18150 )
* SwitchRequest
* PluginEventData
* Permalink
* PushNotification
* SuggestCommand
* PluginsResponse
* WebSocketMessage
* RemoteCluster
* SharedChannel
* PluginStatuses
* InitialLoad
* ClusterDiscovery
* ClusterStats
* MfaSecret
* GroupSyncable
* SAML
* WebSocketRequest
* TypingRequest
* SecurityBulletin
* OAuthApp
* IntegrationAction
* DataRetention
* Preference
* FileInfoList
* Compliance
* Preferences
* FileInfoSearchResults
* TermsOfService
* InstallMarketplacePluginRequest
* GitLabUser
* UploadSessions
* Remove unused helpers
* Fix tests
* [MM-23280] Fix linting for ToJSON/FromJSON (#18153 )
* SwitchRequest
* PluginEventData
* Permalink
* PushNotification
* SuggestCommand
* PluginsResponse
* WebSocketMessage
* RemoteCluster
* SharedChannel
* PluginStatuses
* InitialLoad
* ClusterDiscovery
* ClusterStats
* MfaSecret
* GroupSyncable
* SAML
* WebSocketRequest
* TypingRequest
* SecurityBulletin
* OAuthApp
* IntegrationAction
* DataRetention
* Preference
* FileInfoList
* Compliance
* Preferences
* FileInfoSearchResults
* TermsOfService
* InstallMarketplacePluginRequest
* GitLabUser
* UploadSessions
* Remove unused helpers
* Fix tests
* Fix linting for ToJSON/FromJSON
* Fix conversions
Co-authored-by: Weblate (bot) <hosted@weblate.org >
Co-authored-by: JtheBAB <srast@bioc.uzh.ch >
Co-authored-by: Kaya Zeren <kayazeren@gmail.com >
Co-authored-by: Tóth Csaba // Online ERP Hungary Kft <csaba.toth@online-erp.hu >
Co-authored-by: Matthew Williams <Matthew.Williams@outlook.com.au >
Co-authored-by: Nikolai Zahariev <nikolaiz@yahoo.com >
Co-authored-by: kaakaa <stooner.hoe@gmail.com >
Co-authored-by: aeomin <lin@aeomin.net >
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2021-09-01 14:43:12 +02:00
Ben Schumacher
757dc96461
[MM-37772] Idiomatic naming (URL, URI, API) ( #18128 )
...
* s/Url/URL/g & s/Uri/URI/g
* s/Api/API/g
2021-08-16 19:46:44 +02:00
Agniva De Sarker
c4b4e1bc38
MM-36271: Bump major version to 6.0 ( #17973 )
...
https://mattermost.atlassian.net/browse/MM-36271
```release-note
We bump the major version to 6.0
```
2021-07-22 12:21:47 +05:30
Ben Schumacher
97ccf0bdf6
[MM-16751] golint model ( #17896 )
2021-07-21 16:38:39 +02:00
Ibrahim Serdar Acikgoz
41dc05a6bd
Decouple emailservice from app package ( #17827 )
...
* decouple emailservice from app package
* fix some escaped errors
* move email package under app directory
* fix i18n
* reflect review comments
2021-07-19 23:26:06 +08:00
Anurag Shivarathri
c898c3007f
Mattermost Server OAuth Flow Cross-Site Scripting ( #17743 )
...
Automatic Merge
2021-06-10 14:10:22 +02:00
Ibrahim Serdar Acikgoz
5ea06e51d0
Migrate to stateless app.App ( #17542 )
...
* add request context
* move initialialization to server
* use app interface instead of global app functions
* remove app context from webconn
* cleanup
* remove duplicated services
* move context to separate package
* remove finalize init method and move content to NewServer function
* restart workers and schedulers after adding license for tests
* reflect review comments
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2021-05-11 13:00:44 +03:00
Jesús Espino
9cc5089af8
Moving mlog to corelibs ( #16915 )
...
* Moving mlog to corelibs
* Regenerating app layers
* Fix golangci-lint problem
* Fixing golangci-lint errors
* Renaming from corelibs to shared
* Renaming from corelibs to shared
* Fixing import
* Fixing merge problems
* Fixing build
2021-03-05 09:18:37 +01:00
Anurag Shivarathri
01e83f64da
User friendly error messages during OAUTH and SAML flows ( #16795 )
...
* Renders error messages in webapp
* Added unit test
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2021-02-21 12:28:04 +05:30
Agniva De Sarker
f4255ed52e
Enable govet check for empty strings ( #16785 )
...
Adds the check for https://github.com/mattermost/mattermost-server/issues/16674
in the Makefile
```release-note
NONE
```
2021-01-25 21:45:57 +05:30
Madhav Hugar
94c24eea20
Fix empty string comparison issues in the codebase ( #16686 )
...
Automatic Merge
2021-01-25 11:15:17 +01:00
Anurag Shivarathri
3da6f270ec
After OAUTH, SAML auth completion, Redirect to App custom url scheme with token data as query params. ( #16447 )
...
* Added redirection after Auth complete
* Fixed gofmt
* Handling error while parsing the url, added util function to check for a valid mobile redirect url
* Added check for custom scheme url validation
* Added test to verify custom schele url
* Added mobile message screens
* Translation strings for mobile screens
* Added mobile specific screens for success and error
* Added error logs and changed variable name for consistency with oauth.go
* i18n fix
* Reusing assigned variable instead of map
* Added AppCustomUrlScheme property
* Code refactor and removed dependency from cookies to build the final url
* Changed util function
* Updated util test
* Fixed go lint
* Code refactor and unsused code removed
* Code refactor
* simplified boolean checks
* Added support of whitelist of appCustomURLSchemes
* Changed i18 en
* Fixed validating redirecturl for web
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2021-01-19 21:16:22 +05:30
Ibrahim Serdar Acikgoz
f9c0c1072f
[MM-31360] downgrade error logs which doesn't break the flow ( #16612 )
...
* downgrade error logs which doesn't break the flow
* reflect revivew comments
2021-01-04 17:02:34 +03:00
Agniva De Sarker
6487d0ca91
MM-31062: Rewrite empty string checks to be more idiomatic ( #16587 )
...
https://mattermost.atlassian.net/browse/MM-31062
```release-note
NONE
```
2020-12-22 19:20:59 +05:30
Agniva De Sarker
1a131b54af
MM-31064: Simplify indentation ( #16565 )
...
* MM-31064: Simplify indentation
Reduce indentation where possible.
```release-note
NONE
```
Command ran to verify:
golangci-lint run --disable-all --enable golint --max-issues-per-linter=10000 --max-same-issues=100000 ./... | grep "block ends with a return state"
https://mattermost.atlassian.net/browse/MM-31064
* incorporate review comments
* enable golint for outdent rule
* fix remaining issues
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2020-12-21 18:50:47 +03:00
Agniva De Sarker
faaac9cb74
MM-30861: Fix racy test TestSaml2Login ( #16376 )
...
* MM-30861: Fix racy test TestSaml2Login
https://mattermost.atlassian.net/browse/MM-30861
```release-note
NONE
```
* incorporate suggestions
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2020-11-25 19:01:32 +05:30
Jesús Espino
b977017ca7
Extracting email functions into a service ( #14802 )
...
* Extracting email functions into a service
* Fixing two shadowing errors
* Address PR review comments
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2020-07-07 10:03:21 +02:00
Hossein Ahmadian-Yazdi
4c50c7c59b
[MM-25780] Fix incorrect session length when logging in through mobile using SSO ( #14874 )
...
* Pass device ID
* dont use device id as way of detecting
* fix spelling mistake
* update layers
* fix test
* fix linting
* save schema
* put columns in correct place
* fix linting
* update
* upgrade go change
* use props
* fix stuff
* update session tests
* address PR comments
* address PR comments
2020-06-30 10:34:05 -04:00
Doug Lauder
4ac0619c90
MM-22273 New auditing system (phase 1) ( #13967 )
...
* New auditing API outputting to syslog via TLS
* New config section for specifying remote syslog server IP, port, and cert.
* Legacy audit API retained for access history feature
2020-03-12 15:50:21 -04:00
Eli Yukelzon
17523fa5d9
MM-21898 - Part 1: Generate and use an interface instead of *A… ( #13840 )
...
* Generate and use an interface instead of *App
2020-02-13 13:26:58 +01:00
Claudio Costa
c89d1435ab
Use ApiTrustRequester for SAML complete endpoint ( #13562 )
2020-01-06 09:38:17 +01:00
Jesús Espino
a63684fcb5
Consistent license message for all the go files ( #13235 )
...
* Consistent license message for all the go files
* Fixing the last set of unconsistencies with the license headers
* Addressing PR review comments
* Fixing busy.go and busy_test.go license header
2019-11-29 12:59:40 +01:00
Miguel de la Cruz
2259b7f2a8
[MM-19948] Set version on module file and internal paths ( #13186 )
...
* [MM-19948] Set version on module file and internal paths
* Fixes after merge
* Fix i18n checker error
2019-11-28 14:39:38 +01:00
Claudio Costa
422f377c96
[MM-19473] Fix data race on user login ( #12870 )
...
* Avoid writes to App.Session outside the app layer
* Fix merge
* Remove unneeded else condition
2019-10-31 12:50:43 +01:00
catalintomai
5dbccd0f07
[MM-18360] Add audit logging for SAML user login ( #12831 )
...
* Add audit logging for SAML user login
* add statement for login sucess
* Update web/saml.go
Co-Authored-By: Martin Kraft <martin@upspin.org >
2019-10-29 10:54:43 -07:00
Harrison Healey
803ce61ef8
MM-15889 Add unit tests for CSRF checks ( #11058 )
...
* MM-15889 Add unit tests for CSRF checks
* Moved CSRF token test to login tests
* Remove empty test
* Remove debug messages
2019-06-11 15:09:00 -04:00
Christopher Speller
2999009052
Revert "Support for Embeded chat ( #9129 )" ( #10017 )
...
This reverts commit 3fcecd521a .
2019-01-02 07:57:36 -08:00
Christopher Speller
da265fbaf7
Moving app from singular to being created for every request ( #9889 )
...
* Moving app from singular to being created for every request.
* Automatic refactor
* Adding license header
* Feedback fixes
2018-11-28 10:56:21 -08:00
Christopher Speller
ecade2f1ec
MM-12849 Moving all non request scoped items to Server struct ( #9806 )
...
* Moving goroutine pool
* Auto refactor
* Moving plugins.
* Auto refactor
* Moving fields to server
* Auto refactor
* Removing siteurl duplication.
* Moving reset of app fields
* Auto refactor
* Formatting
* Moving niling of Server to after last use
* Fixing unit tests.
2018-11-07 10:20:07 -08:00
Jesse Hallam
04a6a779e2
MM-12708: tack on signin_change when completing email to saml change ( #9776 )
2018-11-02 08:22:15 -07:00
Chris Duarte
3fcecd521a
Support for Embeded chat ( #9129 )
...
* Add ucLive support
crazy testing
lovely logs
more cookie work arounds
Added Access-Control-Expose-Headers to user login
Add complete_saml_body template and revert loginWithSaml endpoint
Set Access-Control-Allow-Credentials to true in user login
Login via email instead of username
Clean up code
Add comment to give some context
Move faml logic into saml function
Communicate via chrome sendMessage api
Remove unused code
Add config to support multiple extensions
Clean up embedded complete_saml template
Fix indentation for templates
Added license header to extension.go
Add EnableExperimentalExtensions flag
Extension validated for email auth
Clean up api auth code
Remove complete_saml_body.html
* Add extension support in saml
* Clean up code
* Clean up extension validation
2018-07-18 14:56:38 -07:00
Jesse Hallam
7c08ff9986
MM-11241: fix context site url header ( #9079 )
...
* fix context's SiteURLHeader to use the subpath
This fixes various commands such as /open and /groupmsg, as well as
OAuth related redirects.
* MM-11246: also leverage GetSiteHeader() in completeSaml
2018-07-11 10:13:37 +02:00
Joram Wilander
6a9aa855d1
Move SAML endpoints out of api package ( #8780 )
2018-05-14 11:27:30 -04:00