Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 144 for Authorize (0.25 sec)

  1. samples/slack/src/main/java/okhttp3/slack/SlackClient.java

      /** Guarded by this. */
      private OAuthSession session;
    
      public SlackClient(SlackApi slackApi) {
        this.slackApi = slackApi;
      }
    
      /** Shows a browser URL to authorize this app to act as this user. */
      public void requestOauthSession(String scopes, String team) throws Exception {
        if (sessionFactory == null) {
          sessionFactory = new OAuthSessionFactory(slackApi);
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Jan 12 03:31:36 UTC 2019
    - 3.4K bytes
    - Viewed (0)
  2. plugin/pkg/admission/certificates/approval/admission_test.go

    	verb        string
    	allowedName string
    	decision    authorizer.Decision
    	err         error
    }
    
    func (f fakeAuthorizer) Authorize(ctx context.Context, a authorizer.Attributes) (authorizer.Decision, string, error) {
    	if f.err != nil {
    		return f.decision, "forced error", f.err
    	}
    	if a.GetVerb() != f.verb {
    		return authorizer.DecisionDeny, fmt.Sprintf("unrecognised verb '%s'", a.GetVerb()), nil
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 27 15:50:14 UTC 2020
    - 6.3K bytes
    - Viewed (0)
  3. pilot/pkg/features/security.go

    	XDSAuth = env.Register("XDS_AUTH", true,
    		"If true, will authenticate XDS clients.").Get()
    
    	EnableXDSIdentityCheck = env.Register(
    		"PILOT_ENABLE_XDS_IDENTITY_CHECK",
    		true,
    		"If enabled, pilot will authorize XDS clients, to ensure they are acting only as namespaces they have permissions for.",
    	).Get()
    
    	// TODO: Move this to proper API.
    	trustedGatewayCIDR = env.Register(
    		"TRUSTED_GATEWAY_CIDR",
    		"",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Jan 13 03:50:59 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/caching_authorizer_test.go

    				},
    				{
    					decision: authorizer.DecisionDeny,
    					reason:   "test reason beta",
    					error:    fmt.Errorf("test error beta"),
    				},
    			},
    		},
    	} {
    		t.Run(tc.name, func(t *testing.T) {
    			var misses int
    			frontend := newCachingAuthorizer(func() authorizer.Authorizer {
    				return authorizer.AuthorizerFunc(func(_ context.Context, attributes authorizer.Attributes) (authorizer.Decision, string, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 12 18:58:24 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/metrics_test.go

    			if err != nil {
    				t.Error("failed to create client")
    				return
    			}
    
    			attr := authorizer.AttributesRecord{User: &user.DefaultInfo{}}
    			_, _, err = wh.Authorize(ctx, attr)
    			if scenario.wantErr {
    				if err == nil {
    					t.Errorf("expected error making authorization request: %v", err)
    				}
    			}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 19:01:15 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/admission/initializer/initializer_test.go

    // TestAuthorizer is a test stub that fulfills the WantsAuthorizer interface.
    type TestAuthorizer struct{}
    
    func (t *TestAuthorizer) Authorize(ctx context.Context, a authorizer.Attributes) (authorized authorizer.Decision, reason string, err error) {
    	return authorizer.DecisionNoOpinion, "", nil
    }
    
    func TestRESTMapperAdmissionPlugin(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  7. plugin/pkg/admission/certificates/signing/admission_test.go

    	verb        string
    	allowedName string
    	decision    authorizer.Decision
    	err         error
    }
    
    func (f fakeAuthorizer) Authorize(ctx context.Context, a authorizer.Attributes) (authorizer.Decision, string, error) {
    	if f.err != nil {
    		return f.decision, "forced error", f.err
    	}
    	if a.GetVerb() != f.verb {
    		return authorizer.DecisionDeny, fmt.Sprintf("unrecognised verb '%s'", a.GetVerb()), nil
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 28 16:20:40 UTC 2020
    - 8.9K bytes
    - Viewed (0)
  8. samples/slack/src/main/java/okhttp3/slack/SlackApi.java

      }
    
      /** See https://api.slack.com/docs/oauth. */
      public HttpUrl authorizeUrl(String scopes, HttpUrl redirectUrl, ByteString state, String team) {
        HttpUrl.Builder builder = baseUrl.newBuilder("/oauth/authorize")
            .addQueryParameter("client_id", clientId)
            .addQueryParameter("scope", scopes)
            .addQueryParameter("redirect_uri", redirectUrl.toString())
            .addQueryParameter("state", state.base64());
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Fri Jul 06 19:30:55 UTC 2018
    - 4.4K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/security/first-steps.md

    You will see something like this:
    
    <img src="/img/tutorial/security/image01.png">
    
    !!! check "Authorize button!"
        You already have a shiny new "Authorize" button.
    
        And your *path operation* has a little lock in the top-right corner that you can click.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon Jun 03 01:48:20 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  10. pkg/kubeapiserver/authorizer/config.go

    		}
    		seenModes.Insert(authorizer.Type)
    
    		expectedName := GetNameForAuthorizerMode(string(authorizer.Type))
    		if expectedName != authorizer.Name {
    			allErrors = append(allErrors, fmt.Errorf("expected name %s for authorizer %s instead of %s", expectedName, authorizer.Type, authorizer.Name))
    		}
    
    	}
    
    	if missingTypes := requireNonWebhookTypes.Difference(seenModes); missingTypes.Len() > 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 8K bytes
    - Viewed (0)
Back to top