Documentation ¶
Overview ¶
Package ory provides a high-level client for using Ory Kratos
Index ¶
- type Cache
- type Client
- func (c *Client) GetIdentifier(ctx context.Context, id IdentityID) (IdentityIdentifier, error)
- func (c *Client) GetIdentities(ctx context.Context) ([]Identity, error)
- func (c *Client) GetIdentity(ctx context.Context, id IdentityID) (Identity, error)
- func (c *Client) GetPath(ctx context.Context, endpoint, route string) (string, error)
- func (c *Client) InitializeLoginFlow(ctx context.Context) (*ory.SelfServiceLoginFlow, *http.Cookie, error)
- func (c *Client) PerformLogout(ctx context.Context, cookies []*http.Cookie) ([]*http.Cookie, error)
- func (c *Client) SubmitLoginFlow(ctx context.Context, flow, csrfToken, identifier, password string, ...) (*ory.SuccessfulSelfServiceLoginWithoutBrowser, []*http.Cookie, error)
- type Config
- type Identity
- type IdentityID
- type IdentityIdentifier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
Cache clientcache.Cache
}
func (*Cache) GetIdentifierByID ¶
func (c *Cache) GetIdentifierByID(id IdentityID) (IdentityIdentifier, bool, error)
func (*Cache) SetIdentifierByID ¶
func (c *Cache) SetIdentifierByID( id IdentityID, identifier IdentityIdentifier, costWeight float32, ) error
func (*Cache) UnsetIdentifierByID ¶
func (c *Cache) UnsetIdentifierByID(id IdentityID)
type Client ¶
func (*Client) GetIdentifier ¶
func (c *Client) GetIdentifier(ctx context.Context, id IdentityID) (IdentityIdentifier, error)
func (*Client) GetIdentities ¶
func (*Client) GetIdentity ¶
func (*Client) InitializeLoginFlow ¶
func (*Client) PerformLogout ¶
type Config ¶
type Config struct { NoAuth bool KratosAPI *ory.Configuration NetworkCostWeight float32 }
type Identity ¶
type Identity struct { ID IdentityID Identifier IdentityIdentifier Email string }
type IdentityID ¶ added in v0.3.4
type IdentityID string
type IdentityIdentifier ¶ added in v0.3.4
type IdentityIdentifier string
Click to show internal directories.
Click to hide internal directories.