Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for Grant (0.27 sec)

  1. cmd/etcd.go

    }
    
    func saveKeyEtcdWithTTL(ctx context.Context, client *etcd.Client, key string, data []byte, ttl int64) error {
    	timeoutCtx, cancel := context.WithTimeout(ctx, defaultContextTimeout)
    	defer cancel()
    	lease, err := client.Grant(timeoutCtx, ttl)
    	if err != nil {
    		return etcdErrToErr(err, client.Endpoints())
    	}
    	_, err = client.Put(timeoutCtx, key, string(data), etcd.WithLease(lease.ID))
    	etcdLogIf(ctx, err)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  2. docs/zh/docs/tutorial/security/simple-oauth2.md

    {!../../../docs_src/security/tutorial003.py!}
    ```
    
    `OAuth2PasswordRequestForm` 是用以下几项内容声明表单请求体的类依赖项:
    
    * `username`
    * `password`
    * 可选的 `scope` 字段,由多个空格分隔的字符串组成的长字符串
    * 可选的 `grant_type`
    
    !!! tip "提示"
    
        实际上,OAuth2 规范*要求* `grant_type` 字段使用固定值 `password`,但 `OAuth2PasswordRequestForm` 没有作强制约束。
    
        如需强制使用固定值 `password`,则不要用 `OAuth2PasswordRequestForm`,而是用 `OAuth2PasswordRequestFormStrict`。
    
    * 可选的 `client_id`(本例未使用)
    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)
  3. cni/pkg/nodeagent/cni-watcher.go

    		// net.ip is implicitly convertible to netip as slice
    		ip, _ := netip.AddrFromSlice(configuredPodIPs.Address.IP)
    		// We ignore the mask of the IPNet - it's fine if the IPNet defines
    		// a block grant of addresses, we just need one for checking routes.
    		podIps = append(podIps, ip)
    	}
    	// Note that we use the IP info from the CNI plugin here - the Pod struct as reported by K8S doesn't have this info
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Feb 08 18:52:24 GMT 2024
    - 6.1K bytes
    - Viewed (0)
  4. docs/em/docs/tutorial/security/simple-oauth2.md

        ```
    
    `OAuth2PasswordRequestForm` 🎓 🔗 👈 📣 📨 💪 ⏮️:
    
    *  `username`.
    *  `password`.
    * 📦 `scope` 🏑 🦏 🎻, ✍ 🎻 🎏 🚀.
    * 📦 `grant_type`.
    
    !!! tip
        Oauth2️⃣ 🔌 🤙 *🚚* 🏑 `grant_type` ⏮️ 🔧 💲 `password`, ✋️ `OAuth2PasswordRequestForm` 🚫 🛠️ ⚫️.
    
        🚥 👆 💪 🛠️ ⚫️, ⚙️ `OAuth2PasswordRequestFormStrict` ↩️ `OAuth2PasswordRequestForm`.
    
    * 📦 `client_id` (👥 🚫 💪 ⚫️ 👆 🖼).
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 8.9K bytes
    - Viewed (0)
Back to top