- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 99 for isActive (0.06 sec)
-
docs_src/security/tutorial004_an_py310.py
return user async def get_current_active_user( current_user: Annotated[User, Depends(get_current_user)], ): if current_user.disabled: raise HTTPException(status_code=400, detail="Inactive user") return current_user @app.post("/token") async def login_for_access_token( form_data: Annotated[OAuth2PasswordRequestForm, Depends()], ) -> Token:
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Sep 29 02:57:38 UTC 2025 - 4.1K bytes - Viewed (0) -
docs/pt/docs/tutorial/security/simple-oauth2.md
{ "detail": "Not authenticated" } ``` ### Usuário inativo { #inactive-user } Agora tente com um usuário inativo, autentique-se com: User: `alice` Password: `secret2` E tente usar a operação `GET` com o caminho `/users/me`. Você receberá um erro "Usuário inativo", como: ```JSON { "detail": "Inactive user" } ``` ## Recapitulando { #recap }Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Nov 12 16:23:57 UTC 2025 - 10.3K bytes - Viewed (0) -
tests/test_tutorial/test_security/test_tutorial005.py
) response = client.get( "/users/me", headers={"Authorization": f"Bearer {access_token}"} ) assert response.status_code == 400, response.text assert response.json() == {"detail": "Inactive user"} def test_read_items(mod: ModuleType): client = TestClient(mod.app) access_token = get_access_token(scope="me items", client=client) response = client.get(Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 15.8K bytes - Viewed (0) -
docs/ko/docs/tutorial/security/simple-oauth2.md
} ``` ### 비활성된 유저 이제 비활성된 사용자로 시도하고, 인증해봅시다: 유저명: `alice` 패스워드: `secret2` 그리고 `/users/me` 경로와 함께 `GET` 작업을 사용해 봅시다. 다음과 같은 "Inactive user" 오류가 발생합니다: ```JSON { "detail": "Inactive user" } ``` ## 요약 이제 API에 대한 `username` 및 `password`를 기반으로 완전한 보안 시스템을 구현할 수 있는 도구가 있습니다. 이러한 도구를 사용하여 보안 시스템을 모든 데이터베이스 및 모든 사용자 또는 데이터 모델과 호환되도록 만들 수 있습니다.
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Feb 15 11:19:12 UTC 2025 - 10.8K bytes - Viewed (0) -
android/guava/src/com/google/common/reflect/Invokable.java
public final boolean isAbstract() { return Modifier.isAbstract(getModifiers()); } /** Returns true if the element is native. */ public final boolean isNative() { return Modifier.isNative(getModifiers()); } /** Returns true if the method is synchronized. */ public final boolean isSynchronized() { return Modifier.isSynchronized(getModifiers()); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 18.4K bytes - Viewed (0) -
tests/test_tutorial/test_security/test_tutorial004.py
response = client.get( "/users/me", headers={"Authorization": f"Bearer {access_token}"} ) assert response.status_code == 400, response.text assert response.json() == {"detail": "Inactive user"} def test_read_items(mod: ModuleType): client = TestClient(mod.app) access_token = get_access_token(client=client) response = client.get(
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 13.3K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/Platform.java
T[] result = newArray(arrayOfType, to - from); System.arraycopy(source, from, result, 0, to - from); return result; } // TODO(user): Move this logic to a utility class. @JsType(isNative = true, name = "Array", namespace = JsPackage.GLOBAL) private interface NativeArray { @JsProperty void setLength(int length); } static MapMaker tryWeakKeys(MapMaker mapMaker) {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Jun 10 15:17:16 UTC 2025 - 5.5K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/Service.java
* {@code A -> B}. * * @since 9.0 (in 1.0 as {@code com.google.common.base.Service.State}) */ enum State { /** A service in this state is inactive. It does minimal work and consumes minimal resources. */ NEW, /** A service in this state is transitioning to {@link #RUNNING}. */ STARTING, /** A service in this state is operational. */Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 10.8K bytes - Viewed (0) -
docs/zh/docs/tutorial/security/simple-oauth2.md
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 8.6K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/Service.java
* {@code A -> B}. * * @since 9.0 (in 1.0 as {@code com.google.common.base.Service.State}) */ enum State { /** A service in this state is inactive. It does minimal work and consumes minimal resources. */ NEW, /** A service in this state is transitioning to {@link #RUNNING}. */ STARTING, /** A service in this state is operational. */Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 12.2K bytes - Viewed (0)