MCPcopy Create free account

hub / github.com/zitadel/oidc / functions

Functions1,804 in github.com/zitadel/oidc

↓ 3 callersMethodIDTokenLifetime
()
pkg/op/client.go:45
↓ 3 callersMethodIDTokenVerifier
IDTokenVerifier returns the verifier used for oidc id_token verification
pkg/client/rp/relying_party.go:78
↓ 3 callersFunctionIntrospectionSigAlgorithms
(c Configuration)
pkg/op/discovery.go:189
↓ 3 callersMethodIsPKCE
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 callersMethodIssuer
Issuer returns the issuer of the oidc config
pkg/client/rp/relying_party.go:47
↓ 3 callersMethodJWTProfileVerifier
(context.Context)
pkg/op/client.go:91
↓ 3 callersMethodKey
()
pkg/op/signer.go:35
↓ 3 callersFunctionNativeClient
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 callersFunctionNewAES256GCMCrypto
(key [32]byte, keyId string)
pkg/op/crypto.go:44
↓ 3 callersFunctionNewAccessTokenClaims
(issuer, subject string, audience []string, expiration time.Time, jwtid, clientID string, skew time.Duration)
pkg/oidc/token.go:107
↓ 3 callersFunctionNewAccessTokenVerifier
NewAccessTokenVerifier returns a AccessTokenVerifier suitable for access token verification.
pkg/op/verifier_access_token.go:20
↓ 3 callersFunctionNewEncoder
NewEncoder returns a schema Encoder with a registered encoder for SpaceDelimitedArray.
pkg/oidc/types.go:262
↓ 3 callersFunctionNewIDTokenClaims
(issuer, subject string, audience []string, expiration, authTime time.Time, nonce string, acr string, amr []st
pkg/oidc/token.go:181
↓ 3 callersFunctionNewIDTokenVerifier
NewIDTokenVerifier returns a oidc.Verifier suitable for ID token verification.
pkg/client/rp/verifier.go:113
↓ 3 callersFunctionNewJWTProfileVerifier
NewJWTProfileVerifier creates an oidc.Verifier for JWT Profile assertions (authorization grant and client authentication)
pkg/op/verifier_jwt_profile.go:24
↓ 3 callersFunctionNewMockClient
NewMockClient creates a new mock instance.
pkg/op/mock/client.mock.go:28
↓ 3 callersFunctionNewOpenIDProvider
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 callersFunctionNewProvider
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 callersFunctionNewSHACodeChallenge
(code string)
pkg/oidc/code_challenge.go:21
↓ 3 callersFunctionNewUserCode
(charSet []rune, charAmount, dashInterval int)
pkg/op/device.go:174
↓ 3 callersFunctionParseAuthenticatedTokenRequest
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 callersFunctionParseLocales
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 callersFunctionRegisterLegacyServer
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 callersFunctionRequestObjectSigAlgorithms
(c Configuration)
pkg/op/discovery.go:161
↓ 3 callersFunctionResponseTypes
(c Configuration)
pkg/op/discovery.go:111
↓ 3 callersMethodResponseTypes
()
pkg/op/client.go:41
↓ 3 callersFunctionRevocationSigAlgorithms
(c Configuration)
pkg/op/discovery.go:206
↓ 3 callersMethodRevokeToken
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 callersFunctionScopes
(c Configuration)
pkg/op/discovery.go:103
↓ 3 callersMethodSetIntrospectionFromToken
(ctx context.Context, userinfo *oidc.IntrospectionResponse, tokenID, subject, clientID string)
pkg/op/storage.go:135
↓ 3 callersMethodSetUserinfoFromToken
(ctx context.Context, userinfo *oidc.UserInfo, tokenID, subject, origin string)
pkg/op/storage.go:134
↓ 3 callersFunctionSigAlgorithms
(ctx context.Context, storage DiscoverStorage)
pkg/op/discovery.go:146
↓ 3 callersFunctionSign
(object any, signer jose.Signer)
pkg/crypto/sign.go:10
↓ 3 callersMethodSigner
Signer is used if the relaying party uses the JWT Profile
pkg/client/rp/relying_party.go:62
↓ 3 callersMethodSigningKey
(context.Context)
pkg/op/storage.go:67
↓ 3 callersMethodStoreDeviceAuthorization
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 callersFunctionSubjectTypes
(c Configuration)
pkg/op/discovery.go:142
↓ 3 callersFunctionSupportedClaims
(c Configuration)
pkg/op/discovery.go:227
↓ 3 callersMethodTag
()
pkg/oidc/types.go:84
↓ 3 callersMethodTerminateSession
(ctx context.Context, userID string, clientID string)
pkg/op/storage.go:53
↓ 3 callersMethodTokenEndpoint
()
pkg/client/client.go:65
↓ 3 callersMethodTokenRequestByRefreshToken
(ctx context.Context, refreshToken string)
pkg/op/storage.go:51
↓ 3 callersFunctionTokenSigAlgorithms
(c Configuration)
pkg/op/discovery.go:182
↓ 3 callersFunctionUserinfoCallback
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 callersFunctionValidDPoPJKT
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 callersFunctionValidateAuthReqIDTokenHint
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 callersFunctionValidateAuthReqPrompt
ValidateAuthReqPrompt validates the passed prompt values and sets max_age to 0 if prompt login is present
pkg/op/auth_request.go:282
↓ 3 callersFunctionValidateAuthReqRedirectURI
ValidateAuthReqRedirectURI validates the passed redirect_uri and response_type to the registered uris and client type
pkg/op/auth_request.go:337
↓ 3 callersFunctionValidateAuthReqResponseType
ValidateAuthReqResponseType validates the passed response_type to the registered response types
pkg/op/auth_request.go:414
↓ 3 callersFunctionValidateAuthReqScopes
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 callersFunctionValidateIssuerPath
(issuer *url.URL)
pkg/op/config.go:161
↓ 3 callersMethodValidateJWTProfileScopes
(ctx context.Context, userID string, scopes []string)
pkg/op/storage.go:138
↓ 3 callersFunctionVerifyIDToken
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 callersFunctionWithAllowInsecure
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 callersFunctionWithJWTProfile
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 callersFunctionWithKeyBinding
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 callersFunctionWithVerifierOpts
(opts ...VerifierOption)
pkg/client/rp/relying_party.go:368
↓ 3 callersMethodaccessToken
accessToken will store an access_token in-memory based on the provided information
example/server/storage/storage.go:645
↓ 3 callersFunctionappendClaim
(claims map[string]any, claim string, value any)
example/server/storage/storage.go:809
↓ 3 callersFunctionerrMsg
(err error)
example/server/exampleop/templates.go:19
↓ 3 callersFunctiongetRedirect
(t *testing.T, desc string, httpClient *http.Client, uri *url.URL)
pkg/client/integration_test.go:598
↓ 3 callersFunctionhtuClaim
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 callersFunctionjsonWebKeySet
(keys []Key)
pkg/op/keys.go:35
↓ 3 callersFunctionnewKeyBoundRP
(t *testing.T)
pkg/client/rp/key_binding_test.go:31
↓ 3 callersFunctionnewOAuthTokenExchange
(ctx context.Context, issuer string, authorizer func() (any, error), options ...func(source *OAuthTokenExchang
pkg/client/tokenexchange/tokenexchange.go:49
↓ 3 callersFunctionnewTestProvider
(config *op.Config)
pkg/op/op_test.go:73
↓ 3 callersFunctionrunWithRandReader
(r io.Reader, f func())
pkg/op/device_test.go:137
↓ 3 callersFunctionsignEncodeTokenClaims
(claims any)
internal/testutil/token.go:59
↓ 3 callersFunctionunauthorizedError
(w http.ResponseWriter, r *http.Request, desc string, state string, rp RelyingParty)
pkg/client/rp/relying_party.go:960
↓ 3 callersFunctionverifyKeyBindingIDToken
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 callersMethodwithClient
(handler clientHandler)
pkg/op/server_http.go:128
↓ 3 callersFunctionwithURLParam
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 callersMethodAlgorithm
()
pkg/op/signer.go:33
↓ 2 callersFunctionAuthRequestByCode
AuthRequestByCode returns the AuthRequest previously created from Storage corresponding to the auth code or an error
pkg/op/token_code.go:126
↓ 2 callersMethodAuthRequestByCode
(context.Context, string)
pkg/op/storage.go:17
↓ 2 callersMethodAuthRequestByID
(context.Context, string)
pkg/op/storage.go:16
↓ 2 callersFunctionAuthResponseCode
AuthResponseCode handles the creation of a successful authentication response using an authorization code
pkg/op/auth_request.go:501
↓ 2 callersFunctionAuthResponseFormPost
AuthResponseFormPost responds a html page that automatically submits the form which contains the auth response parameters
pkg/op/auth_request.go:649
↓ 2 callersFunctionAuthURL
AuthURL returns the auth request url (wrapping the oauth2 `AuthCodeURL`)
pkg/client/rp/relying_party.go:449
↓ 2 callersMethodBackChannelLogoutSessionSupported
()
pkg/op/config.go:55
↓ 2 callersMethodBackChannelLogoutSupported
()
pkg/op/config.go:54
↓ 2 callersFunctionBuildAuthResponseCallbackURL
BuildAuthResponseCallbackURL generates the callback URL for a successful authorization code response
pkg/op/auth_request.go:557
↓ 2 callersFunctionBytesToPrivateKey
(b []byte)
pkg/crypto/key.go:21
↓ 2 callersFunctionCallDeviceAccessTokenEndpointWithAuthFn
CallDeviceAccessTokenEndpointWithAuthFn calls the device access token endpoint, accepting an authFn for custom authentication.
pkg/client/client.go:330
↓ 2 callersFunctionCallDeviceAuthorizationEndpoint
CallDeviceAuthorizationEndpoint calls the device authorization endpoint.
pkg/client/client.go:285
↓ 2 callersFunctionCallEndSessionEndpoint
(ctx context.Context, request any, authFn any, caller EndSessionCaller)
pkg/client/client.go:105
↓ 2 callersFunctionCallRevokeEndpoint
(ctx context.Context, request any, authFn any, caller RevokeCaller)
pkg/client/client.go:168
↓ 2 callersFunctionCallTokenEndpointWithAuthFn
(ctx context.Context, request any, authFn any, caller TokenEndpointCaller)
pkg/client/client.go:73
↓ 2 callersMethodCheckCookie
(r *http.Request, name string)
pkg/http/cookie.go:86
↓ 2 callersFunctionCheckNonce
(claims Claims, nonce string)
pkg/oidc/verifier.go:272
↓ 2 callersFunctionCheckSubject
(claims Claims)
pkg/oidc/verifier.go:127
↓ 2 callersFunctionClientAssertionFormAuthorization
(assertion string)
pkg/client/jwt_profile.go:25
↓ 2 callersFunctionClientBasicAuth
(r *http.Request, storage Storage)
pkg/op/client.go:109
↓ 2 callersMethodClientCredentials
(ctx context.Context, clientID, clientSecret string)
pkg/op/storage.go:81
↓ 2 callersMethodClientCredentialsTokenRequest
(ctx context.Context, clientID string, scopes []string)
pkg/op/storage.go:82
↓ 2 callersMethodCodeMethodS256Supported
()
pkg/op/config.go:36
↓ 2 callersMethodCreateAccessAndRefreshTokens
The TokenRequest parameter of CreateAccessAndRefreshTokens can be any of: * TokenRequest as returned by ClientCredentialsStorage.ClientCredentialsTok
pkg/op/storage.go:50
↓ 2 callersMethodCreateAccessToken
The TokenRequest parameter of CreateAccessToken can be any of: * TokenRequest as returned by ClientCredentialsStorage.ClientCredentialsTokenRequest,
pkg/op/storage.go:31
↓ 2 callersFunctionCreateClientCredentialsTokenResponse
(ctx context.Context, tokenRequest TokenRequest, creator TokenCreator, client Client)
pkg/op/token_client_credentials.go:111
↓ 2 callersFunctionCreateDiscoveryConfig
(ctx context.Context, config Configuration, storage DiscoverStorage)
pkg/op/discovery.go:36
← previousnext →201–300 of 1,804, ranked by callers