Results of 1 - 6 of about 6 for encode (0.010 sec.)
- OAuth2 scopes 11643
- OAuth2 scopes Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . You can use OAuth2 scopes directly with FastAPI , they are integrated to work seamlessly. This would
...password ): return False return user def create_access_token ( data : dict , expires_delta : timedelta | None = None ): to_encode = data . copy () if expires_delta : expire = datetime . now ( timezone . utc ) + expires_delta else : expire = datetime ....now ( timezone . utc ) + timedelta ( minutes = 15 ) to_encode . update ({ "exp" : expire }) encoded_jwt = jwt . encode ( to_encode , SECRET_KEY , algorithm = ALGORITHM ) return encoded...: return False return user def create_access_token ( data : dict , expires_delta : Union [ timedelta , None ] = None ): to_encode = data . copy () if expires_delta : expire = datetime . now ( timezone . utc ) + expires_delta else : expire = datetime .... - https://man.mtool.work/fastapi/0.115/advanced/security/oauth2-scopes/
- パスワード(およびハッシュ化)によるOAuth2、JWTトークンによるBearer 11479
- パスワード(およびハッシュ化)によるOAuth2、JWTトークンによるBearer これでセキュリティの流れが全てわかったので、 JWT トークンと安全なパスワードのハッシュ化を使用して、実際にアプリケーションを安全にしてみましょう。 このコードは、アプリケーシ
...: return False return user def create_access_token ( data : dict , expires_delta : Union [ timedelta , None ] = None ): to_encode = data . copy () if expires_delta : expire = datetime . now ( timezone . utc ) + expires_delta else : expire = datetime ....now ( timezone . utc ) + timedelta ( minutes = 15 ) to_encode . update ({ "exp" : expire }) encoded_jwt = jwt . encode ( to_encode , SECRET_KEY , algorithm = ALGORITHM ) return encoded...password ): return False return user def create_access_token ( data : dict , expires_delta : timedelta | None = None ): to_encode = data . copy () if expires_delta : expire = datetime . now ( timezone . utc ) + expires_delta else : expire = datetime .... - https://man.mtool.work/fastapi/0.115/tutorial/security/oauth2-jwt/
- HTTP Basic Auth 9212
- HTTP Basic Auth Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . For the simplest cases, you can use HTTP Basic Auth. In HTTP Basic Auth, the application expects a
...edentials : Annotated [ HTTPBasicCredentials , Depends ( security )], ): current_username_bytes = credentials . username . encode ( "utf8" ) correct_username_bytes = b "stanleyjobson" is_correct_username = secrets . compare_digest ( current_username_by...tes , correct_username_bytes ) current_password_bytes = credentials . password . encode ( "utf8" ) correct_password_bytes = b "swordfish" is_correct_password = secrets . compare_digest ( current_password_bytes...edentials : Annotated [ HTTPBasicCredentials , Depends ( security )], ): current_username_bytes = credentials . username . encode ( "utf8" ) correct_username_bytes = b "stanleyjobson" is_correct_username = secrets . compare_digest ( current_username_by... - https://man.mtool.work/fastapi/0.115/advanced/security/http-basic-auth/
- FastAPIを応援 - ヘルプの入手 7567
- FastAPIを応援 - ヘルプの入手 FastAPI は気に入りましたか? FastAPIやユーザーや開発者を応援したいですか? もしくは、 FastAPI についてヘルプが必要ですか? とても簡単に応援できます (ただ1、2回クリックするだけのものもあります)。 また、ヘルプを入手す
...、FastAPIはStarletteとPydanticという巨人の肩に乗っています。 以下のスポンサーになることもできます: Samuel Colvin (Pydantic) Encode (Starlette, Uvicorn) Thanks! ?... - https://man.mtool.work/fastapi/0.115/help-fastapi/
- WebSocket 7476
- WebSocket FastAPI で WebSocket が使用できます。 WebSockets のインストール まず WebSockets のインストールが必要です。 $ pip install websockets ---> 100% WebSocket クライアント 本番環境 本番環境では、React、Vue.js、Angularなどの最新のフレーム
...とに注意してください。 もしFastAPIと簡単に統合できて、RedisやPostgreSQLなどでサポートされている、より堅牢なものが必要なら、 encode/broadcaster を確認してください。 その他のドキュメント オプションの詳細については、Starletteのドキュメントを確認してください... - https://man.mtool.work/fastapi/0.115/advanced/websockets/
- Release Notes 7403
- Release Notes Latest Changes 0.115.11 Fixes ? Add docs examples and tests (support) for Annotated custom validations, like AfterValidator , revert #13440 . PR #13442 by @tiangolo . New docs: Query Parameters and String Validations - Custom
...ludes in docs/fr/docs/tutorial/background-tasks.md . PR #12600 by @kantandane . ? Update includes in docs/en/docs/tutorial/encoder.md . PR #12597 by @tonyjly . ? Update includes in docs/en/docs/how-to/custom-docs-ui-assets.md . PR #12557 by @philipokio...ocs/tutorial/request-forms-and-files.md . PR #10368 by @nilslindemann . ? Add German translation for docs/de/docs/tutorial/encoder.md . PR #10385 by @nilslindemann . ? Add German translation for docs/de/docs/tutorial/request-forms.md . PR #10361 by @ni...ocs/tr/docs/tutorial/query-params.md . PR #11162 by @hasansezertasan . ? Add German translation for docs/de/docs/reference/encoders.md . PR #10840 by @nilslindemann . ? Add German translation for docs/de/docs/reference/responses.md . PR #10825 by @nils... - https://man.mtool.work/fastapi/0.115/release-notes/
PREV
1
NEXT