- Sort Score
- Num 10 results
- Language All
Results 181 - 190 of 703 for surname (0.05 seconds)
-
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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)