mirror of
https://github.com/jech/galene.git
synced 2024-11-12 19:55:59 +01:00
c58064d923
Tokens are now an interface, and all the token logic is encapsulated in the token module.
9 lines
217 B
Go
9 lines
217 B
Go
package token
|
|
|
|
type Token interface {
|
|
Check(host, group string, username *string) (string, []string, error)
|
|
}
|
|
|
|
func Parse(token string, keys []map[string]interface{}) (Token, error) {
|
|
return parseJWT(token, keys)
|
|
}
|