Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 181 - 190 of 703 for surname (0.05 seconds)

  1. docs_src/dependencies/tutorial008d_an_py39.py

            raise
    
    
    @app.get("/items/{item_id}")
    def get_item(item_id: str, username: Annotated[str, Depends(get_username)]):
        if item_id == "portal-gun":
            raise InternalError(
                f"The portal gun is too dangerous to be owned by {username}"
            )
        if item_id != "plumbus":
            raise HTTPException(
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Feb 24 23:06:37 GMT 2024
    - 734 bytes
    - Click Count (0)
  2. docs_src/dependencies/tutorial012_an_py39.py

    
    @app.get("/items/")
    async def read_items():
        return [{"item": "Portal Gun"}, {"item": "Plumbus"}]
    
    
    @app.get("/users/")
    async def read_users():
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 746 bytes
    - Click Count (0)
  3. cmd/bucket-policy.go

    	currTime := UTCNow()
    
    	var (
    		username = cred.AccessKey
    		claims   = cred.Claims
    		groups   = cred.Groups
    	)
    
    	if cred.IsTemp() || cred.IsServiceAccount() {
    		// For derived credentials, check the parent user's permissions.
    		username = cred.ParentUser
    	}
    
    	principalType := "Anonymous"
    	if username != "" {
    		principalType = "User"
    		if len(claims) > 0 {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  4. docs_src/dependencies/tutorial008c_py39.py

            print("Oops, we didn't raise again, Britney 😱")
    
    
    @app.get("/items/{item_id}")
    def get_item(item_id: str, username: str = Depends(get_username)):
        if item_id == "portal-gun":
            raise InternalError(
                f"The portal gun is too dangerous to be owned by {username}"
            )
        if item_id != "plumbus":
            raise HTTPException(
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 660 bytes
    - Click Count (0)
  5. tests/test_security_api_key_header_optional.py

    from pydantic import BaseModel
    
    app = FastAPI()
    
    api_key = APIKeyHeader(name="key", auto_error=False)
    
    
    class User(BaseModel):
        username: str
    
    
    def get_current_user(oauth_header: Optional[str] = Security(api_key)):
        if oauth_header is None:
            return None
        user = User(username=oauth_header)
        return user
    
    
    @app.get("/users/me")
    def read_current_user(current_user: Optional[User] = Depends(get_current_user)):
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 2K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/app/web/admin/fileauth/AdminFileauthAction.java

         *
         * @param form the create form
         * @param username the current username
         * @param currentTime the current time
         * @return optional file authentication entity
         */
        public static OptionalEntity<FileAuthentication> getEntity(final CreateForm form, final String username, final long currentTime) {
            switch (form.crudMode) {
            case CrudMode.CREATE:
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Thu Nov 20 13:56:35 GMT 2025
    - 18.7K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/app/web/admin/reqheader/AdminReqheaderAction.java

         * @param form the form containing the request header data
         * @param username the username of the user performing the operation
         * @param currentTime the current timestamp
         * @return optional entity containing the request header data, or empty if creation fails
         */
        public static OptionalEntity<RequestHeader> getEntity(final CreateForm form, final String username, final long currentTime) {
            switch (form.crudMode) {
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Thu Nov 20 13:56:35 GMT 2025
    - 17.7K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/auth/chain/LdapChain.java

        public void delete(final User user) {
            ComponentUtil.getLdapManager().delete(user);
        }
    
        @Override
        public boolean changePassword(final String username, final String password) {
            final boolean changed = ComponentUtil.getLdapManager().changePassword(username, password);
            return !changed || ComponentUtil.getFessConfig().isLdapAdminSyncPassword();
        }
    
        @Override
        public User load(final User user) {
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 1.6K bytes
    - Click Count (0)
  9. src/cmd/asm/internal/arch/riscv64.go

    			// a conflict. This check ensures that such a conflict does not go
    			// unnoticed.
    			if _, ok := riscv64SpecialOperand[csrName]; ok {
    				panic(fmt.Sprintf("riscv64 special operand %q redefined", csrName))
    			}
    			riscv64SpecialOperand[csrName] = riscv.SpecialOperand(int(csrCode) + int(riscv.SPOP_CSR_BEGIN))
    		}
    	}
    	if opd, ok := riscv64SpecialOperand[name]; ok {
    		return opd
    	}
    	return riscv.SPOP_END
    }
    
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Fri Sep 12 08:12:45 GMT 2025
    - 2.8K bytes
    - Click Count (0)
  10. docs/ko/docs/tutorial/security/simple-oauth2.md

    # νŒ¨μŠ€μ›Œλ“œμ™€ Bearerλ₯Ό μ΄μš©ν•œ κ°„λ‹¨ν•œ OAuth2
    
    이제 이전 μž₯μ—μ„œ λΉŒλ“œν•˜κ³  λˆ„λ½λœ 뢀뢄을 μΆ”κ°€ν•˜μ—¬ μ™„μ „ν•œ λ³΄μ•ˆ 흐름을 갖도둝 ν•˜κ² μŠ΅λ‹ˆλ‹€.
    
    ## `username`와 `password` μ–»κΈ°
    
    **FastAPI** λ³΄μ•ˆ μœ ν‹Έλ¦¬ν‹°λ₯Ό μ‚¬μš©ν•˜μ—¬ `username` 및 `password`λ₯Ό κ°€μ Έμ˜¬ κ²ƒμž…λ‹ˆλ‹€.
    
    OAuth2λŠ” (μš°λ¦¬κ°€ μ‚¬μš©ν•˜κ³  μžˆλŠ”) "νŒ¨μŠ€μ›Œλ“œ ν”Œλ‘œμš°"을 μ‚¬μš©ν•  λ•Œ ν΄λΌμ΄μ–ΈνŠΈ/μœ μ €κ°€ `username` 및 `password` ν•„λ“œλ₯Ό 폼 λ°μ΄ν„°λ‘œ 보내야 함을 μ§€μ •ν•©λ‹ˆλ‹€.
    
    그리고 μ‚¬μ–‘μ—λŠ” ν•„λ“œμ˜ 이름을 κ·Έλ ‡κ²Œ μ§€μ •ν•΄μ•Ό ν•œλ‹€κ³  λ‚˜μ™€ μžˆμŠ΅λ‹ˆλ‹€. λ”°λΌμ„œ `user-name` λ˜λŠ” `email`은 μž‘λ™ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€.
    
    ν•˜μ§€λ§Œ κ±±μ •ν•˜μ§€ μ•Šμ•„λ„ λ©λ‹ˆλ‹€. ν”„λŸ°νŠΈμ—”λ“œμ—μ„œ μ΅œμ’… μ‚¬μš©μžμ—κ²Œ μ›ν•˜λŠ” λŒ€λ‘œ ν‘œμ‹œν•  수 μžˆμŠ΅λ‹ˆλ‹€.
    
    그리고 λ°μ΄ν„°λ² μ΄μŠ€ λͺ¨λΈμ€ μ›ν•˜λŠ” λ‹€λ₯Έ 이름을 μ‚¬μš©ν•  수 μžˆμŠ΅λ‹ˆλ‹€.
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Feb 15 11:19:12 GMT 2025
    - 10.8K bytes
    - Click Count (0)
Back to Top