Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 10 for faketoken (0.06 seconds)

  1. tests/test_security_oauth2_authorization_code_bearer_scopes_openapi_simple.py

    async def read_admin():
        return {"message": "Admin Access"}
    
    
    client = TestClient(app)
    
    
    def test_read_admin():
        response = client.get("/admin", headers={"Authorization": "Bearer faketoken"})
        assert response.status_code == 200, response.text
        assert response.json() == {"message": "Admin Access"}
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 2.6K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/fess/app/web/admin/design/AdminDesignAction.java

        public HtmlResponse index() {
            saveToken();
            return asHtml(path_AdminDesign_AdminDesignJsp).useForm(DesignForm.class);
        }
    
        /**
         * Go back to the index page.
         * @return The HTML response.
         */
        @Execute
        @Secured({ ROLE, ROLE + VIEW })
        public HtmlResponse back() {
            saveToken();
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 17.4K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/app/web/admin/accesstoken/AdminAccesstokenAction.java

        /**
         * Show the create new page.
         * @return The HTML response.
         */
        @Execute
        @Secured({ ROLE })
        public HtmlResponse createnew() {
            saveToken();
            return asEditHtml().useForm(CreateForm.class, op -> {
                op.setup(form -> {
                    form.initialize();
                    form.crudMode = CrudMode.CREATE;
                });
            });
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Thu Nov 27 07:01:25 GMT 2025
    - 15.9K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/app/web/admin/labeltype/AdminLabeltypeAction.java

        /**
         * Displays the create new label type page.
         *
         * @return HTML response for the create page
         */
        @Execute
        @Secured({ ROLE })
        public HtmlResponse createnew() {
            saveToken();
            return asHtml(path_AdminLabeltype_AdminLabeltypeEditJsp).useForm(CreateForm.class, op -> {
                op.setup(form -> {
                    form.initialize();
                    form.crudMode = CrudMode.CREATE;
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Thu Nov 27 07:01:25 GMT 2025
    - 17.6K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/app/web/admin/storage/AdminStorageAction.java

         * Displays the storage management index page.
         *
         * @return HTML response for the storage list page
         */
        @Execute
        @Secured({ ROLE, ROLE + VIEW })
        public HtmlResponse index() {
            saveToken();
            return asListHtml(StringUtil.EMPTY);
        }
    
        /**
         * Displays a list of files and directories in the specified path.
         *
         * @param id the encoded path ID to list (optional)
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Sat Dec 13 02:21:17 GMT 2025
    - 22.1K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/app/web/admin/wizard/AdminWizardAction.java

         *
         * @return HTML response for the crawling config form
         */
        @Execute
        @Secured({ ROLE })
        public HtmlResponse crawlingConfigForm() {
            saveToken();
            return asHtml(path_AdminWizard_AdminWizardConfigJsp).useForm(CrawlingConfigForm.class);
        }
    
        /**
         * Creates a crawling configuration and returns to the config form.
         *
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Thu Dec 11 09:47:03 GMT 2025
    - 16.3K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/app/web/login/LoginAction.java

            }
            return asHtml(virtualHost(path_Login_IndexJsp)).renderWith(data -> {
                RenderDataUtil.register(data, "notification", fessConfig.getNotificationLogin());
                saveToken();
            });
        }
    
        /**
         * Handles user login with the provided credentials.
         *
         * @param form the login form containing username and password
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Thu Nov 27 07:01:25 GMT 2025
    - 7.2K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/app/web/admin/general/AdminGeneralAction.java

         * Displays the general settings index page.
         *
         * @return HTML response for the general settings page
         */
        @Execute
        @Secured({ ROLE, ROLE + VIEW })
        public HtmlResponse index() {
            saveToken();
            return asHtml(path_AdminGeneral_AdminGeneralJsp).useForm(EditForm.class, setup -> {
                setup.setup(form -> {
                    updateForm(fessConfig, form);
                });
            });
        }
    
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Sat Dec 13 02:21:17 GMT 2025
    - 14.4K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/api/engine/SearchEngineApiManager.java

        }
    
        /**
         * Generates and saves a new access token for the current session.
         * The token is used to authenticate API requests.
         */
        public void saveToken() {
            getSessionManager().setAttribute(Constants.SEARCH_ENGINE_API_ACCESS_TOKEN, UUID.randomUUID().toString().replace("-", ""));
        }
    
        private SessionManager getSessionManager() {
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 12.9K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/app/web/admin/maintenance/AdminMaintenanceAction.java

         * Displays the main maintenance page.
         *
         * @return HTML response for the maintenance index page
         */
        @Execute
        @Secured({ ROLE, ROLE + VIEW })
        public HtmlResponse index() {
            saveToken();
            return asIndexHtml();
        }
    
        private HtmlResponse asIndexHtml() {
            return asHtml(path_AdminMaintenance_AdminMaintenanceJsp).useForm(ActionForm.class, op -> op.setup(f -> {
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 18.1K bytes
    - Click Count (0)
Back to Top