Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(ctx context.Context, db *gorm.DB, appID, name, digest string) (*schema.Credential, error)
Create stores a client secret, as its digest, for appID.
func GenerateSecret ¶
GenerateClientSecret returns a new client secret and the digest to persist.
The plaintext is returned to the caller exactly once, at registration time, and must never be stored. Only the digest goes in the database.
Types ¶
type Secret ¶
type Secret struct {
Digest string
}
func GetSecretFromCredential ¶
func GetSecretFromCredential(c *schema.Credential) (*Secret, error)
func (*Secret) VerifyAgainst ¶
Click to show internal directories.
Click to hide internal directories.