Bump golag-ci lint version to 1.40.1
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
This commit is contained in:
@@ -51,7 +51,7 @@ func (d *Database) DeleteOfflineSessions(userID, connID string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// UpdatePassword changes an offline session by user id and connector id using an updater function.
|
||||
// UpdateOfflineSessions changes an offline session by user id and connector id using an updater function.
|
||||
func (d *Database) UpdateOfflineSessions(userID string, connID string, updater func(s storage.OfflineSessions) (storage.OfflineSessions, error)) error {
|
||||
id := offlineSessionID(userID, connID, d.hasher)
|
||||
|
||||
@@ -86,7 +86,7 @@ func (d *Database) UpdateOfflineSessions(userID string, connID string, updater f
|
||||
}
|
||||
|
||||
if err = tx.Commit(); err != nil {
|
||||
return rollback(tx, "update password commit: %w", err)
|
||||
return rollback(tx, "update offline session commit: %w", err)
|
||||
}
|
||||
|
||||
return nil
|
||||
|
@@ -29,8 +29,7 @@ func New(logger log.Logger) storage.Storage {
|
||||
// Config is an implementation of a storage configuration.
|
||||
//
|
||||
// TODO(ericchiang): Actually define a storage config interface and have registration.
|
||||
type Config struct {
|
||||
// The in memory implementation has no config.
|
||||
type Config struct { // The in memory implementation has no config.
|
||||
}
|
||||
|
||||
// Open always returns a new in memory storage.
|
||||
|
@@ -177,7 +177,7 @@ type Claims struct {
|
||||
Groups []string
|
||||
}
|
||||
|
||||
// Data needed for PKCE (RFC 7636)
|
||||
// PKCE is a container for the data needed to perform Proof Key for Code Exchange (RFC 7636) auth flow
|
||||
type PKCE struct {
|
||||
CodeChallenge string
|
||||
CodeChallengeMethod string
|
||||
|
Reference in New Issue
Block a user