Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 2,026 for key (0.28 sec)

  1. tests/test_security_api_key_cookie_description.py

    from fastapi.security import APIKeyCookie
    from fastapi.testclient import TestClient
    from pydantic import BaseModel
    
    app = FastAPI()
    
    api_key = APIKeyCookie(name="key", description="An API Cookie Key")
    
    
    class User(BaseModel):
        username: str
    
    
    def get_current_user(oauth_header: str = Security(api_key)):
        user = User(username=oauth_header)
        return user
    
    
    @app.get("/users/me")
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 2.1K bytes
    - Viewed (0)
  2. tests/test_security_api_key_cookie_optional.py

        else:
            return current_user
    
    
    def test_security_api_key():
        client = TestClient(app, cookies={"key": "secret"})
        response = client.get("/users/me")
        assert response.status_code == 200, response.text
        assert response.json() == {"username": "secret"}
    
    
    def test_security_api_key_no_key():
        client = TestClient(app)
        response = client.get("/users/me")
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 2.1K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/entity/ParamMap.java

            }
            return parent.get(toCamelCase(key));
        }
    
        @Override
        public V put(final K key, final V value) {
            return parent.put(key, value);
        }
    
        @Override
        public V remove(final Object key) {
            final V value = parent.remove(key);
            if (value != null) {
                return value;
            }
            return parent.remove(key);
        }
    
        @Override
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  4. internal/logger/help.go

    		},
    		config.HelpKV{
    			Key:         KafkaClientTLSKey,
    			Description: "path to client key for mTLS auth",
    			Optional:    true,
    			Type:        "path",
    			Sensitive:   true,
    		},
    		config.HelpKV{
    			Key:         KafkaVersion,
    			Description: "specify the version of the Kafka cluster",
    			Optional:    true,
    			Type:        "string",
    		},
    		config.HelpKV{
    			Key:         QueueSize,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 07 20:17:46 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/SortedListsTest.java

          case ANY_PRESENT:
            if (list.contains(key)) {
              assertEquals(key, list.get(answer));
              return;
            }
            break;
          case FIRST_AFTER:
            if (list.contains(key)) {
              assertEquals(list.lastIndexOf(key) + 1, answer);
              return;
            }
            break;
          case LAST_BEFORE:
            if (list.contains(key)) {
              assertEquals(list.indexOf(key) - 1, answer);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  6. internal/crypto/sse-kms.go

    	// There are two possibilities:
    	// - We use a KMS -> There must be non-empty key ID and a KMS data key.
    	// - We use a K/V -> There must be no key ID and no KMS data key.
    	// Otherwise, the caller has passed an invalid argument combination.
    	if keyID == "" && len(kmsKey) != 0 {
    		logger.CriticalIf(context.Background(), errors.New("The key ID must not be empty if a KMS data key is present"))
    	}
    	if keyID != "" && len(kmsKey) == 0 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  7. internal/crypto/sse.go

    	// the key-encryption-key and to en/decrypt the object data.
    	SealAlgorithm = "DAREv2-HMAC-SHA256"
    
    	// InsecureSealAlgorithm is the legacy encryption/sealing algorithm used
    	// to derive & seal the key-encryption-key and to en/decrypt the object data.
    	// This algorithm should not be used for new objects because its key derivation
    	// is not optimal. See: https://github.com/minio/minio/pull/6121
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Aug 30 15:26:43 GMT 2022
    - 4.4K bytes
    - Viewed (0)
  8. manifests/charts/default/templates/mutatingwebhook.yaml

      namespaceSelector:
        matchExpressions:
        - key: istio.io/rev
          operator: DoesNotExist
        - key: istio-injection
          operator: DoesNotExist
      objectSelector:
        matchExpressions:
        - key: sidecar.istio.io/inject
          operator: NotIn
          values:
          - "false"
        - key: istio.io/rev
          operator: In
          values:
          - "default"
    
    Others
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Thu Apr 18 18:16:49 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  9. docs/debugging/s3-verify/main.go

    		if srcEOF {
    			fmt.Printf("only in target: %s\n", tgtCtnt.Key)
    			tgtCtnt, tgtOk = <-tgtCh
    			continue
    		}
    
    		// The same for target
    		if tgtEOF {
    			fmt.Printf("only in source: %s\n", srcCtnt.Key)
    			srcCtnt, srcOk = nextObject(srcCh)
    			continue
    		}
    
    		if srcCtnt.Key < tgtCtnt.Key {
    			fmt.Printf("only in source: %s\n", srcCtnt.Key)
    			srcCtnt, srcOk = nextObject(srcCh)
    			continue
    		}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Jun 22 15:12:47 GMT 2022
    - 8.4K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/helper/CrawlerStatsHelper.java

        }
    
        public void done(final Object keyObj) {
            getCacheKey(keyObj).ifPresent(key -> {
                try {
                    final StatsObject data = statsCache.getIfPresent(key);
                    if (data != null && data.decrement() <= 0) {
                        statsCache.invalidate(key);
                        final Long begin = data.remove(BEGIN_KEY);
                        if (begin != null) {
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 9.9K bytes
    - Viewed (0)
Back to top