Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BcryptHasher ¶
type BcryptHasher struct{}
func (*BcryptHasher) Verify ¶
func (b *BcryptHasher) Verify(hashedPassword, password string) error
type ClientInfoWithHash ¶
type ClientInfoWithHash struct {
// contains filtered or unexported fields
}
func NewClientInfoWithHash ¶
func NewClientInfoWithHash( info oauth2.ClientInfo, hasher Hasher, ) *ClientInfoWithHash
func (*ClientInfoWithHash) GetDomain ¶
func (v *ClientInfoWithHash) GetDomain() string
func (*ClientInfoWithHash) GetID ¶
func (v *ClientInfoWithHash) GetID() string
func (*ClientInfoWithHash) GetSecret ¶
func (v *ClientInfoWithHash) GetSecret() string
func (*ClientInfoWithHash) GetUserID ¶
func (v *ClientInfoWithHash) GetUserID() string
func (*ClientInfoWithHash) IsPublic ¶
func (v *ClientInfoWithHash) IsPublic() bool
func (*ClientInfoWithHash) VerifyPassword ¶
func (v *ClientInfoWithHash) VerifyPassword(pass string) bool
type ClientStoreWithHash ¶
type ClientStoreWithHash struct { oauth2.ClientStore // contains filtered or unexported fields }
func NewClientStoreWithBcrypt ¶
func NewClientStoreWithBcrypt(store oauth2.ClientStore) *ClientStoreWithHash
func NewClientStoreWithHash ¶
func NewClientStoreWithHash(store oauth2.ClientStore, hasher Hasher) *ClientStoreWithHash
func (*ClientStoreWithHash) GetByID ¶
func (w *ClientStoreWithHash) GetByID(ctx context.Context, id string) (oauth2.ClientInfo, error)
func (*ClientStoreWithHash) HashAndCreate ¶
func (w *ClientStoreWithHash) HashAndCreate( info oauth2.ClientInfo, createFunc func(oauth2.ClientInfo) error, ) error
Click to show internal directories.
Click to hide internal directories.