Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/zitadel/oidc
/ functions
Functions
1,804 in github.com/zitadel/oidc
⨍
Functions
1,804
◇
Types & classes
360
↓ 3 callers
Method
IDTokenLifetime
()
pkg/op/client.go:45
↓ 3 callers
Method
IDTokenVerifier
IDTokenVerifier returns the verifier used for oidc id_token verification
pkg/client/rp/relying_party.go:78
↓ 3 callers
Function
IntrospectionSigAlgorithms
(c Configuration)
pkg/op/discovery.go:189
↓ 3 callers
Method
IsPKCE
IsPKCE returns if authorization is done using `Authorization Code Flow with Proof Key for Code Exchange (PKCE)`
pkg/client/rp/relying_party.go:50
↓ 3 callers
Method
Issuer
Issuer returns the issuer of the oidc config
pkg/client/rp/relying_party.go:47
↓ 3 callers
Method
JWTProfileVerifier
(context.Context)
pkg/op/client.go:91
↓ 3 callers
Method
Key
()
pkg/op/signer.go:35
↓ 3 callers
Function
NativeClient
NativeClient will create a client of type native, which will always use PKCE and allow the use of refresh tokens user-defined redirectURIs may include
example/server/storage/client.go:147
↓ 3 callers
Function
NewAES256GCMCrypto
(key [32]byte, keyId string)
pkg/op/crypto.go:44
↓ 3 callers
Function
NewAccessTokenClaims
(issuer, subject string, audience []string, expiration time.Time, jwtid, clientID string, skew time.Duration)
pkg/oidc/token.go:107
↓ 3 callers
Function
NewAccessTokenVerifier
NewAccessTokenVerifier returns a AccessTokenVerifier suitable for access token verification.
pkg/op/verifier_access_token.go:20
↓ 3 callers
Function
NewEncoder
NewEncoder returns a schema Encoder with a registered encoder for SpaceDelimitedArray.
pkg/oidc/types.go:262
↓ 3 callers
Function
NewIDTokenClaims
(issuer, subject string, audience []string, expiration, authTime time.Time, nonce string, acr string, amr []st
pkg/oidc/token.go:181
↓ 3 callers
Function
NewIDTokenVerifier
NewIDTokenVerifier returns a oidc.Verifier suitable for ID token verification.
pkg/client/rp/verifier.go:113
↓ 3 callers
Function
NewJWTProfileVerifier
NewJWTProfileVerifier creates an oidc.Verifier for JWT Profile assertions (authorization grant and client authentication)
pkg/op/verifier_jwt_profile.go:24
↓ 3 callers
Function
NewMockClient
NewMockClient creates a new mock instance.
pkg/op/mock/client.mock.go:28
↓ 3 callers
Function
NewOpenIDProvider
NewOpenIDProvider creates a provider. The provider provides (with HttpHandler()) a http.Router that handles a suite of endpoints (some paths can be ov
pkg/op/op.go:215
↓ 3 callers
Function
NewProvider
NewProvider creates a provider with a router on it's embedded http.Handler. Issuer is a function that must return the issuer on every request. Typical
pkg/op/op.go:258
↓ 3 callers
Function
NewSHACodeChallenge
(code string)
pkg/oidc/code_challenge.go:21
↓ 3 callers
Function
NewUserCode
(charSet []rune, charAmount, dashInterval int)
pkg/op/device.go:174
↓ 3 callers
Function
ParseAuthenticatedTokenRequest
ParseAuthenticatedTokenRequest parses the client_id and client_secret from the HTTP request from either HTTP Basic Auth header or form body and sets t
pkg/op/token_request.go:104
↓ 3 callers
Function
ParseLocales
ParseLocales parses a slice of strings into Locales. If an entry causes a parse error or is undefined, it is ignored and not set to Locales.
pkg/oidc/types.go:132
↓ 3 callers
Function
RegisterLegacyServer
RegisterLegacyServer registers a [LegacyServer] or an extension thereof. It takes care of registering the IssuerFromRequest middleware. The authorizeC
pkg/op/server_legacy.go:31
↓ 3 callers
Function
RequestObjectSigAlgorithms
(c Configuration)
pkg/op/discovery.go:161
↓ 3 callers
Function
ResponseTypes
(c Configuration)
pkg/op/discovery.go:111
↓ 3 callers
Method
ResponseTypes
()
pkg/op/client.go:41
↓ 3 callers
Function
RevocationSigAlgorithms
(c Configuration)
pkg/op/discovery.go:206
↓ 3 callers
Method
RevokeToken
RevokeToken should revoke a token. In the situation that the original request was to revoke an access token, then tokenOrTokenID will be a tokenID and
pkg/op/storage.go:61
↓ 3 callers
Function
Scopes
(c Configuration)
pkg/op/discovery.go:103
↓ 3 callers
Method
SetIntrospectionFromToken
(ctx context.Context, userinfo *oidc.IntrospectionResponse, tokenID, subject, clientID string)
pkg/op/storage.go:135
↓ 3 callers
Method
SetUserinfoFromToken
(ctx context.Context, userinfo *oidc.UserInfo, tokenID, subject, origin string)
pkg/op/storage.go:134
↓ 3 callers
Function
SigAlgorithms
(ctx context.Context, storage DiscoverStorage)
pkg/op/discovery.go:146
↓ 3 callers
Function
Sign
(object any, signer jose.Signer)
pkg/crypto/sign.go:10
↓ 3 callers
Method
Signer
Signer is used if the relaying party uses the JWT Profile
pkg/client/rp/relying_party.go:62
↓ 3 callers
Method
SigningKey
(context.Context)
pkg/op/storage.go:67
↓ 3 callers
Method
StoreDeviceAuthorization
StoreDeviceAuthorization stores a new device authorization request in the database. User code will be used by the user to complete the login flow and
pkg/op/storage.go:195
↓ 3 callers
Function
SubjectTypes
(c Configuration)
pkg/op/discovery.go:142
↓ 3 callers
Function
SupportedClaims
(c Configuration)
pkg/op/discovery.go:227
↓ 3 callers
Method
Tag
()
pkg/oidc/types.go:84
↓ 3 callers
Method
TerminateSession
(ctx context.Context, userID string, clientID string)
pkg/op/storage.go:53
↓ 3 callers
Method
TokenEndpoint
()
pkg/client/client.go:65
↓ 3 callers
Method
TokenRequestByRefreshToken
(ctx context.Context, refreshToken string)
pkg/op/storage.go:51
↓ 3 callers
Function
TokenSigAlgorithms
(c Configuration)
pkg/op/discovery.go:182
↓ 3 callers
Function
UserinfoCallback
UserinfoCallback wraps the callback function of the CodeExchangeHandler and calls the userinfo endpoint with the access token on success it will pass
pkg/client/rp/relying_party.go:653
↓ 3 callers
Function
ValidDPoPJKT
ValidDPoPJKT reports whether value is an unpadded base64url-encoded SHA-256 JWK thumbprint. Experimental: OpenID Connect Key Binding 1.0 is a draft s
pkg/oidc/dpop.go:100
↓ 3 callers
Function
ValidateAuthReqIDTokenHint
ValidateAuthReqIDTokenHint validates the id_token_hint (if passed as parameter in the request) and returns the `sub` claim
pkg/op/auth_request.go:428
↓ 3 callers
Function
ValidateAuthReqPrompt
ValidateAuthReqPrompt validates the passed prompt values and sets max_age to 0 if prompt login is present
pkg/op/auth_request.go:282
↓ 3 callers
Function
ValidateAuthReqRedirectURI
ValidateAuthReqRedirectURI validates the passed redirect_uri and response_type to the registered uris and client type
pkg/op/auth_request.go:337
↓ 3 callers
Function
ValidateAuthReqResponseType
ValidateAuthReqResponseType validates the passed response_type to the registered response types
pkg/op/auth_request.go:414
↓ 3 callers
Function
ValidateAuthReqScopes
ValidateAuthReqScopes validates the passed scopes and deletes any unsupported scopes. An error is returned if scopes is empty.
pkg/op/auth_request.go:296
↓ 3 callers
Function
ValidateIssuerPath
(issuer *url.URL)
pkg/op/config.go:161
↓ 3 callers
Method
ValidateJWTProfileScopes
(ctx context.Context, userID string, scopes []string)
pkg/op/storage.go:138
↓ 3 callers
Function
VerifyIDToken
VerifyIDToken validates the id token according to https://openid.net/specs/openid-connect-core-1_0.html#IDTokenValidation
pkg/client/rp/verifier.go:33
↓ 3 callers
Function
WithAllowInsecure
WithAllowInsecure allows the use of http (instead of https) for issuers this is not recommended for production use and violates the OIDC specification
pkg/op/op.go:519
↓ 3 callers
Function
WithJWTProfile
WithJWTProfile creates a signer used for the JWT Profile Client Authentication on the token endpoint When creating the signer, be sure to include the
pkg/client/rp/relying_party.go:385
↓ 3 callers
Function
WithKeyBinding
WithKeyBinding enables OpenID Connect Key Binding for the authorization code, refresh and device authorization flows. The RP appends the `bound_key` s
pkg/client/rp/key_binding.go:82
↓ 3 callers
Function
WithVerifierOpts
(opts ...VerifierOption)
pkg/client/rp/relying_party.go:368
↓ 3 callers
Method
accessToken
accessToken will store an access_token in-memory based on the provided information
example/server/storage/storage.go:645
↓ 3 callers
Function
appendClaim
(claims map[string]any, claim string, value any)
example/server/storage/storage.go:809
↓ 3 callers
Function
errMsg
(err error)
example/server/exampleop/templates.go:19
↓ 3 callers
Function
getRedirect
(t *testing.T, desc string, httpClient *http.Client, uri *url.URL)
pkg/client/integration_test.go:598
↓ 3 callers
Function
htuClaim
htuClaim returns the DPoP htu value defined in RFC 9449, section 4.2, i.e., removing the query and fragment from a URI.
pkg/client/rp/key_binding.go:260
↓ 3 callers
Function
jsonWebKeySet
(keys []Key)
pkg/op/keys.go:35
↓ 3 callers
Function
newKeyBoundRP
(t *testing.T)
pkg/client/rp/key_binding_test.go:31
↓ 3 callers
Function
newOAuthTokenExchange
(ctx context.Context, issuer string, authorizer func() (any, error), options ...func(source *OAuthTokenExchang
pkg/client/tokenexchange/tokenexchange.go:49
↓ 3 callers
Function
newTestProvider
(config *op.Config)
pkg/op/op_test.go:73
↓ 3 callers
Function
runWithRandReader
(r io.Reader, f func())
pkg/op/device_test.go:137
↓ 3 callers
Function
signEncodeTokenClaims
(claims any)
internal/testutil/token.go:59
↓ 3 callers
Function
unauthorizedError
(w http.ResponseWriter, r *http.Request, desc string, state string, rp RelyingParty)
pkg/client/rp/relying_party.go:960
↓ 3 callers
Function
verifyKeyBindingIDToken
verifyKeyBindingIDToken checks that token is actually bound to the RP's binding key, by requiring the protected `typ` header to be [oidc.IDTokenTypeDP
pkg/client/rp/key_binding.go:352
↓ 3 callers
Method
withClient
(handler clientHandler)
pkg/op/server_http.go:128
↓ 3 callers
Function
withURLParam
withURLParam sets custom url parameters. This is the generalized, unexported, function used by both URLParamOpt and AuthURLOpt.
pkg/client/rp/relying_party.go:751
↓ 2 callers
Method
Algorithm
()
pkg/op/signer.go:33
↓ 2 callers
Function
AuthRequestByCode
AuthRequestByCode returns the AuthRequest previously created from Storage corresponding to the auth code or an error
pkg/op/token_code.go:126
↓ 2 callers
Method
AuthRequestByCode
(context.Context, string)
pkg/op/storage.go:17
↓ 2 callers
Method
AuthRequestByID
(context.Context, string)
pkg/op/storage.go:16
↓ 2 callers
Function
AuthResponseCode
AuthResponseCode handles the creation of a successful authentication response using an authorization code
pkg/op/auth_request.go:501
↓ 2 callers
Function
AuthResponseFormPost
AuthResponseFormPost responds a html page that automatically submits the form which contains the auth response parameters
pkg/op/auth_request.go:649
↓ 2 callers
Function
AuthURL
AuthURL returns the auth request url (wrapping the oauth2 `AuthCodeURL`)
pkg/client/rp/relying_party.go:449
↓ 2 callers
Method
BackChannelLogoutSessionSupported
()
pkg/op/config.go:55
↓ 2 callers
Method
BackChannelLogoutSupported
()
pkg/op/config.go:54
↓ 2 callers
Function
BuildAuthResponseCallbackURL
BuildAuthResponseCallbackURL generates the callback URL for a successful authorization code response
pkg/op/auth_request.go:557
↓ 2 callers
Function
BytesToPrivateKey
(b []byte)
pkg/crypto/key.go:21
↓ 2 callers
Function
CallDeviceAccessTokenEndpointWithAuthFn
CallDeviceAccessTokenEndpointWithAuthFn calls the device access token endpoint, accepting an authFn for custom authentication.
pkg/client/client.go:330
↓ 2 callers
Function
CallDeviceAuthorizationEndpoint
CallDeviceAuthorizationEndpoint calls the device authorization endpoint.
pkg/client/client.go:285
↓ 2 callers
Function
CallEndSessionEndpoint
(ctx context.Context, request any, authFn any, caller EndSessionCaller)
pkg/client/client.go:105
↓ 2 callers
Function
CallRevokeEndpoint
(ctx context.Context, request any, authFn any, caller RevokeCaller)
pkg/client/client.go:168
↓ 2 callers
Function
CallTokenEndpointWithAuthFn
(ctx context.Context, request any, authFn any, caller TokenEndpointCaller)
pkg/client/client.go:73
↓ 2 callers
Method
CheckCookie
(r *http.Request, name string)
pkg/http/cookie.go:86
↓ 2 callers
Function
CheckNonce
(claims Claims, nonce string)
pkg/oidc/verifier.go:272
↓ 2 callers
Function
CheckSubject
(claims Claims)
pkg/oidc/verifier.go:127
↓ 2 callers
Function
ClientAssertionFormAuthorization
(assertion string)
pkg/client/jwt_profile.go:25
↓ 2 callers
Function
ClientBasicAuth
(r *http.Request, storage Storage)
pkg/op/client.go:109
↓ 2 callers
Method
ClientCredentials
(ctx context.Context, clientID, clientSecret string)
pkg/op/storage.go:81
↓ 2 callers
Method
ClientCredentialsTokenRequest
(ctx context.Context, clientID string, scopes []string)
pkg/op/storage.go:82
↓ 2 callers
Method
CodeMethodS256Supported
()
pkg/op/config.go:36
↓ 2 callers
Method
CreateAccessAndRefreshTokens
The TokenRequest parameter of CreateAccessAndRefreshTokens can be any of: * TokenRequest as returned by ClientCredentialsStorage.ClientCredentialsTok
pkg/op/storage.go:50
↓ 2 callers
Method
CreateAccessToken
The TokenRequest parameter of CreateAccessToken can be any of: * TokenRequest as returned by ClientCredentialsStorage.ClientCredentialsTokenRequest,
pkg/op/storage.go:31
↓ 2 callers
Function
CreateClientCredentialsTokenResponse
(ctx context.Context, tokenRequest TokenRequest, creator TokenCreator, client Client)
pkg/op/token_client_credentials.go:111
↓ 2 callers
Function
CreateDiscoveryConfig
(ctx context.Context, config Configuration, storage DiscoverStorage)
pkg/op/discovery.go:36
← previous
next →
201–300 of 1,804, ranked by callers