MCPcopy
hub / github.com/tinode/chat / AuthGetUniqueRecord

Method AuthGetUniqueRecord

server/db/adapter.go:83–83  ·  view source on GitHub ↗

Authentication management for the basic authentication scheme AuthGetUniqueRecord returns authentication record for a given unique value i.e. login.

(unique string)

Source from the content-addressed store, hash-verified

81
82 // AuthGetUniqueRecord returns authentication record for a given unique value i.e. login.
83 AuthGetUniqueRecord(unique string) (t.Uid, auth.Level, []byte, time.Time, error)
84 // AuthGetRecord returns authentication record given user ID and method.
85 AuthGetRecord(user t.Uid, scheme string) (string, auth.Level, []byte, time.Time, error)
86 // AuthAddRecord creates new authentication record

Callers 5

GetAuthUniqueRecordMethod · 0.65
TestAuthGetUniqueRecordFunction · 0.65
TestAuthGetUniqueRecordFunction · 0.65
TestAuthGetUniqueRecordFunction · 0.65
TestAuthGetUniqueRecordFunction · 0.65

Implementers 4

adapterserver/db/mongodb/adapter.go
adapterserver/db/postgres/adapter.go
adapterserver/db/rethinkdb/adapter.go
adapterserver/db/mysql/adapter.go

Calls

no outgoing calls

Tested by 4

TestAuthGetUniqueRecordFunction · 0.52
TestAuthGetUniqueRecordFunction · 0.52
TestAuthGetUniqueRecordFunction · 0.52
TestAuthGetUniqueRecordFunction · 0.52