Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 1,090 for tolen (0.04 sec)

  1. docs/iam/identity-manager-plugin.go

    		},
    	},
    }
    
    func mainHandler(w http.ResponseWriter, r *http.Request) {
    	token := r.FormValue("token")
    	if token == "" {
    		writeErrorResponse(w, errors.New("token parameter not given"))
    		return
    	}
    
    	rsp, ok := tokens[token]
    	if !ok {
    		w.WriteHeader(http.StatusForbidden)
    		return
    	}
    
    	fmt.Printf("Allowed for token: %s user: %s\n", token, rsp.User)
    
    	w.WriteHeader(http.StatusOK)
    	json.NewEncoder(w).Encode(rsp)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 01 21:31:13 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/tests/legalize-tf-communication.mlir

    // function. The original public function will be modified to create a token,
    // while the function is cloned and rewritten with an extra token argument and
    // an extra token result. All callers to the original function are updated to
    // point to the cloned function and the function the caller is in is updated to
    // pass a token or create a token.
    
    // CHECK: func @main([[MAIN_ARG0:%.*]]: tensor<i32>) -> tensor<i32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 08 18:24:20 UTC 2024
    - 38.3K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_dependencies/test_tutorial006.py

    
    def test_get_invalid_one_header():
        response = client.get("/items/", headers={"X-Token": "invalid"})
        assert response.status_code == 400, response.text
        assert response.json() == {"detail": "X-Token header invalid"}
    
    
    def test_get_invalid_second_header():
        response = client.get(
            "/items/", headers={"X-Token": "fake-super-secret-token", "X-Key": "invalid"}
        )
        assert response.status_code == 400, response.text
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 5K bytes
    - Viewed (0)
  4. security/pkg/server/ca/authenticate/oidc_test.go

    	}
    
    	tests := map[string]struct {
    		token      string
    		expectErr  bool
    		expectedID string
    	}{
    		"No bearer token": {
    			expectErr: true,
    		},
    		"Valid token": {
    			token:      token,
    			expectErr:  false,
    			expectedID: spiffe.MustGenSpiffeURIForTrustDomain("baz.svc.id.goog", "bar", "foo"),
    		},
    		"Expired token": {
    			token:     expiredToken,
    			expectErr: true,
    		},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  5. pkg/test/framework/components/istio/ca.go

    	if err != nil {
    		return "", err
    	}
    	exp := rt.Status.ExpirationTimestamp.Time
    	cachedTokens.Store(san, token{rt.Status.Token, exp})
    	return rt.Status.Token, nil
    }
    
    // map of SAN to jwt token. Used to avoid repetitive calls
    var cachedTokens sync.Map
    
    type token struct {
    	token      string
    	expiration time.Time
    }
    
    // NewCitadelClient create a CA client for Citadel.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 27 16:59:05 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  6. docs_src/app_testing/app_b/test_main.py

    
    def test_read_nonexistent_item():
        response = client.get("/items/baz", headers={"X-Token": "coneofsilence"})
        assert response.status_code == 404
        assert response.json() == {"detail": "Item not found"}
    
    
    def test_create_item():
        response = client.post(
            "/items/",
            headers={"X-Token": "coneofsilence"},
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Mar 13 19:07:10 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  7. docs_src/app_testing/app_b_an_py39/test_main.py

    
    def test_read_nonexistent_item():
        response = client.get("/items/baz", headers={"X-Token": "coneofsilence"})
        assert response.status_code == 404
        assert response.json() == {"detail": "Item not found"}
    
    
    def test_create_item():
        response = client.post(
            "/items/",
            headers={"X-Token": "coneofsilence"},
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Mar 13 19:07:10 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  8. src/go/types/util.go

    // startPos returns the start position of node n.
    func startPos(n ast.Node) token.Pos { return n.Pos() }
    
    // endPos returns the position of the first character immediately after node n.
    func endPos(n ast.Node) token.Pos { return n.End() }
    
    // makeFromLiteral returns the constant value for the given literal string and kind.
    func makeFromLiteral(lit string, kind token.Token) constant.Value {
    	return constant.MakeFromLiteral(lit, kind, 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  9. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/evaluate/FirAnnotationValueConverter.kt

                                            builder.functionLikeBuilder.buildConstructorSymbol(resolvedSymbol)
                                        },
                                        token = token
                                    ),
                                    token
                                )
                            } else null
                        }
    
                        is FirNamedFunctionSymbol -> {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  10. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/KtFe10CliAnalysisSessionProvider.kt

            val token = tokenFactory.create(project, project.createProjectWideOutOfBlockModificationTracker())
            val context = facade.getAnalysisContext(useSiteKtElement, token)
            val useSiteModule = ProjectStructureProvider.getModule(project, useSiteKtElement, contextualModule = null)
            return KaFe10Session(context, useSiteModule, token)
        }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Thu Jun 06 17:44:50 UTC 2024
    - 1.7K bytes
    - Viewed (0)
Back to top