identityprovider
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Index¶
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
funcAuthorize¶
Authorize displays an HTML page for authorizing an application when the userhas first been redirected to this path and generates a code and redirects tothe app's callback URL after the user clicks "allow" on that page, which isdetected via the origin and referer headers.
funcTokens¶
func Tokens(dbdatabase.Store, lifetimescodersdk.SessionLifetime)http.HandlerFunc
TokensTODO: the sessions lifetime config passed is for coder api tokens.Should there be a separate config for oauth2 tokens? They are related,but they are not the same.
Types¶
typeOAuth2ProviderAppSecret¶
type OAuth2ProviderAppSecret struct {// Formatted contains the secret. This value is owned by the client, not the// server. It is formatted to include the prefix.Formattedstring// Prefix is the ID of this secret owned by the server. When a client uses a// secret, this is the matching string to do a lookup on the hashed value. We// cannot use the hashed value directly because the server does not store the// salt.Prefixstring// Hashed is the server stored hash(secret,salt,...). Used for verifying a// secret.Hashedstring}
funcGenerateSecret¶
func GenerateSecret() (OAuth2ProviderAppSecret,error)
GenerateSecret generates a secret to be used as a client secret, refreshtoken, or authorization code.