- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 250 for Authenticators (0.43 sec)
-
staging/src/k8s.io/apiserver/pkg/authentication/request/websocket/protocol_test.go
"testing" "k8s.io/apiserver/pkg/authentication/authenticator" "k8s.io/apiserver/pkg/authentication/user" ) func TestAuthenticateRequest(t *testing.T) { auth := NewProtocolAuthenticator(authenticator.TokenFunc(func(ctx context.Context, token string) (*authenticator.Response, bool, error) { if token != "token" { t.Errorf("unexpected token: %s", token) } return &authenticator.Response{User: &user.DefaultInfo{Name: "user"}}, true, nil
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 08 21:43:39 UTC 2023 - 8.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/group/group_adder.go
} // NewGroupAdder wraps a request authenticator, and adds the specified groups to the returned user when authentication succeeds func NewGroupAdder(auth authenticator.Request, groups []string) authenticator.Request { return &GroupAdder{auth, groups} } func (g *GroupAdder) AuthenticateRequest(req *http.Request) (*authenticator.Response, bool, error) { r, ok, err := g.Authenticator.AuthenticateRequest(req) if err != nil || !ok {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 11 20:04:50 UTC 2022 - 1.8K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/authenticator/JavaNetAuthenticatorTest.kt
* See the License for the specific language governing permissions and * limitations under the License. */ package okhttp3.internal.authenticator import java.net.Authenticator import java.net.InetAddress import junit.framework.TestCase.assertNull import okhttp3.FakeDns import okhttp3.Protocol.HTTP_2 import okhttp3.Request import okhttp3.Response
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2.7K bytes - Viewed (0) -
pkg/kubelet/server/auth.go
authorizer.Authorizer } // NewKubeletAuth returns a kubelet.AuthInterface composed of the given authenticator, attribute getter, and authorizer func NewKubeletAuth(authenticator authenticator.Request, authorizerAttributeGetter authorizer.RequestAttributesGetter, authorizer authorizer.Authorizer) AuthInterface { return &KubeletAuth{authenticator, authorizerAttributeGetter, authorizer} }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 19 18:09:38 UTC 2024 - 4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/filters/authentication_test.go
} }), authenticator.RequestFunc(func(req *http.Request) (*authenticator.Response, bool, error) { if req.Header.Get("Authorization") == "Something" { return &authenticator.Response{User: &user.DefaultInfo{Name: "user"}, Audiences: authenticator.Audiences(tc.respAuds)}, true, nil } return nil, false, errors.New("Authorization header is missing.") }),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 20.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/filters/authentication.go
func WithAuthentication(handler http.Handler, auth authenticator.Request, failed http.Handler, apiAuds authenticator.Audiences, requestHeaderConfig *authenticatorfactory.RequestHeaderConfig) http.Handler { return withAuthentication(handler, auth, failed, apiAuds, requestHeaderConfig, recordAuthenticationMetrics) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 12 20:54:07 UTC 2023 - 6.4K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/AuthScheme.groovy
securityHandler.realmName = TestUserRealm.REALM_NAME securityHandler.addConstraintMapping(constraintMapping) securityHandler.authenticator = authenticator securityHandler.loginService = realm return securityHandler } void addConstraint(ConstraintSecurityHandler securityHandler, String path) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 5.7K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/authenticatorfactory/loopback.go
import ( "k8s.io/apiserver/pkg/authentication/authenticator" "k8s.io/apiserver/pkg/authentication/request/bearertoken" "k8s.io/apiserver/pkg/authentication/token/tokenfile" "k8s.io/apiserver/pkg/authentication/user" ) // NewFromTokens returns an authenticator.Request or an error func NewFromTokens(tokens map[string]*user.DefaultInfo, audiences authenticator.Audiences) authenticator.Request {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 19 16:54:11 UTC 2021 - 1.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/token/cache/cached_token_authenticator.go
remove(key string) } // New returns a token authenticator that caches the results of the specified authenticator. A ttl of 0 bypasses the cache. func New(authenticator authenticator.Token, cacheErrs bool, successTTL, failureTTL time.Duration) authenticator.Token { return newWithClock(authenticator, cacheErrs, successTTL, failureTTL, clock.RealClock{}) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jul 03 16:16:51 UTC 2023 - 9.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/authenticator/interfaces.go
return f(req) } // Response is the struct returned by authenticator interfaces upon successful // authentication. It contains information about whether the authenticator // authenticated the request, information about the context of the // authentication, and information about the authenticated user. type Response struct { // Audiences is the set of audiences the authenticator was able to validate
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 12 00:55:47 UTC 2020 - 2.3K bytes - Viewed (0)