Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for invalid_token (0.39 sec)

  1. src/main/java/org/codelibs/fess/app/service/AccessTokenService.java

                            && expiredTime.longValue() < ComponentUtil.getSystemHelper().getCurrentTimeAsLong()) {
                        throw new InvalidAccessTokenException("invalid_token",
                                "The token is expired(" + FessFunctions.formatDate(FessFunctions.date(expiredTime)) + ").");
                    }
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/helper/RoleQueryHelper.java

                            .orElse(() -> {
                                if (isApiRequest && ComponentUtil.getFessConfig().getApiAccessTokenRequiredAsBoolean()) {
                                    throw new InvalidAccessTokenException("invalid_token", "Access token is requried.");
                                }
                                if (!hasAccessToken || roleSet.isEmpty()) {
                                    roleSet.addAll(fessConfig.getSearchGuestPermissionList());
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/authentication/request/bearertoken/bearertoken.go

    )
    
    type Authenticator struct {
    	auth authenticator.Token
    }
    
    func New(auth authenticator.Token) *Authenticator {
    	return &Authenticator{auth}
    }
    
    var invalidToken = errors.New("invalid bearer token")
    
    func (a *Authenticator) AuthenticateRequest(req *http.Request) (*authenticator.Response, bool, error) {
    	auth := strings.TrimSpace(req.Header.Get("Authorization"))
    	if auth == "" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 25 13:22:28 UTC 2022
    - 2K bytes
    - Viewed (0)
  4. security/pkg/server/ca/authenticate/kubeauth/kube_jwt_test.go

    			expectedAuthenticator, authenticator)
    	}
    }
    
    func TestAuthenticate(t *testing.T) {
    	primaryCluster := constants.DefaultClusterName
    	remoteCluster := cluster.ID("remote")
    	invlidToken := "invalid-token"
    	meshHolder := mockMeshConfigHolder{"example.com"}
    
    	testCases := map[string]struct {
    		remoteCluster  bool
    		metadata       metadata.MD
    		token          string
    		expectedID     string
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/authentication/request/bearertoken/bearertoken_test.go

    		Header: http.Header{"Authorization": []string{"Bearer token"}},
    	})
    	if ok || resp != nil {
    		t.Errorf("expected not authenticated user")
    	}
    	if err != invalidToken {
    		t.Errorf("expected invalidToken error, got %v", err)
    	}
    }
    
    func TestAuthenticateRequestTokenInvalidCustomError(t *testing.T) {
    	customError := errors.New("custom")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 25 13:22:28 UTC 2022
    - 8.8K bytes
    - Viewed (0)
Back to top