MCPcopy Create free account

hub / github.com/zitadel/oidc / functions

Functions1,804 in github.com/zitadel/oidc

↓ 112 callersMethodStart
(ctx context.Context, _ string)
internal/otel/shim.go:16
↓ 111 callersMethodEnd
()
internal/otel/shim.go:20
↓ 73 callersMethodWithDescription
(desc string, args ...any)
pkg/oidc/error.go:203
↓ 46 callersMethodError
()
pkg/oidc/error.go:160
↓ 43 callersMethodWithParent
(err error)
pkg/oidc/error.go:186
↓ 41 callersMethodStorage
()
pkg/op/op.go:105
↓ 29 callersMethodString
()
pkg/oidc/types.go:92
↓ 24 callersMethodstorageFromContext
(ctx context.Context)
example/server/storage/storage_dynamic.go:275
↓ 23 callersMethodGetClientByClientID
GetClientByClientID loads a Client. The returned Client is never cached and is only used to handle the current request.
pkg/op/storage.go:129
↓ 22 callersMethodEncode
(src any, dst map[string][]string)
pkg/http/http.go:26
↓ 21 callersMethodString
()
pkg/op/applicationtype_enumer.go:20
↓ 19 callersMethodDecode
(dst any, src map[string][]string)
pkg/http/http.go:22
↓ 18 callersMethodError
()
pkg/op/error.go:161
↓ 16 callersFunctionIssuerFromContext
IssuerFromContext reads the issuer from the context (set by an IssuerInterceptor) it will return an empty string if not found
pkg/op/context.go:40
↓ 16 callersFunctionWriteError
WriteError asserts for a [StatusError] containing an [oidc.Error]. If no `StatusError` is found, the status code will default to [http.StatusBadReques
pkg/op/error.go:183
↓ 15 callersMethodGetID
()
pkg/op/client.go:36
↓ 14 callersFunctionFromTime
(tt time.Time)
pkg/oidc/types.go:282
↓ 14 callersMethodGetScopes
()
pkg/op/token.go:20
↓ 14 callersMethodMarshalJSON
MarshalJSON implements the json.Marshaler interface for ApplicationType
pkg/op/applicationtype_enumer.go:89
↓ 14 callersFunctionNewResponse
NewResponse creates a new response for data, without custom headers.
pkg/op/server.go:219
↓ 13 callersMethodEXPECT
EXPECT returns an object that allows the caller to indicate expected use.
pkg/op/mock/signer.mock.go:98
↓ 13 callersFunctionNewStatusError
NewStatusError sets the parent and statusCode to a new StatusError. It is recommended for parent to be an [oidc.Error]. Typically, implementations sh
pkg/op/error.go:143
↓ 13 callersFunctionunimplementedGrantError
(gt oidc.GrantType)
pkg/op/server.go:270
↓ 13 callersMethodwriteOut
(w http.ResponseWriter)
pkg/op/server.go:226
↓ 12 callersMethodOAuthConfig
OAuthConfig returns the oauth2 Config
pkg/client/rp/relying_party.go:44
↓ 12 callersFunctiondecodeRequest
(decoder httphelper.Decoder, r *http.Request, postOnly bool)
pkg/op/server_http.go:511
↓ 12 callersFunctionunimplementedError
(r interface{ path() string })
pkg/op/server.go:265
↓ 11 callersMethodAuthMethodPrivateKeyJWTSupported
()
pkg/op/config.go:37
↓ 11 callersMethodDecoder
()
pkg/op/op.go:106
↓ 11 callersFunctionDefaultToServerError
DefaultToServerError checks if the error is an Error if not the provided error will be wrapped into a ServerError
pkg/oidc/error.go:214
↓ 10 callersMethodAsTime
()
pkg/oidc/types.go:275
↓ 10 callersMethodHandlerFunc
(next http.HandlerFunc)
pkg/op/context.go:32
↓ 10 callersFunctionRequestError
(w http.ResponseWriter, r *http.Request, err error, _ *slog.Logger)
pkg/op/error.go:70
↓ 10 callersMethodValidate
()
pkg/op/endpoint.go:40
↓ 10 callersFunctionnewClient
(kind clientType)
pkg/op/server_http_test.go:66
↓ 9 callersMethodEXPECT
EXPECT returns an object that allows the caller to indicate expected use.
pkg/op/mock/configuration.mock.go:35
↓ 9 callersMethodGetClientID
()
pkg/op/token.go:196
↓ 9 callersFunctionNewMockConfiguration
NewMockConfiguration creates a new mock instance.
pkg/op/mock/configuration.mock.go:28
↓ 9 callersFunctionrunWebServerTest
(t *testing.T, handler http.HandlerFunc, r *http.Request, want webServerResult)
pkg/op/server_http_test.go:221
↓ 8 callersMethodEncoder
()
pkg/op/op.go:107
↓ 8 callersMethodIs
(err error)
pkg/op/error.go:169
↓ 8 callersMethodIs
(target error)
pkg/oidc/error.go:175
↓ 8 callersFunctionNewMockStorage
NewMockStorage creates a new mock instance.
pkg/op/mock/storage.mock.go:30
↓ 8 callersFunctionNewRelyingPartyOIDC
NewRelyingPartyOIDC creates an (OIDC) RelyingParty with the given issuer, clientID, clientSecret, redirectURI, scopes and possible configOptions it wi
pkg/client/rp/relying_party.go:242
↓ 8 callersFunctionNewStorage
(userStore UserStore)
example/server/storage/storage.go:92
↓ 8 callersFunctionNewUserStore
(issuer string)
example/server/storage/user.go:59
↓ 8 callersMethodServeHTTP
(w http.ResponseWriter, r *http.Request)
pkg/op/server_http.go:94
↓ 8 callersFunctionmergeAndMarshalClaims
mergeAndMarshalClaims merges registered and the custom claims map into a single JSON object. Registered fields overwrite custom claims.
pkg/oidc/util.go:12
↓ 8 callersFunctionunmarshalJSONMulti
unmarshalJSONMulti unmarshals the same JSON data into multiple destinations. Each destination must be a pointer, as per json.Unmarshal rules. Returns
pkg/oidc/util.go:47
↓ 7 callersMethodApplicationType
()
pkg/op/client.go:39
↓ 7 callersMethodAuthMethod
()
pkg/op/client.go:40
↓ 7 callersMethodAuthMethodPostSupported
()
pkg/op/config.go:35
↓ 7 callersMethodAuthorizationEndpoint
()
pkg/op/config.go:25
↓ 7 callersMethodAuthorizeClientIDSecret
(ctx context.Context, clientID, clientSecret string)
pkg/op/storage.go:130
↓ 7 callersFunctionCreateAccessToken
CreateAccessToken creates an access token and may return a refresh token from storage. This function always creates the access token using the ID retu
pkg/op/token.go:114
↓ 7 callersMethodCreateAuthRequest
(context.Context, *oidc.AuthRequest, string)
pkg/op/storage.go:15
↓ 7 callersMethodEXPECT
EXPECT returns an object that allows the caller to indicate expected use.
pkg/op/mock/storage.mock.go:37
↓ 7 callersMethodGetSubject
()
pkg/oidc/verifier.go:19
↓ 7 callersMethodIsRequestAware
()
pkg/http/cookie.go:198
↓ 7 callersFunctionNewMockAuthorizer
NewMockAuthorizer creates a new mock instance.
pkg/op/mock/authorizer.mock.go:29
↓ 7 callersFunctionParseToken
(tokenString string, claims any)
pkg/oidc/verifier.go:114
↓ 7 callersMethodRelative
()
pkg/op/endpoint.go:21
↓ 7 callersMethodSaveAuthCode
(context.Context, string, string)
pkg/op/storage.go:18
↓ 7 callersFunctionSignedJWTProfileAssertion
(clientID string, audience []string, expiration time.Duration, signer jose.Signer)
pkg/client/client.go:233
↓ 7 callersFunctionkeyBindingRP
(rp RelyingParty)
pkg/client/rp/key_binding.go:180
↓ 7 callersFunctionnewClientRequest
(r *http.Request, data *T, client Client)
pkg/op/server.go:192
↓ 7 callersFunctionrunWebServerClientTest
(t *testing.T, handler func(http.ResponseWriter, *http.Request, Client), r *http.Request, client Client, want
pkg/op/server_http_test.go:781
↓ 6 callersMethodAbsolute
(host string)
pkg/op/endpoint.go:28
↓ 6 callersFunctionAuthRequestError
(w http.ResponseWriter, r *http.Request, authReq ErrAuthRequest, err error, authorizer Authorizer)
pkg/op/error.go:29
↓ 6 callersFunctionCheckSignature
(ctx context.Context, token string, payload []byte, claims ClaimsSignature, supportedSigAlgs []string, set Key
pkg/oidc/verifier.go:199
↓ 6 callersFunctionContextWithIssuer
ContextWithIssuer returns a new context with issuer set to it.
pkg/op/context.go:46
↓ 6 callersMethodCookieHandler
CookieHandler returns a http cookie handler used for various state transfer cookies
pkg/client/rp/relying_party.go:53
↓ 6 callersMethodDecrypt
(string)
pkg/op/crypto.go:20
↓ 6 callersFunctionDefaultAZPVerifier
DefaultAZPVerifier implements `AZPVerifier` returning an error if the azp claim is set and doesn't match the clientID.
pkg/oidc/verifier.go:163
↓ 6 callersMethodGetAudience
()
pkg/oidc/verifier.go:20
↓ 6 callersMethodHttpClient
()
pkg/client/client.go:147
↓ 6 callersMethodHttpClient
HttpClient returns an http client used for calls to the openid provider, e.g. calling token endpoint
pkg/client/rp/relying_party.go:56
↓ 6 callersMethodKeyBindingThumbprint
()
pkg/client/rp/key_binding.go:67
↓ 6 callersMethodLoginURL
(string)
pkg/op/client.go:43
↓ 6 callersFunctionNewEndpoint
(path string)
pkg/op/endpoint.go:13
↓ 6 callersFunctionNewLocale
(tag language.Tag)
pkg/oidc/types.go:80
↓ 6 callersFunctionNewSignerFromPrivateKeyByte
(key []byte, keyID string)
pkg/client/client.go:221
↓ 6 callersFunctionNewStorage
(t *testing.T)
pkg/op/mock/storage.mock.impl.go:15
↓ 6 callersMethodPublic
()
pkg/client/rp/key_binding.go:139
↓ 6 callersFunctionRegisterClients
RegisterClients enables you to register clients for the example implementation there are some clients (web and native) to try out different cases add
example/server/storage/client.go:136
↓ 6 callersMethodSetCookie
(w http.ResponseWriter, name, value string)
pkg/http/cookie.go:157
↓ 6 callersFunctionSetupServer
SetupServer creates an OIDC server with Issuer=http://localhost:<port> Use one of the pre-made clients in storage/clients.go or register a new one.
example/server/exampleop/op.go:33
↓ 6 callersMethodTokenEndpoint
()
pkg/op/config.go:26
↓ 6 callersFunctionValidateGrantType
ValidateGrantType ensures that the requested grant_type is allowed by the client
pkg/op/token_request.go:207
↓ 6 callersFunctionVerifyJWTAssertion
VerifyJWTAssertion verifies the assertion string from JWT Profile (authorization grant and client authentication) checks audience, exp, iat, signatur
pkg/op/verifier_jwt_profile.go:65
↓ 6 callersFunctionWebClient
WebClient will create a client of type web, which will always use Basic Auth and allow the use of refresh tokens user-defined redirectURIs may include
example/server/storage/client.go:174
↓ 6 callersFunctionmustECKey
(t *testing.T, c elliptic.Curve)
pkg/client/rp/key_binding_test.go:24
↓ 6 callersFunctionnewRequest
(r *http.Request, data *T)
pkg/op/server.go:171
↓ 5 callersFunctionAccessTokenTypeString
AccessTokenTypeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
pkg/op/applicationtype_enumer.go:218
↓ 5 callersFunctionApplicationTypeString
ApplicationTypeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
pkg/op/applicationtype_enumer.go:55
↓ 5 callersFunctionAsStatusError
AsStatusError unwraps a StatusError from err and returns it unmodified if found. If no StatusError was found, a new one is returned with statusCode se
pkg/op/error.go:154
↓ 5 callersFunctionAuthResponseURL
AuthResponseURL encodes the authorization response (successful and error) and sets it as query or fragment values depending on the response_mode and r
pkg/op/auth_request.go:619
↓ 5 callersFunctionAuthURLHandler
AuthURLHandler extends the `AuthURL` method with an http redirect handler including handling setting cookie for secure `state` transfer. Custom parame
pkg/client/rp/relying_party.go:463
↓ 5 callersFunctionAuthorizeClientIDSecret
AuthorizeClientIDSecret authorizes a client by validating the client_id and client_secret (Basic Auth and POST)
pkg/op/token_request.go:155
↓ 5 callersFunctionCheckExpiration
(claims Claims, offset time.Duration)
pkg/oidc/verifier.go:245
next →1–100 of 1,804, ranked by callers