Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for scope (0.32 sec)

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

    		}
    
    		if scopeList := getCfgVal(Scopes); scopeList != "" {
    			var scopes []string
    			for _, scope := range strings.Split(scopeList, ",") {
    				scope = strings.TrimSpace(scope)
    				if scope == "" {
    					return c, config.Errorf("empty scope value is not allowed '%s', please refer to our documentation", scopeList)
    				}
    				scopes = append(scopes, scope)
    			}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Nov 16 04:42:31 GMT 2023
    - 16.5K bytes
    - Viewed (0)
  2. cmd/streaming-signature-v4.go

    	cred, _, errCode = checkKeyValid(r, signV4Values.Credential.accessKey)
    	if errCode != ErrNone {
    		return cred, "", "", time.Time{}, errCode
    	}
    
    	// Verify if region is valid.
    	region = signV4Values.Credential.scope.region
    
    	// Extract date, if not present throw error.
    	var dateStr string
    	if dateStr = req.Header.Get("x-amz-date"); dateStr == "" {
    		if dateStr = r.Header.Get("Date"); dateStr == "" {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 18.2K bytes
    - Viewed (0)
  3. cmd/common-main.go

    			ClientID:                cfg.ClientID,
    			ClientSecret:            cfg.ClientSecret,
    			HMACSalt:                globalDeploymentID(),
    			HMACPassphrase:          cfg.ClientID,
    			Scopes:                  strings.Join(cfg.DiscoveryDoc.ScopesSupported, ","),
    			Userinfo:                cfg.ClaimUserinfo,
    			RedirectCallbackDynamic: cfg.RedirectURIDynamic,
    			RedirectCallback:        callback,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat May 04 00:17:57 GMT 2024
    - 35.8K bytes
    - Viewed (2)
  4. cmd/signature-v4.go

    func getScope(t time.Time, region string) string {
    	scope := strings.Join([]string{
    		t.Format(yyyymmdd),
    		region,
    		string(serviceS3),
    		"aws4_request",
    	}, SlashSeparator)
    	return scope
    }
    
    // getStringToSign a string based on selected query values.
    func getStringToSign(canonicalRequest string, t time.Time, scope string) string {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:45:54 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  5. cmd/signature-v4-parser_test.go

    		t.Errorf("Test %d: service mismatch:Expected \"%s\", got \"%s\"", testNum, expectedCredentials.scope.service, actualCredential.scope.service)
    	}
    
    	if expectedCredentials.scope.request != actualCredential.scope.request {
    		t.Errorf("Test %d: scope request mismatch:Expected \"%s\", got \"%s\"", testNum, expectedCredentials.scope.request, actualCredential.scope.request)
    	}
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 27.4K bytes
    - Viewed (0)
  6. cmd/utils.go

    		ClientSecret: pro.ClientSecret,
    		RedirectURL:  pro.RedirectURL,
    
    		// Discovery returns the OAuth2 endpoints.
    		Endpoint: provider.Endpoint(),
    
    		// "openid" is a required scope for OpenID Connect flows.
    		Scopes: []string{oidc.ScopeOpenID, "groups"},
    	}
    
    	state := fmt.Sprintf("x%dx", time.Now().Unix())
    	authCodeURL := oauth2Config.AuthCodeURL(state)
    	// fmt.Printf("authcodeurl: %s\n", authCodeURL)
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 15:18:21 GMT 2024
    - 31.4K bytes
    - Viewed (0)
Back to top