Documentation ¶
Index ¶
- Variables
- type Provider
- func (p *Provider) CheckDuplicated(standardClaims map[model.ClaimName]string, userID string) (*identity.OAuth, error)
- func (p *Provider) Create(i *identity.OAuth) error
- func (p *Provider) Delete(i *identity.OAuth) error
- func (p *Provider) Get(userID, id string) (*identity.OAuth, error)
- func (p *Provider) GetByProviderSubject(provider config.ProviderID, subjectID string) (*identity.OAuth, error)
- func (p *Provider) GetByUserProvider(userID string, provider config.ProviderID) (*identity.OAuth, error)
- func (p *Provider) GetMany(ids []string) ([]*identity.OAuth, error)
- func (p *Provider) List(userID string) ([]*identity.OAuth, error)
- func (p *Provider) ListByClaim(name string, value string) ([]*identity.OAuth, error)
- func (p *Provider) New(userID string, provider config.ProviderID, subjectID string, ...) *identity.OAuth
- func (p *Provider) Update(i *identity.OAuth) error
- func (p *Provider) WithUpdate(iden *identity.OAuth, rawProfile map[string]interface{}, ...) *identity.OAuth
- type Store
- func (s *Store) Create(i *identity.OAuth) (err error)
- func (s *Store) Delete(i *identity.OAuth) error
- func (s *Store) Get(userID string, id string) (*identity.OAuth, error)
- func (s *Store) GetByProviderSubject(provider config.ProviderID, subjectID string) (*identity.OAuth, error)
- func (s *Store) GetByUserProvider(userID string, provider config.ProviderID) (*identity.OAuth, error)
- func (s *Store) GetMany(ids []string) ([]*identity.OAuth, error)
- func (s *Store) List(userID string) ([]*identity.OAuth, error)
- func (s *Store) ListByClaim(name string, value string) ([]*identity.OAuth, error)
- func (s *Store) Update(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) CheckDuplicated ¶
func (*Provider) GetByProviderSubject ¶
func (*Provider) GetByUserProvider ¶
func (*Provider) ListByClaim ¶
type Store ¶
type Store struct { SQLBuilder *appdb.SQLBuilderApp SQLExecutor *appdb.SQLExecutor IdentityConfig *config.IdentityConfig }
func (*Store) GetByProviderSubject ¶
func (*Store) GetByUserProvider ¶
func (*Store) ListByClaim ¶
Click to show internal directories.
Click to hide internal directories.