Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for exprPtr (0.24 sec)

  1. src/cmd/vendor/golang.org/x/sys/unix/pledge_openbsd.go

    	if err := pledgeAvailable(); err != nil {
    		return err
    	}
    
    	pptr, err := BytePtrFromString(promises)
    	if err != nil {
    		return err
    	}
    
    	exptr, err := BytePtrFromString(execpromises)
    	if err != nil {
    		return err
    	}
    
    	return pledge(pptr, exptr)
    }
    
    // PledgePromises implements the pledge syscall.
    //
    // This changes the promises and leaves the execpromises untouched.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 29 21:28:33 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  2. security/pkg/server/ca/authenticate/oidc_test.go

    	if err != nil {
    		t.Fatalf("failed to create the JWT authenticator: %v", err)
    	}
    
    	// Create a valid JWT token
    	expStr := strconv.FormatInt(time.Now().Add(time.Hour).Unix(), 10)
    	claims := `{"iss": "` + server.URL + `", "aud": ["baz.svc.id.goog"], "sub": "system:serviceaccount:bar:foo", "exp": ` + expStr + `}`
    	token, err := generateJWT(&key, []byte(claims))
    	if err != nil {
    		t.Fatalf("failed to generate JWT: %v", err)
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  3. internal/config/identity/openid/jwt.go

    )
    
    func updateClaimsExpiry(dsecs string, claims map[string]interface{}) error {
    	expStr := claims["exp"]
    	if expStr == "" {
    		return ErrTokenExpired
    	}
    
    	// No custom duration requested, the claims can be used as is.
    	if dsecs == "" {
    		return nil
    	}
    
    	if _, err := auth.ExpToInt64(expStr); err != nil {
    		return err
    	}
    
    	defaultExpiryDuration, err := GetDefaultExpiration(dsecs)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 30 18:10:41 UTC 2024
    - 8.3K bytes
    - Viewed (0)
Back to top