Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 189 for tokens (0.3 sec)

  1. 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="89-106"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 13K bytes
    - Viewed (0)
  2. cmd/sftp-server.go

    	allowMACs := supportedMACs
    	var err error
    	for _, arg := range args {
    		tokens := strings.SplitN(arg, "=", 2)
    		if len(tokens) != 2 {
    			logger.Fatal(fmt.Errorf("invalid arguments passed to --sftp=%s", arg), "unable to start SFTP server")
    		}
    		switch tokens[0] {
    		case "address":
    			host, portStr, err := net.SplitHostPort(tokens[1])
    			if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 11:07:40 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  3. 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));
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  4. 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)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 21:31:13 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/security/simple-oauth2.md

    ## Return the token
    
    The response of the `token` endpoint must be a JSON object.
    
    It should have a `token_type`. In our case, as we are using "Bearer" tokens, the token type should be "`bearer`".
    
    And it should have an `access_token`, with a string containing our access token.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  6. cmd/sts-handlers.go

    }
    
    // AssumeRoleWithCustomToken implements user authentication with custom tokens.
    // These tokens are opaque to MinIO and are verified by a configured (external)
    // Identity Management Plugin.
    //
    // API endpoint: https://minio:9000?Action=AssumeRoleWithCustomToken&Token=xxx
    func (sts *stsAPIHandlers) AssumeRoleWithCustomToken(w http.ResponseWriter, r *http.Request) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 21:31:13 GMT 2024
    - 34.7K bytes
    - Viewed (2)
  7. cmd/bucket-lifecycle.go

    	case "true", `"true"`: // true without double quotes is deprecated in Feb 2022
    		if len(tokens) == 1 {
    			return ongoingRestoreObj(), nil
    		}
    	case "false", `"false"`: // false without double quotes is deprecated in Feb 2022
    		if len(tokens) != 2 {
    			return restoreObjStatus{}, errRestoreHDRMalformed
    		}
    		expiryTokens := strings.SplitN(tokens[1], "=", 2)
    		if len(expiryTokens) != 2 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 17 05:09:58 GMT 2024
    - 33.1K bytes
    - Viewed (0)
  8. manifests/charts/ztunnel/templates/daemonset.yaml

            {{- end }}
            {{- end }}
            volumeMounts:
            - mountPath: /var/run/secrets/istio
              name: istiod-ca-cert
            - mountPath: /var/run/secrets/tokens
              name: istio-token
            - mountPath: /var/run/ztunnel
              name: cni-ztunnel-sock-dir
            - mountPath: /tmp
              name: tmp
            {{- with .Values.volumeMounts }}
              {{- toYaml . | nindent 8 }}
    Others
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri May 03 19:29:42 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  9. docs/zh/docs/tutorial/security/simple-oauth2.md

    ## 返回 Token
    
    `token` 端点的响应必须是 JSON 对象。
    
    响应返回的内容应该包含 `token_type`。本例中用的是**Bearer**Token,因此, Token 类型应为**`bearer`**。
    
    返回内容还应包含 `access_token` 字段,它是包含权限 Token 的字符串。
    
    本例只是简单的演示,返回的 Token 就是 `username`,但这种方式极不安全。
    
    !!! tip "提示"
    
        下一章介绍使用哈希密码和 <abbr title="JSON Web Tokens">JWT</abbr> Token 的真正安全机制。
    
        但现在,仅关注所需的特定细节。
    
    ```Python hl_lines="85"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 8.8K bytes
    - Viewed (0)
  10. manifests/charts/istio-control/istio-discovery/templates/deployment.yaml

          - emptyDir:
              medium: Memory
            name: local-certs
          - name: istio-token
            projected:
              sources:
                - serviceAccountToken:
                    audience: {{ .Values.global.sds.token.aud }}
                    expirationSeconds: 43200
                    path: istio-token
          # Optional: user-generated root
          - name: cacerts
            secret:
              secretName: cacerts
    Others
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri May 03 19:29:42 GMT 2024
    - 8.5K bytes
    - Viewed (0)
Back to top