Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,750 for tokEnd (0.12 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. src/cmd/vendor/github.com/google/pprof/internal/driver/interactive.go

    	return func(line string) string {
    		switch tokens := strings.Fields(line); len(tokens) {
    		case 0:
    			// Nothing to complete
    		case 1:
    			// Single token -- complete command name
    			if match := matchVariableOrCommand(tokens[0]); match != "" {
    				return match
    			}
    		case 2:
    			if tokens[0] == "help" {
    				if match := matchVariableOrCommand(tokens[1]); match != "" {
    					return tokens[0] + " " + match
    				}
    				return line
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 22 18:58:12 UTC 2022
    - 10.6K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/security/oauth2-jwt.md

        {!> ../../../docs_src/security/tutorial004.py!}
        ```
    
    ## Update the dependencies
    
    Update `get_current_user` to receive the same token as before, but this time, using JWT tokens.
    
    Decode the received token, verify it, and return the current user.
    
    If the token is invalid, return an HTTP error right away.
    
    === "Python 3.10+"
    
        ```Python hl_lines="90-107"
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon May 20 17:37:28 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  4. istioctl/pkg/workload/testdata/vmconfig-nil-proxy-metadata/istio-token.golden

    Xiaopeng Han <******@****.***> 1686841337 +0800
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 15 15:02:17 UTC 2023
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/mod/modfile/print.go

    			p.printf("%s", strings.TrimSpace(com.Token))
    			p.newline()
    		}
    	}
    
    	switch x := x.(type) {
    	default:
    		panic(fmt.Errorf("printer: unexpected type %T", x))
    
    	case *CommentBlock:
    		// done
    
    	case *LParen:
    		p.printf("(")
    	case *RParen:
    		p.printf(")")
    
    	case *Line:
    		p.tokens(x.Token)
    
    	case *LineBlock:
    		p.tokens(x.Token)
    		p.printf(" ")
    		p.expr(&x.LParen)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 00:48:59 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  6. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/profile/JdkVersionProfileActivator.java

            for (String token : range.split(",")) {
                if (token.startsWith("[")) {
                    ranges.add(new RangeValue(token.replace("[", ""), true));
                } else if (token.startsWith("(")) {
                    ranges.add(new RangeValue(token.replace("(", ""), false));
                } else if (token.endsWith("]")) {
                    ranges.add(new RangeValue(token.replace("]", ""), true));
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Jun 06 16:51:39 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  7. maven-model-builder/src/main/java/org/apache/maven/model/profile/activation/JdkVersionProfileActivator.java

            for (String token : range.split(",")) {
                if (token.startsWith("[")) {
                    ranges.add(new RangeValue(token.replace("[", ""), true));
                } else if (token.startsWith("(")) {
                    ranges.add(new RangeValue(token.replace("(", ""), false));
                } else if (token.endsWith("]")) {
                    ranges.add(new RangeValue(token.replace("]", ""), true));
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Jun 06 16:51:39 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  8. pkg/kube/rpc_creds.go

    			tokenRequest, err := createServiceAccountToken(ctx, its.kubeClient, its.tokenNamespace, its.tokenServiceAccount,
    				its.audiences, its.expirationSeconds)
    			if err == nil {
    				its.Token = tokenRequest.Status.Token
    				its.Expires = tokenRequest.Status.ExpirationTimestamp.Time
    			} else {
    				log.Infof("GetRequestMetadata failed to recreate token: %v", err.Error())
    			}
    		}
    		token = its.Token
    		its.mu.Unlock()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_communication.cc

      return recv.getResult(1);
    }
    
    // Creates a new token if necessary, acting as a sink to previous tokens. If
    // there is only one token in `tokens`, the only token is returned. If `tokens`
    // is empty, `original_token` is returned instead.
    Value CreateSinkToken(OpBuilder& builder, Location loc, ArrayRef<Value> tokens,
                          Value original_token) {
      if (tokens.empty()) {
        return original_token;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 40.5K bytes
    - Viewed (0)
  10. security/pkg/util/jwtutil.go

    		return listAud, nil
    	}
    
    	return nil, err
    }
    
    type jwtPayload struct {
    	// Aud is JWT token audience - used to identify 3p tokens.
    	// It is empty for the default K8S tokens.
    	Aud []string `json:"aud"`
    }
    
    // ExtractJwtAud extracts the audiences from a JWT token. If aud cannot be parse, the bool will be set
    // to false. This distinguishes aud=[] from not parsed.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 16:07:11 UTC 2024
    - 3.2K bytes
    - Viewed (0)
Back to top