[MM-27623] Add new session prop for oauth (#15221)
* Add new session prop for oauth * Make it isOAuthUser to differentiate better * Fix up caps * Fix tests * Add tests for IsOAuthUser
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
a540dcdf9c
Коммит
101c6c7c01
@@ -237,8 +237,10 @@ func TestApp_GetSessionLengthInMillis(t *testing.T) {
|
||||
|
||||
t.Run("get session length SSO", func(t *testing.T) {
|
||||
session := &model.Session{
|
||||
UserId: model.NewId(),
|
||||
IsOAuth: true,
|
||||
UserId: model.NewId(),
|
||||
Props: map[string]string{
|
||||
model.USER_AUTH_SERVICE_IS_OAUTH: "true",
|
||||
},
|
||||
}
|
||||
session, err := th.App.CreateSession(session)
|
||||
require.Nil(t, err)
|
||||
|
||||
Ссылка в новой задаче
Block a user