mirror of
https://github.com/mainflux/mainflux.git
synced 2025-04-27 13:48:49 +08:00
12 lines
330 B
Go
12 lines
330 B
Go
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)
|
|
}
|