Documentation
¶
Index ¶
- type Client
- func (c *Client) KetoCheck(ctx context.Context, req KetoCheckRequest) (bool, error)
- func (c *Client) ValidateJWT(ctx context.Context, tokenString string, jwksURL string) (jwt.MapClaims, error)
- func (c *Client) ValidateSession(ctx context.Context, token string) (*Session, error)
- func (c *Client) WriteKetoTuple(ctx context.Context, namespace, object, relation, subjectID string) error
- type Config
- type KetoCheckRequest
- type Session
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client wraps Ory Kratos (auth) and Keto (authorization).
func (*Client) ValidateJWT ¶
func (c *Client) ValidateJWT(ctx context.Context, tokenString string, jwksURL string) (jwt.MapClaims, error)
ValidateJWT validates a JWT signed by Ory Kratos.
func (*Client) ValidateSession ¶
ValidateSession validates a session cookie or token against Ory Kratos.
type KetoCheckRequest ¶
KetoCheckRequest defines an authorization check against Ory Keto.
Click to show internal directories.
Click to hide internal directories.