Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 211 - 220 of 645 for usernames (0.06 seconds)

  1. docs/ru/docs/advanced/security/oauth2-scopes.md

    {* ../../docs_src/security/tutorial005_an_py310.py hl[106,108:116] *}
    
    ## Проверка `username` и формата данных { #verify-the-username-and-data-shape }
    
    Мы проверяем, что получили `username`, и извлекаем scopes.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 20.6K bytes
    - Click Count (0)
  2. docs/zh-hant/docs/advanced/security/oauth2-scopes.md

    ## 驗證 `username` 與資料結構 { #verify-the-username-and-data-shape }
    
    我們先確認取得了 `username`,並取出 scopes。
    
    接著用 Pydantic 模型驗證這些資料(捕捉 `ValidationError` 例外),若在讀取 JWT token 或用 Pydantic 驗證資料時出錯,就丟出先前建立的 `HTTPException`。
    
    為此,我們更新了 Pydantic 模型 `TokenData`,加入新屬性 `scopes`。
    
    透過 Pydantic 驗證資料,我們可以確保,例如,scopes 正好是 `list` 的 `str`,而 `username` 是 `str`。
    
    否則若是 `dict` 或其他型別,可能在後續某處使應用壞掉,造成安全風險。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 12.7K bytes
    - Click Count (0)
  3. docs/pt/docs/advanced/security/http-basic-auth.md

        * Isto contém o `username` e o `password` enviado.
    
    {* ../../docs_src/security/tutorial006_an_py310.py hl[4,8,12] *}
    
    Quando você tentar abrir a URL pela primeira vez (ou clicar no botão "Executar" na documentação) o navegador vai pedir pelo seu usuário e senha:
    
    <img src="/img/tutorial/security/image12.png">
    
    ## Verifique o usuário { #check-the-username }
    
    Aqui está um exemplo mais completo.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 5.2K bytes
    - Click Count (0)
  4. src/test/java/jcifs/config/PropertyConfigurationTest.java

            parentProps.setProperty("jcifs.smb.client.domain", "parentdomain");
            parentProps.setProperty("jcifs.smb.client.username", "parentuser");
    
            Properties childProps = new Properties(parentProps);
            childProps.setProperty("jcifs.smb.client.username", "childuser");
    
            // When
            PropertyConfiguration testConfig = new PropertyConfiguration(childProps);
    
            // Then
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.3K bytes
    - Click Count (0)
  5. docs/zh/docs/features.md

    ![editor support](https://fastapi.tiangolo.com/img/pycharm-completion.png)
    
    你将能进行代码补全,这是在之前你可能曾认为不可能的事。例如,在来自请求 JSON 体(可能是嵌套的)中的键 `price`。
    
    不会再输错键名,来回翻看文档,或者来回滚动寻找你最后使用的 `username` 或者 `user_name`。
    
    ### 简洁 { #short }
    
    任何类型都有合理的**默认值**,任何和地方都有可选配置。所有的参数被微调,来满足你的需求,定义成你需要的 API。
    
    但是默认情况下,一切都能**“顺利工作”**。
    
    ### 验证 { #validation }
    
    * 校验大部分(甚至所有?)的 Python **数据类型**,包括:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 8.7K bytes
    - Click Count (0)
  6. docs_src/dependencies/tutorial008d_py310.py

            raise
    
    
    @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 Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 694 bytes
    - Click Count (0)
  7. docs/tr/docs/tutorial/security/oauth2-jwt.md

    {* ../../docs_src/security/tutorial004_an_py310.py hl[8,49,51,58:59,62:63,72:79] *}
    
    `authenticate_user`, veritabanında var olmayan bir username ile çağrıldığında, yine de sahte (dummy) bir hash'e karşı `verify_password` çalıştırıyoruz.
    
    Bu, username geçerli olsun ya da olmasın endpoint'in yaklaşık aynı sürede yanıt vermesini sağlar; böylece mevcut username'leri saymaya yarayabilecek zamanlama saldırılarını (timing attacks) engeller.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 12.1K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/app/web/admin/pathmap/AdminPathmapAction.java

            final SystemHelper systemHelper = ComponentUtil.getSystemHelper();
            final String username = systemHelper.getUsername();
            final long currentTime = systemHelper.getCurrentTimeAsLong();
            return getEntity(form, username, currentTime).map(entity -> {
                entity.setUpdatedBy(username);
                entity.setUpdatedTime(currentTime);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Nov 20 13:56:35 GMT 2025
    - 15.4K bytes
    - Click Count (0)
  9. samples/guide/src/main/java/okhttp3/recipes/PreemptiveAuth.java

      static final class BasicAuthInterceptor implements Interceptor {
        private final String credentials;
        private final String host;
    
        BasicAuthInterceptor(String host, String username, String password) {
          this.credentials = Credentials.basic(username, password);
          this.host = host;
        }
    
        @Override public Response intercept(Chain chain) throws IOException {
          Request request = chain.request();
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Mon Nov 05 07:46:46 GMT 2018
    - 2.1K bytes
    - Click Count (0)
  10. docs_src/dependencies/tutorial008d_an_py310.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 Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 734 bytes
    - Click Count (0)
Back to Top