Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 171 - 180 of 790 for securely (0.06 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. docs/zh/docs/tutorial/security/first-steps.md

    ### 使用
    
    接下来,使用 `Depends` 把 `oauth2_scheme` 传入依赖项。
    
    {* ../../docs_src/security/tutorial001.py hl[10] *}
    
    该依赖项使用字符串(`str`)接收*路径操作函数*的参数 `token` 。
    
    **FastAPI** 使用依赖项在 OpenAPI 概图(及 API 文档)中定义**安全方案**。
    
    /// info | 技术细节
    
    **FastAPI** 使用(在依赖项中声明的)类 `OAuth2PasswordBearer` 在 OpenAPI 中定义安全方案,这是因为它继承自 `fastapi.security.oauth2.OAuth2`,而该类又是继承自`fastapi.security.base.SecurityBase`。
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 18 02:25:44 GMT 2024
    - 7K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/fess/app/web/admin/dict/mapping/AdminDictMappingAction.java

    import org.apache.logging.log4j.Logger;
    import org.codelibs.core.beans.util.BeanUtil;
    import org.codelibs.core.lang.StringUtil;
    import org.codelibs.fess.Constants;
    import org.codelibs.fess.annotation.Secured;
    import org.codelibs.fess.app.pager.CharMappingPager;
    import org.codelibs.fess.app.service.CharMappingService;
    import org.codelibs.fess.app.web.CrudMode;
    import org.codelibs.fess.app.web.admin.dict.AdminDictAction;
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Thu Aug 07 03:06:29 GMT 2025
    - 22.3K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/app/web/admin/group/AdminGroupAction.java

         */
        @Execute
        @Secured({ ROLE, ROLE + VIEW })
        public HtmlResponse index() {
            return asListHtml();
        }
    
        /**
         * Displays the group list with pagination.
         *
         * @param pageNumber the page number
         * @param form the search form
         * @return HTML response for the list page
         */
        @Execute
        @Secured({ ROLE, ROLE + VIEW })
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Thu Nov 20 13:56:35 GMT 2025
    - 16K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/app/web/admin/relatedquery/AdminRelatedqueryAction.java

    import org.apache.logging.log4j.Logger;
    import org.codelibs.core.beans.util.BeanUtil;
    import org.codelibs.core.lang.StringUtil;
    import org.codelibs.fess.Constants;
    import org.codelibs.fess.annotation.Secured;
    import org.codelibs.fess.app.pager.RelatedQueryPager;
    import org.codelibs.fess.app.service.RelatedQueryService;
    import org.codelibs.fess.app.web.CrudMode;
    import org.codelibs.fess.app.web.base.FessAdminAction;
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Thu Nov 20 13:56:35 GMT 2025
    - 16.3K bytes
    - Click Count (0)
  5. cmd/admin-handlers-users_test.go

    func (s *TestSuiteIAM) iamSetup(c *check) {
    	var err error
    	// strip url scheme from endpoint
    	s.endpoint = strings.TrimPrefix(s.endPoint, "http://")
    	if s.secure {
    		s.endpoint = strings.TrimPrefix(s.endPoint, "https://")
    	}
    
    	s.adm, err = madmin.New(s.endpoint, s.accessKey, s.secretKey, s.secure)
    	if err != nil {
    		c.Fatalf("error creating admin client: %v", err)
    	}
    	// Set transport, so that TLS is handled correctly.
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Wed Oct 15 17:00:45 GMT 2025
    - 50.6K bytes
    - Click Count (0)
  6. docs_src/security/tutorial005_py310.py

    from datetime import datetime, timedelta, timezone
    
    import jwt
    from fastapi import Depends, FastAPI, HTTPException, Security, status
    from fastapi.security import (
        OAuth2PasswordBearer,
        OAuth2PasswordRequestForm,
        SecurityScopes,
    )
    from jwt.exceptions import InvalidTokenError
    from pwdlib import PasswordHash
    from pydantic import BaseModel, ValidationError
    
    # to get a string like this run:
    # openssl rand -hex 32
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Sep 29 02:57:38 GMT 2025
    - 5.2K bytes
    - Click Count (0)
  7. tests/test_top_level_security_scheme_in_openapi.py

    # Test security scheme at the top level, including OpenAPI
    # Ref: https://github.com/fastapi/fastapi/discussions/14263
    # Ref: https://github.com/fastapi/fastapi/issues/14271
    from fastapi import Depends, FastAPI
    from fastapi.security import HTTPBearer
    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    
    app = FastAPI()
    
    bearer_scheme = HTTPBearer()
    
    
    @app.get("/", dependencies=[Depends(bearer_scheme)])
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 24 19:03:06 GMT 2025
    - 1.9K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/app/web/admin/badword/AdminBadwordAction.java

         * @return The HTML response.
         */
        @Execute
        @Secured({ ROLE, ROLE + VIEW })
        public HtmlResponse index() {
            return asListHtml();
        }
    
        /**
         * Show the list page.
         * @param pageNumber The page number.
         * @param form The search form.
         * @return The HTML response.
         */
        @Execute
        @Secured({ ROLE, ROLE + VIEW })
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Thu Nov 20 13:56:35 GMT 2025
    - 17.9K bytes
    - Click Count (0)
  9. src/test/java/jcifs/internal/smb1/com/ServerDataTest.java

            serverData.smaxMpxCount = 50;
            serverData.maxBufferSize = 16644;
            serverData.sessKey = 0x12345678;
            serverData.scapabilities = 0x8000F3FD; // Various capabilities
            serverData.oemDomainName = "WORKGROUP";
            serverData.securityMode = 0x0F; // User + encrypt passwords + signatures
            serverData.security = 1; // User level
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 17K bytes
    - Click Count (0)
  10. tests/test_security_oauth2_optional.py

    from typing import Optional
    
    import pytest
    from fastapi import Depends, FastAPI, Security
    from fastapi.security import OAuth2, OAuth2PasswordRequestFormStrict
    from fastapi.testclient import TestClient
    from pydantic import BaseModel
    
    app = FastAPI()
    
    reusable_oauth2 = OAuth2(
        flows={
            "password": {
                "tokenUrl": "token",
                "scopes": {"read:users": "Read the users", "write:users": "Create users"},
            }
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 8.9K bytes
    - Click Count (0)
Back to Top