Movatterモバイル変換


[0]ホーム

URL:


identityprovider

package
v2.24.2Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2025 License:AGPL-3.0Imports:22Imported by:0

Details

Repository

github.com/coder/coder

Links

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

funcAuthorize

func Authorize(dbdatabase.Store, accessURL *url.URL)http.HandlerFunc

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

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.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp