- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 559 for Authorize (0.14 sec)
-
staging/src/k8s.io/apiserver/pkg/authorization/authorizerfactory/builtin.go
"k8s.io/apiserver/pkg/authorization/authorizer" ) // alwaysAllowAuthorizer is an implementation of authorizer.Attributes // which always says yes to an authorization request. // It is useful in tests and when using kubernetes in an open manner. type alwaysAllowAuthorizer struct{} func (alwaysAllowAuthorizer) Authorize(ctx context.Context, a authorizer.Attributes) (authorized authorizer.Decision, reason string, err error) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Sep 24 15:14:54 UTC 2019 - 3.2K bytes - Viewed (0) -
plugin/pkg/auth/authorizer/node/node_authorizer.go
} return r.authorize(nodeName, startingType, attrs) } func (r *NodeAuthorizer) authorize(nodeName string, startingType vertexType, attrs authorizer.Attributes) (authorizer.Decision, string, error) { if len(attrs.GetName()) == 0 { klog.V(2).Infof("NODE DENY: '%s' %#v", nodeName, attrs) return authorizer.DecisionNoOpinion, "No Object name found", nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 21:22:55 UTC 2024 - 16K bytes - Viewed (0) -
pkg/registry/rbac/escalation_check.go
)) } return decision == authorizer.DecisionAllow } // BindingAuthorized returns true if the user associated with the context is explicitly authorized to bind the specified roleRef func BindingAuthorized(ctx context.Context, roleRef rbac.RoleRef, bindingNamespace string, a authorizer.Authorizer) bool { if a == nil { return false }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Sep 24 15:14:54 UTC 2019 - 4.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authorization/cel/metrics.go
RecordAuthorizationMatchConditionEvaluation(ctx context.Context, authorizerType, authorizerName string, elapsed time.Duration) // RecordAuthorizationMatchConditionEvaluationFailure increments if any evaluation error was encountered evaluating matchConditions for an Authorize() call to the given authorizer
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 22:41:27 UTC 2024 - 4.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authorization/metrics/metrics.go
decision, reason, err := a.delegate.Authorize(ctx, attributes) switch decision { case authorizer.DecisionNoOpinion: // non-terminal, not reported case authorizer.DecisionAllow: // matches SubjectAccessReview status.allowed field name RecordAuthorizationDecision(a.authorizerType, a.authorizerName, "allowed") case authorizer.DecisionDeny:
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Feb 16 13:20:59 UTC 2024 - 2.7K bytes - Viewed (0) -
tests/test_security_oauth2_authorization_code_bearer_description.py
from fastapi import FastAPI, Security from fastapi.security import OAuth2AuthorizationCodeBearer from fastapi.testclient import TestClient app = FastAPI() oauth2_scheme = OAuth2AuthorizationCodeBearer( authorizationUrl="authorize", tokenUrl="token", description="OAuth2 Code Bearer", auto_error=True, ) @app.get("/items/") async def read_items(token: Optional[str] = Security(oauth2_scheme)): return {"token": token}
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 2.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authorization/authorizer/interfaces.go
// GetPath returns the path of the request GetPath() string } // Authorizer makes an authorization decision based on information gained by making // zero or more calls to methods of the Attributes interface. It returns nil when an action is // authorized, otherwise it returns an error. type Authorizer interface { Authorize(ctx context.Context, a Attributes) (authorized Decision, reason string, err error) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 06 14:36:14 UTC 2023 - 4.8K bytes - Viewed (0) -
pkg/config/analysis/analyzers/testdata/envoy-filter-patch-operation.yaml
"lua_cluster", { [":method"] = "POST", [":path"] = "/acl", [":authority"] = "internal.org.net" }, "authorize call", 5000) end # The second patch adds the cluster that is referenced by the Lua code # cds match is omitted as a new cluster is being added - applyTo: CLUSTER match:
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 31 19:38:42 UTC 2022 - 5K bytes - Viewed (0) -
tests/test_security_oauth2_authorization_code_bearer.py
from fastapi import FastAPI, Security from fastapi.security import OAuth2AuthorizationCodeBearer from fastapi.testclient import TestClient app = FastAPI() oauth2_scheme = OAuth2AuthorizationCodeBearer( authorizationUrl="authorize", tokenUrl="token", auto_error=True ) @app.get("/items/") async def read_items(token: Optional[str] = Security(oauth2_scheme)): return {"token": token} client = TestClient(app)
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 2.3K bytes - Viewed (0) -
pkg/config/analysis/analyzers/testdata/relative-envoy-filter-operation.yaml
"lua_cluster", { [":method"] = "POST", [":path"] = "/acl", [":authority"] = "internal.org.net" }, "authorize call", 5000) end # The second patch adds the cluster that is referenced by the Lua code # cds match is omitted as a new cluster is being added - applyTo: CLUSTER match:
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 31 19:38:42 UTC 2022 - 6.1K bytes - Viewed (0)