Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 1,394 for Bearer (0.15 sec)

  1. internal/config/identity/openid/provider/keycloak.go

    	k.Lock()
    	accessToken := k.accessToken
    	k.Unlock()
    	if accessToken.AccessToken == "" {
    		return User{}, ErrAccessTokenExpired
    	}
    	req.Header.Set("Authorization", "Bearer "+accessToken.AccessToken)
    	resp, err := k.client.Do(req)
    	if err != nil {
    		return User{}, err
    	}
    	defer resp.Body.Close()
    	switch resp.StatusCode {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 29 01:27:09 GMT 2022
    - 4.6K bytes
    - Viewed (0)
  2. fastapi/openapi/models.py

            class Config:
                extra = "allow"
    
    
    class ParameterInType(Enum):
        query = "query"
        header = "header"
        path = "path"
        cookie = "cookie"
    
    
    class Encoding(BaseModelWithConfig):
        contentType: Optional[str] = None
        headers: Optional[Dict[str, Union["Header", Reference]]] = None
        style: Optional[str] = None
        explode: Optional[bool] = None
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 22:49:33 GMT 2024
    - 15K bytes
    - Viewed (1)
  3. cmd/batch-replicate.go

    //           value: "value*"
    //       metadata:
    //         - key: "content-type"
    //           value: "image/*"
    //     notify:
    //       endpoint: "https://splunk-hec.dev.com"
    //       token: "Splunk ..." # e.g. "Bearer token"
    //
    //   # target where the objects must be replicated
    //   target:
    //     type: "minio"
    //     bucket: "testbucket1"
    //     endpoint: "https://play.min.io"
    //     path: "on"
    //     credentials:
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Nov 22 18:51:46 GMT 2023
    - 6.3K bytes
    - Viewed (0)
  4. cmd/jwt.go

    	"github.com/minio/minio/internal/auth"
    	xjwt "github.com/minio/minio/internal/jwt"
    	"github.com/minio/minio/internal/logger"
    	"github.com/minio/pkg/v2/policy"
    )
    
    const (
    	jwtAlgorithm = "Bearer"
    
    	// Default JWT token for web handlers is one day.
    	defaultJWTExpiry = 24 * time.Hour
    
    	// Inter-node JWT token expiry is 15 minutes.
    	defaultInterNodeJWTExpiry = 15 * time.Minute
    )
    
    var (
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:45:14 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  5. docs/zh/docs/tutorial/cors.md

    为此,后端必须有一个「允许的源」列表。
    
    在这种情况下,它必须包含 `http://localhost:8080`,前端才能正常工作。
    
    ## 通配符
    
    也可以使用 `"*"`(一个「通配符」)声明这个列表,表示全部都是允许的。
    
    但这仅允许某些类型的通信,不包括所有涉及凭据的内容:像 Cookies 以及那些使用 Bearer 令牌的授权 headers 等。
    
    因此,为了一切都能正常工作,最好显式地指定允许的源。
    
    ## 使用 `CORSMiddleware`
    
    你可以在 **FastAPI** 应用中使用 `CORSMiddleware` 来配置它。
    
    * 导入 `CORSMiddleware`。
    * 创建一个允许的源列表(由字符串组成)。
    * 将其作为「中间件」添加到你的 **FastAPI** 应用中。
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 27 17:28:07 GMT 2021
    - 4.5K bytes
    - Viewed (0)
  6. common-protos/k8s.io/api/authentication/v1beta1/generated.proto

      // +optional
      optional TokenReviewStatus status = 3;
    }
    
    // TokenReviewSpec is a description of the token authentication request.
    message TokenReviewSpec {
      // Token is the opaque bearer token.
      // +optional
      optional string token = 1;
    
      // Audiences is a list of the identifiers that the resource server presented
      // with the token identifies as. Audience-aware token authenticators will
    Plain Text
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  7. docs/zh/docs/tutorial/security/oauth2-jwt.md

    # OAuth2 实现密码哈希与 Bearer  JWT 令牌验证
    
    至此,我们已经编写了所有安全流,本章学习如何使用 <abbr title="JSON Web Tokens">JWT</abbr> 令牌(Token)和安全密码哈希(Hash)实现真正的安全机制。
    
    本章的示例代码真正实现了在应用的数据库中保存哈希密码等功能。
    
    接下来,我们紧接上一章,继续完善安全机制。
    
    ## JWT 简介
    
    JWT 即**JSON 网络令牌**(JSON Web Tokens)。
    
    JWT 是一种将 JSON 对象编码为没有空格,且难以理解的长字符串的标准。JWT 的内容如下所示:
    
    ```
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 21:21:35 GMT 2024
    - 9.2K bytes
    - Viewed (0)
  8. internal/config/dns/operator_dns.go

    		Subject:   config.EnvDNSWebhook,
    	}
    
    	token := jwt.NewWithClaims(jwt.SigningMethodHS512, claims)
    	ss, err := token.SignedString([]byte(c.password))
    	if err != nil {
    		return err
    	}
    
    	r.Header.Set("Authorization", "Bearer "+ss)
    	return nil
    }
    
    func (c *OperatorDNS) endpoint(bucket string, delete bool) (string, error) {
    	u, err := url.Parse(c.Endpoint)
    	if err != nil {
    		return "", err
    	}
    	q := u.Query()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 06 16:56:10 GMT 2023
    - 6.6K bytes
    - Viewed (0)
  9. bin/init.sh

    # If we are not using the default, assume its private and we need to authenticate
    if [[ "${ISTIO_ENVOY_BASE_URL}" != "https://storage.googleapis.com/istio-build/proxy" ]]; then
      AUTH_HEADER="Authorization: Bearer $(gcloud auth print-access-token)"
      export AUTH_HEADER
    fi
    
    SIDECAR="${SIDECAR:-envoy}"
    
    # OS-neutral vars. These currently only work for linux.
    ISTIO_ENVOY_VERSION="${ISTIO_ENVOY_VERSION:-${PROXY_REPO_SHA}}"
    Shell Script
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Jan 25 19:11:31 GMT 2024
    - 6.1K bytes
    - Viewed (0)
  10. docs/de/docs/tutorial/security/oauth2-jwt.md

    <img src="/img/tutorial/security/image10.png">
    
    !!! note "Hinweis"
        Beachten Sie den Header `Authorization` mit einem Wert, der mit `Bearer` beginnt.
    
    ## Fortgeschrittene Verwendung mit `scopes`
    
    OAuth2 hat ein Konzept von <abbr title="Geltungsbereiche">„Scopes“</abbr>.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:27:06 GMT 2024
    - 15.1K bytes
    - Viewed (0)
Back to top