mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-18 13:57:32 +00:00
26 lines
562 B
Go
26 lines
562 B
Go
|
package auth
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
"github.com/caos/zitadel/internal/api/auth"
|
||
|
)
|
||
|
|
||
|
type TokenVerifier struct {
|
||
|
}
|
||
|
|
||
|
func Start() (v *TokenVerifier) {
|
||
|
return new(TokenVerifier)
|
||
|
}
|
||
|
|
||
|
func (v *TokenVerifier) VerifyAccessToken(ctx context.Context, token string) (string, string, string, error) {
|
||
|
return "", "", "", nil
|
||
|
}
|
||
|
|
||
|
func (v *TokenVerifier) ResolveGrants(ctx context.Context, userID, orgID string) ([]*auth.Grant, error) {
|
||
|
return nil, nil
|
||
|
}
|
||
|
|
||
|
func (v *TokenVerifier) GetProjectIDByClientID(ctx context.Context, clientID string) (string, error) {
|
||
|
return "", nil
|
||
|
}
|