- Sort Score
- Result 10 results
- Languages All
Results 21 - 29 of 29 for current_user (0.06 sec)
-
docs/ko/docs/tutorial/security/get-current-user.md
{* ../../docs_src/security/tutorial002.py hl[19:22,26:27] *} ## 현재 유저 주입하기 이제 *경로 작동*에서 `get_current_user`와 동일한 `Depends`를 사용할 수 있습니다. {* ../../docs_src/security/tutorial002.py hl[31] *} Pydantic 모델인 `User`로 `current_user`의 타입을 선언하는 것을 알아야 합니다. 이것은 모든 완료 및 타입 검사를 통해 함수 내부에서 우리를 도울 것입니다. /// tip | 팁 요청 본문도 Pydantic 모델로 선언된다는 것을 기억할 것입니다. 여기서 **FastAPI**는 `Depends`를 사용하고 있기 때문에 혼동되지 않습니다. /// /// check | 확인
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 4.7K bytes - Viewed (0) -
docs/ko/docs/tutorial/security/simple-oauth2.md
이는 코드에서 직접 수행해야 하며 해당 JSON 키를 사용해야 합니다. 사양을 준수하기 위해 스스로 올바르게 수행하기 위해 거의 유일하게 기억해야 하는 것입니다. 나머지는 **FastAPI**가 처리합니다. /// ## 의존성 업데이트하기 이제 의존성을 업데이트를 할 겁니다. 이 사용자가 활성화되어 있는 *경우에만* `current_user`를 가져올 겁니다. 따라서 `get_current_user`를 의존성으로 사용하는 추가 종속성 `get_current_active_user`를 만듭니다. 이러한 의존성 모두, 사용자가 존재하지 않거나 비활성인 경우 HTTP 오류를 반환합니다. 따라서 엔드포인트에서는 사용자가 존재하고 올바르게 인증되었으며 활성 상태인 경우에만 사용자를 얻습니다:
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sat Feb 15 11:19:12 UTC 2025 - 10.8K bytes - Viewed (0) -
src/main/java/jcifs/smb1/dcerpc/msrpc/srvsvc.idl
[size_is(count)] ShareInfo1 *array; } ShareInfoCtr1; typedef struct { [string] wchar_t *netname; int type; [string] wchar_t *remark; uint32_t permissions; uint32_t max_uses; uint32_t current_uses; [string] wchar_t *path; [string] wchar_t *password; uint32_t sd_size; [size_is(sd_size)] uint8_t *security_descriptor; } ShareInfo502; typedef struct { int count;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Fri Mar 22 20:39:42 UTC 2019 - 2.2K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/msrpc/srvsvc.idl
[size_is(count)] ShareInfo1 *array; } ShareInfoCtr1; typedef struct { [string] wchar_t *netname; int type; [string] wchar_t *remark; uint32_t permissions; uint32_t max_uses; uint32_t current_uses; [string] wchar_t *path; [string] wchar_t *password; uint32_t sd_size; [size_is(sd_size)] uint8_t *security_descriptor; } ShareInfo502; typedef struct { int count;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 2.2K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/srvsvcTest.java
shareInfo502.netname = "TestShare"; shareInfo502.type = 1; shareInfo502.remark = "Test Remark"; shareInfo502.permissions = 2; shareInfo502.max_uses = 10; shareInfo502.current_uses = 5; shareInfo502.path = "C:\\test"; shareInfo502.password = "password"; shareInfo502.sd_size = 2; shareInfo502.security_descriptor = new byte[] { 1, 2 };
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12K bytes - Viewed (0) -
src/main/java/jcifs/smb1/dcerpc/msrpc/srvsvc.java
/** * The maximum number of concurrent connections. */ public int max_uses; /** * The current number of connections. */ public int current_uses; /** * The local path of the share. */ public String path; /** * The share password (if any). */ public String password;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 26.3K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/msrpc/srvsvc.java
/** * The maximum number of concurrent connections. */ public int max_uses; /** * The current number of connections. */ public int current_uses; /** * The local path of the share. */ public String path; /** * The share password (if any). */ public String password;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 27K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcShareGetInfoTest.java
assertNull(info502.security_descriptor); assertEquals(0, info502.type); assertEquals(0, info502.permissions); assertEquals(0, info502.max_uses); assertEquals(0, info502.current_uses); assertEquals(0, info502.sd_size); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.3K bytes - Viewed (0) -
docs/en/docs/release-notes.md
```Python CurrentUser = Annotated[User, Depends(get_current_user)] ``` And then you can reuse this `Annotated` dependency: ```Python CurrentUser = Annotated[User, Depends(get_current_user)] @app.get("/items/") def read_items(user: CurrentUser): ... @app.post("/items/") def create_item(user: CurrentUser, item: Item): ...
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Fri Sep 05 12:48:45 UTC 2025 - 544.1K bytes - Viewed (0)