Documentation
¶
Index ¶
- Variables
- type Provider
- func (p *Provider) Create(ctx context.Context, i *identity.OAuth) error
- func (p *Provider) Delete(ctx context.Context, i *identity.OAuth) error
- func (p *Provider) Get(ctx context.Context, userID, id string) (*identity.OAuth, error)
- func (p *Provider) GetByProviderSubject(ctx context.Context, providerID oauthrelyingparty.ProviderID, subjectID string) (*identity.OAuth, error)
- func (p *Provider) GetByUserProvider(ctx context.Context, userID string, providerID oauthrelyingparty.ProviderID) (*identity.OAuth, error)
- func (p *Provider) GetMany(ctx context.Context, ids []string) ([]*identity.OAuth, error)
- func (p *Provider) List(ctx context.Context, userID string) ([]*identity.OAuth, error)
- func (p *Provider) ListByClaim(ctx context.Context, name string, value string) ([]*identity.OAuth, error)
- func (p *Provider) New(userID string, providerID oauthrelyingparty.ProviderID, subjectID string, ...) *identity.OAuth
- func (p *Provider) Update(ctx context.Context, i *identity.OAuth) error
- func (p *Provider) WithUpdate(iden *identity.OAuth, rawProfile map[string]interface{}, ...) *identity.OAuth
- type Store
- func (s *Store) Create(ctx context.Context, i *identity.OAuth) (err error)
- func (s *Store) Delete(ctx context.Context, i *identity.OAuth) error
- func (s *Store) Get(ctx context.Context, userID string, id string) (*identity.OAuth, error)
- func (s *Store) GetByProviderSubject(ctx context.Context, providerID oauthrelyingparty.ProviderID, subjectID string) (*identity.OAuth, error)
- func (s *Store) GetByUserProvider(ctx context.Context, userID string, providerID oauthrelyingparty.ProviderID) (*identity.OAuth, error)
- func (s *Store) GetMany(ctx context.Context, ids []string) ([]*identity.OAuth, error)
- func (s *Store) List(ctx context.Context, userID string) ([]*identity.OAuth, error)
- func (s *Store) ListByClaim(ctx context.Context, name string, value string) ([]*identity.OAuth, error)
- func (s *Store) Update(ctx context.Context, i *identity.OAuth) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct { Store *Store Clock clock.Clock IdentityConfig *config.IdentityConfig }
func (*Provider) GetByProviderSubject ¶
func (p *Provider) GetByProviderSubject(ctx context.Context, providerID oauthrelyingparty.ProviderID, subjectID string) (*identity.OAuth, error)
func (*Provider) GetByUserProvider ¶
func (p *Provider) GetByUserProvider(ctx context.Context, userID string, providerID oauthrelyingparty.ProviderID) (*identity.OAuth, error)
func (*Provider) ListByClaim ¶
type Store ¶
type Store struct { SQLBuilder *appdb.SQLBuilderApp SQLExecutor *appdb.SQLExecutor IdentityConfig *config.IdentityConfig }
func (*Store) GetByProviderSubject ¶
func (s *Store) GetByProviderSubject(ctx context.Context, providerID oauthrelyingparty.ProviderID, subjectID string) (*identity.OAuth, error)
func (*Store) GetByUserProvider ¶
func (s *Store) GetByUserProvider(ctx context.Context, userID string, providerID oauthrelyingparty.ProviderID) (*identity.OAuth, error)
func (*Store) ListByClaim ¶
Click to show internal directories.
Click to hide internal directories.