zitadel/internal/api/authz/context_mock.go
2020-08-20 22:09:37 +02:00

8 lines
191 B
Go

package authz
import "context"
func NewMockContext(orgID, userID string) context.Context {
return context.WithValue(context.Background(), dataKey, CtxData{UserID: userID, OrgID: orgID})
}