MCPcopy Create free account

hub / github.com/arrikto/oidc-authservice / functions

Functions143 in github.com/arrikto/oidc-authservice

↓ 16 callersFunctionReturnMessage
(w http.ResponseWriter, statusCode int, msg string)
common/util.go:104
↓ 15 callersFunctionRequestLogger
(r *http.Request, info string)
common/util.go:60
↓ 13 callersMethodError
()
common/errors.go:16
↓ 9 callersFunctioncreateRequest
(host string, addJWT bool)
authorizer_external_test.go:33
↓ 8 callersFunctionGetBearerToken
(value string)
common/util.go:191
↓ 7 callersFunctionMustParseURL
(rawURL string)
common/util.go:167
↓ 7 callersFunctionSetTLSContext
(ctx context.Context, caBundle []byte)
common/util.go:148
↓ 7 callersFunctionStandardLogger
()
common/util.go:68
↓ 6 callersMethodClaims
(v interface{})
oidc/oidc.go:37
↓ 6 callersMethodClose
()
sessions/session.go:32
↓ 6 callersFunctionmustParseURL
(rawURL string)
e2e/e2e_test.go:512
↓ 5 callersMethodDecode
Decode creates a new UserIDTransformer using as input a JSON formatted string for rules initialization. The accepted JSON format is: { [ {"matches": "
common/transformer_userid.go:66
↓ 5 callersFunctionResolvePathReference
(u *url.URL, p string)
common/util.go:175
↓ 5 callersFunctionwaitForDeployment
( c client.Client, namespace, name string, timeout time.Duration, period time.Duration, )
e2e/e2e_test.go:397
↓ 4 callersFunctionGetUserInfo
GetUserInfo uses the token source to query the provider's user info endpoint. We reimplement UserInfo [1] instead of using the go-oidc's library UserI
oidc/oidc.go:140
↓ 4 callersFunctionInterfaceSliceToStringSlice
(in []interface{})
common/util.go:211
↓ 4 callersFunctionRevokeOIDCSession
RevokeOIDCSession revokes the given session, which is assumed to be an OIDC session, for which it also performs the necessary cleanup. TODO: In the fu
sessions/session.go:106
↓ 4 callersMethodTransform
Transform modifies the UserID based on user provided rules. This method will search the rules in order, find the first that matches the userID and rep
common/transformer_userid.go:41
↓ 4 callersFunctionlogin
login performs an OIDC login and return the session cookie
e2e/e2e_test.go:299
↓ 4 callersFunctionportForward
(kind, namespace, name, hostPort, targetPort string, stopCh chan struct{})
e2e/e2e_test.go:487
↓ 3 callersFunctionNewConfig
(clientID string)
oidc/oidc.go:42
↓ 3 callersFunctionTokenSource
TokenSource is a wrapper around oauth2.Config.TokenSource that additionally returns a boolean indicator for a token refresh.
oidc/oidc.go:116
↓ 3 callersMethodVerifier
(config *oidc.Config)
oidc/oidc.go:39
↓ 3 callersFunctiondownload_to
(url, output_path)
hack/binary_deps.py:27
↓ 3 callersFunctionensureInSlice
(elem string, slice []string)
common/settings.go:154
↓ 3 callersFunctiontrimSpaceFromStringSliceElements
(slice []string)
common/settings.go:143
↓ 2 callersMethodAuthorize
(r *http.Request, userinfo user.Info)
authorizer_groups.go:19
↓ 2 callersFunctionDoRequest
(ctx context.Context, req *http.Request)
common/util.go:181
↓ 2 callersFunctionParseConfig
()
common/settings.go:85
↓ 2 callersFunctionParseJWT
We copy the parseJWT() from: https://github.com/coreos/go-oidc/blob/v3/oidc/verify.go to perform one of the necessary local tests for the JWT authenti
common/util.go:247
↓ 2 callersFunctionParseUserInfo
ParseUserInfo unmarshals the response of the UserInfo endpoint and enforces boolean value for the EmailVerified claim.
oidc/oidc.go:74
↓ 2 callersFunctionSessionFromID
SessionFromID returns a session which has its key in a header. XXX: Because the session library we use doesn't support getting a session by key, we ne
sessions/session.go:42
↓ 2 callersFunctionSessionFromRequest
SessionFromRequest looks for a session id in a header and a cookie, in that order. If it doesn't find a valid session in the header, it will then chec
sessions/session.go:59
↓ 2 callersMethodStart
(addr string)
web_server.go:33
↓ 2 callersFunctionUserInfoToHeaders
(info user.Info, opts *HTTPHeaderOpts, transformer *UserIDTransformer)
common/util.go:199
↓ 2 callersMethodauthenticate
authenticate is the core function of AuthService. It implements the following steps: 1. attempt to authenticate the user who is performing the examine
server.go:122
↓ 2 callersFunctioncreateNonce
(length int)
common/util.go:132
↓ 2 callersFunctiondownload_from_tar
(url, output_dir, paths_inside_tar=[], flatten=True)
hack/binary_deps.py:34
↓ 2 callersMethodgetRequestInfo
getRequestInfo creates a AuthorizationRequestInfo object for the current context.
authorizer_external.go:108
↓ 2 callersMethodgetUserInfo
getUserInfo creates a AuthorizationUserInfo object for the current context.
authorizer_external.go:85
↓ 2 callersFunctionmain
()
hack/binary_deps.py:51
↓ 2 callersFunctionnewBoltDBSessionStore
newBoltDBSessionStore returns a session store backed by BoltDB. The database is stored in the given path and keys are stored in the given bucket. If t
sessions/boltdb.go:39
↓ 2 callersFunctionnewGroupsAuthorizer
(allowlist []string)
authorizer_groups.go:26
↓ 2 callersFunctionnewRedisSessionStore
(addr, password, keyPrefix string, db int)
sessions/redis.go:12
↓ 2 callersMethodperformLocalChecks
Perform local checks for the issuer and the audiences
authenticators/jwt.go:103
↓ 2 callersMethodretrieveUserIDGroupsClaims
Retrieve the USERID_CLAIM and the GROUPS_CLAIM from the JWT access token
authenticators/jwt.go:139
↓ 2 callersMethodretrieveUserIDGroupsClaims
Retrieve the USERID_CLAIM and the GROUPS_CLAIM from the /userinfo response
authenticators/opaque.go:78
↓ 2 callersFunctionrevokeSession
revokeSession revokes the given session.
sessions/session.go:86
↓ 2 callersFunctionrevokeToken
revokeToken takes care of revoking an access/refresh token to the IdP. The revocation procedure is described in RFC7009: https://tools.ietf.org/html/r
oidc/revoke.go:76
↓ 2 callersFunctionsiteHandler
siteHandler returns an http.HandlerFunc that serves a given template
web_server.go:90
↓ 2 callersFunctionvalidAccessTokenAuthn
validAccessTokenAuthn() examines if the admins have configured a valid value for the ACCESS_TOKEN_AUTHN envvar.
common/settings.go:166
↓ 2 callersFunctionwaitForStatefulSet
( c client.Client, namespace, name string, timeout time.Duration, period time.Duration, )
e2e/e2e_test.go:366
↓ 2 callersMethodwhitelistMiddleware
whitelistMiddleware is a middleware that - Allows all requests that match the whitelist - If the server is ready, forwards requests to be evaluated fu
server.go:541
↓ 1 callersMethodAuthenticateRequest
(r *http.Request)
authenticators/jwt.go:34
↓ 1 callersMethodAuthorize
(r *http.Request, userinfo user.Info)
authorizer_external.go:51
↓ 1 callersFunctionContains
This function examines if there is at least one common element between two []string objects. The JWT authenticator uses this function to verify that a
common/util.go:263
↓ 1 callersFunctionCreateState
CreateState creates the state parameter from the incoming request, stores it in the session store and sets a cookie with the session key. It returns t
sessions/state.go:40
↓ 1 callersMethodEndpoint
()
oidc/oidc.go:38
↓ 1 callersMethodError
()
common/errors.go:33
↓ 1 callersMethodError
()
common/errors.go:49
↓ 1 callersMethodGetCacheKey
(r *http.Request)
authenticators/authenticator.go:12
↓ 1 callersFunctionInitiateSessionStores
InitiateSessionStores initiates both the required stores for the: * users sessions * OIDC states Based on the configured session store (boltdb, or red
sessions/session.go:160
↓ 1 callersFunctionNewKubernetesAuthenticator
(c *rest.Config, aud []string)
authenticators/kubernetes.go:25
↓ 1 callersFunctionNewProvider
(ctx context.Context, u *url.URL)
oidc/oidc.go:46
↓ 1 callersFunctionNewSession
(store Store, name string)
sessions/session.go:35
↓ 1 callersFunctionRealPath
(path string)
common/util.go:48
↓ 1 callersFunctionReturnHTML
(w http.ResponseWriter, statusCode int, html string)
common/util.go:95
↓ 1 callersFunctionReturnJSONMessage
(w http.ResponseWriter, statusCode int, jsonMsg interface{})
common/util.go:113
↓ 1 callersFunctionRevocationEndpoint
RevocationEndpoint parses the OIDC Provider claims from the discovery document and tries to find the revocation_endpoint.
oidc/revoke.go:19
↓ 1 callersFunctionRevokeTokens
RevokeTokens is a helper that takes an oauth2.Token and revokes the access and refresh tokens. If no tokens are found, it succeeds.
oidc/revoke.go:34
↓ 1 callersFunctionSaveToken
SaveToken triggers oidc.TokenSource to refresh access and refresh token if they have expired and saves them to the session
sessions/session.go:133
↓ 1 callersFunctionSetLogLevel
(level string)
common/util.go:72
↓ 1 callersFunctionVerifyState
VerifyState gets the state from the cookie 'initState' saved. It also gets the state from an http param and: 1. Confirms the two values match (CSRF ch
sessions/state.go:80
↓ 1 callersMethodapply
apply does the actual transformation to userID.
common/transformer_userid.go:18
↓ 1 callersFunctionapplyKustomizations
(kustomizations []string)
e2e/e2e_test.go:460
↓ 1 callersMethodauthCodeFlowAuthenticationRequest
authCodeFlowAuthenticationRequest initiates an OIDC Authorization Code flow
server.go:307
↓ 1 callersMethodauthorized
authorize tries out all of the available authorizers. If at least one of them does not allow the user to make the request then AuthService denies the
server.go:234
↓ 1 callersFunctioncreateK3DCluster
()
e2e/e2e_test.go:428
↓ 1 callersFunctiondeleteK3DCluster
()
e2e/e2e_test.go:456
↓ 1 callersMethoddoRequest
doRequest does the request to the external authorization server.
authorizer_external.go:125
↓ 1 callersMethodenabledAuthenticator
enabledAuthenticator indicates if the examined authenticator is enabled.
server.go:446
↓ 1 callersMethodgetCachedUser
getCachedUser returns: * the UserInfo * the cacheKey if there is an entry in the cache for the examined user. Otherwise, it returns an empty string fo
server.go:277
↓ 1 callersFunctiongetEnvsFromPrefix
(prefix string)
common/settings.go:131
↓ 1 callersFunctiongetUserIP
(r *http.Request)
common/util.go:86
↓ 1 callersMethodisApplicable
isApplicable checks if the rule is relevant for the userID.
common/transformer_userid.go:16
↓ 1 callersFunctionlistTemplates
(dir string)
web_server.go:99
↓ 1 callersFunctionnewState
(firstVisitedURL string)
sessions/state.go:30
↓ 1 callersFunctionparse_args
()
hack/binary_deps.py:20
↓ 1 callersFunctionreadiness
readiness is the handler that checks if the authservice is ready for serving requests. Currently, it checks if the provider is nil, meaning that the s
server.go:522
↓ 1 callersFunctionstartFakeOIDCProvider
(addr string)
oidc/oidc_test.go:18
↓ 1 callersMethodtryAuthenticators
tryAuthenticators will iterate over the available enabled authenticators. If one of them manages to authenticate the user who is making the requester
server.go:167
↓ 1 callersFunctionvalidLogLevel
validLogLevel() examines if the admins have configured a valid value for the LOG_LEVEL envvar.
common/settings.go:203
↓ 1 callersFunctionvalidSessionStoreType
validSessionStoreType() examines if the admins have configured a valid value for the SESSION_STORE_TYPE envvar.
common/settings.go:186
MethodAuthenticateRequest
(r *http.Request)
authenticators/idtoken.go:21
MethodAuthenticateRequest
(r *http.Request)
authenticators/session.go:38
MethodAuthenticateRequest
(r *http.Request)
authenticators/opaque.go:23
MethodAuthenticateRequest
(r *http.Request)
authenticators/kubernetes.go:36
MethodAuthorize
(r *http.Request, userinfo user.Info)
authorizer_groups.go:40
MethodClaims
Claims unmarshals the raw JSON object claims into the provided object.
oidc/oidc.go:65
MethodClose
()
sessions/boltdb.go:89
next →1–100 of 143, ranked by callers