Session Refactor: Add auth module label to session's list (#94958)

* Add AuthModule to token API

* Add badge to UserSessions

* Change idp label rendering

* Render IdP label for User Profile page

* Add i18n labels
This commit is contained in:
linoman
2024-10-22 10:57:36 +02:00
committed by GitHub
parent 200c613672
commit 3270a9c959
10 changed files with 36 additions and 1 deletions
+4
View File
@@ -2,6 +2,7 @@ package authtest
import (
"context"
"errors"
"net"
"time"
@@ -65,6 +66,9 @@ func NewFakeUserAuthTokenService() *FakeUserAuthTokenService {
GetUserTokensProvider: func(ctx context.Context, userId int64) ([]*auth.UserToken, error) {
return nil, nil
},
GetExternalSessionProvider: func(ctx context.Context, externalSessionID int64) (*auth.ExternalSession, error) {
return nil, errors.New("settings Provider table not found")
},
}
}