Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getAccessTokenFromRequest (0.14 sec)

  1. src/test/java/org/codelibs/fess/helper/AccessTokenHelperTest.java

            assertEquals(token, accessTokenHelper.getAccessTokenFromRequest(req));
        }
    
        public void test_getAccessTokenFromRequest_ok1() {
            final String token = accessTokenHelper.generateAccessToken();
            MockletHttpServletRequest req = getMockRequest();
            req.addHeader("Authorization", token);
            assertEquals(token, accessTokenHelper.getAccessTokenFromRequest(req));
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/helper/AccessTokenHelper.java

        public String generateAccessToken() {
            return RandomStringUtils.random(ComponentUtil.getFessConfig().getApiAccessTokenLengthAsInteger(), 0, 0, true, true, null, random);
        }
    
        public String getAccessTokenFromRequest(final HttpServletRequest request) {
            final String token = request.getHeader("Authorization");
            if (token != null) {
                final String[] values = token.trim().split(" ");
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/app/service/AccessTokenService.java

            // search
    
        }
    
        public OptionalEntity<Set<String>> getPermissions(final HttpServletRequest request) {
            final String token = ComponentUtil.getAccessTokenHelper().getAccessTokenFromRequest(request);
            if (StringUtil.isNotBlank(token)) {
                return accessTokenBhv.selectEntity(cb -> {
                    cb.query().setToken_Term(token);
                }).map(accessToken -> {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 4.6K bytes
    - Viewed (0)
Back to top