Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for getUserId (0.1 sec)

  1. src/main/java/org/codelibs/fess/app/web/base/login/OpenIdConnectCredential.java

            this.attributes = attributes;
        }
    
        @Override
        public String toString() {
            return "{" + getUserId() + "}";
        }
    
        @Override
        public String getUserId() {
            return DocumentUtil.getValue(attributes, "email", String.class);
        }
    
        public String[] getUserGroups() {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/sso/oic/OpenIdConnectAuthenticatorTest.java

            assertArrayEquals(new String[] { "group1", "group2" }, groups);
    
            OpenIdConnectCredential credential = new OpenIdConnectCredential(attributes);
            assertEquals("******@****.***", credential.getUserId());
            assertArrayEquals(new String[] { "group1", "group2" }, credential.getUserGroups());
        }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 2K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/sso/spnego/SpnegoAuthenticator.java

        }
    
        @Override
        public void resolveCredential(final LoginCredentialResolver resolver) {
            resolver.resolve(SpnegoCredential.class, credential -> {
                final String username = credential.getUserId();
                if (!ComponentUtil.getFessConfig().isAdminUser(username)) {
                    return ComponentUtil.getLdapManager().login(username);
                }
                return OptionalEntity.empty();
            });
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 12 01:54:46 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/helper/SearchLogHelper.java

            searchLog.setQueryOffset(pageStart);
            searchLog.setQueryPageSize(pageSize);
            ComponentUtil.getRequestManager().findUserBean(FessUserBean.class).ifPresent(user -> {
                searchLog.setUser(user.getUserId());
            });
    
            LaRequestUtil.getOptionalRequest().ifPresent(req -> {
                searchLog.setClientIp(StringUtils.abbreviate(ComponentUtil.getViewHelper().getClientIp(req), 100));
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Mon Jul 22 02:07:37 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/helper/SystemHelper.java

            });
        }
    
        public String getUsername() {
            final RequestManager requestManager = ComponentUtil.getRequestManager();
            return requestManager.findUserBean(FessUserBean.class).map(FessUserBean::getUserId).orElse(Constants.GUEST_USER);
        }
    
        public Date getCurrentTime() {
            return new Date(getCurrentTimeAsLong());
        }
    
        public long getCurrentTimeAsLong() {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Oct 17 12:10:08 UTC 2024
    - 27.2K bytes
    - Viewed (0)
Back to top