1
0
mirror of https://github.com/mainflux/mainflux.git synced 2025-05-01 13:48:56 +08:00

12 lines
330 B
Go
Raw Normal View History

2018-05-10 23:53:25 +02:00
package users
// IdentityProvider specifies an API for identity management via security
// tokens.
type IdentityProvider interface {
// TemporaryKey generates the temporary access token.
TemporaryKey(string) (string, error)
// Identity extracts the entity identifier given its secret key.
Identity(string) (string, error)
}