Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 1,054 for Simple (0.06 seconds)

  1. docs/en/docs/tutorial/security/simple-oauth2.md

    # Simple OAuth2 with Password and Bearer { #simple-oauth2-with-password-and-bearer }
    
    Now let's build from the previous chapter and add the missing parts to have a complete security flow.
    
    ## Get the `username` and `password` { #get-the-username-and-password }
    
    We are going to use **FastAPI** security utilities to get the `username` and `password`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 9.4K bytes
    - Click Count (0)
  2. docs/zh/docs/tutorial/security/simple-oauth2.md

    # OAuth2 实现简单的 Password 和 Bearer 验证 { #simple-oauth2-with-password-and-bearer }
    
    本章添加上一章示例中欠缺的部分,实现完整的安全流。
    
    ## 获取 `username` 和 `password` { #get-the-username-and-password }
    
    首先,使用 **FastAPI** 安全工具获取 `username` 和 `password`。
    
    OAuth2 规范要求使用“密码流”时,客户端或用户必须以表单数据形式发送 `username` 和 `password` 字段。
    
    并且,这两个字段必须命名为 `username` 和 `password`,不能使用 `user-name` 或 `email` 等其它名称。
    
    不过也不用担心,前端仍可以显示终端用户所需的名称。
    
    数据库模型也可以使用所需的名称。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 9K bytes
    - Click Count (0)
  3. docs/zh-hant/docs/tutorial/security/simple-oauth2.md

    # 簡易 OAuth2:Password 與 Bearer { #simple-oauth2-with-password-and-bearer }
    
    現在從上一章延伸,補上缺少的部分,完成整個安全流程。
    
    ## 取得 `username` 與 `password` { #get-the-username-and-password }
    
    我們要使用 **FastAPI** 提供的安全性工具來取得 `username` 與 `password`。
    
    OAuth2 規範中,當使用「password flow」(我們現在使用的)時,用戶端/使用者必須以表單資料送出 `username` 與 `password` 欄位。
    
    而且規範要求欄位名稱必須就是這兩個,所以像是 `user-name` 或 `email` 都不行。
    
    但別擔心,你在前端要怎麼呈現給最終使用者都可以。
    
    而你的資料庫模型也可以使用任何你想要的欄位名稱。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 9.1K bytes
    - Click Count (0)
  4. compat/maven-model-builder/src/test/resources/poms/factory/simple.xml

          <properties>
            <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
          </properties>
        </profile>
        <profile>
          <id>file</id>
          <activation>
            <file>
              <exists>simple.xml</exists>
            </file>
          </activation>
          <properties>
            <profile.file>activated</profile.file>
          </properties>
        </profile>
      </profiles>
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 2.4K bytes
    - Click Count (0)
  5. compat/maven-settings-builder/src/test/resources/settings/factory/simple.xml

    Elliotte Rusty Harold <******@****.***> 1753117790 +0000
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Jul 21 17:09:50 GMT 2025
    - 942 bytes
    - Click Count (0)
  6. tests/test_security_http_basic_realm.py

        assert response.headers["WWW-Authenticate"] == 'Basic realm="simple"'
    
    
    def test_security_http_basic_invalid_credentials():
        response = client.get(
            "/users/me", headers={"Authorization": "Basic notabase64token"}
        )
        assert response.status_code == 401, response.text
        assert response.headers["WWW-Authenticate"] == 'Basic realm="simple"'
        assert response.json() == {"detail": "Not authenticated"}
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 2.7K bytes
    - Click Count (0)
  7. benchmarks/build.gradle

      painless
    }
    
    dependencies {
      api(project(":server")) {
        // JMH ships with the conflicting version 4.6. This prevents us from using jopt-simple in benchmarks (which should be ok) but allows
        // us to invoke the JMH uberjar as usual.
        exclude group: 'net.sf.jopt-simple', module: 'jopt-simple'
      }
      expression(project(path: ':modules:lang-expression', configuration: 'zip'))
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 08 22:04:23 GMT 2021
    - 2.5K bytes
    - Click Count (0)
  8. tests/test_security_http_basic_realm_description.py

        assert response.headers["WWW-Authenticate"] == 'Basic realm="simple"'
    
    
    def test_security_http_basic_invalid_credentials():
        response = client.get(
            "/users/me", headers={"Authorization": "Basic notabase64token"}
        )
        assert response.status_code == 401, response.text
        assert response.headers["WWW-Authenticate"] == 'Basic realm="simple"'
        assert response.json() == {"detail": "Not authenticated"}
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 2.9K bytes
    - Click Count (0)
  9. docs/en/docs/tutorial/dependencies/index.md

    * external APIs
    * authentication and authorization systems
    * API usage monitoring systems
    * response data injection systems
    * etc.
    
    ## Simple and Powerful { #simple-and-powerful }
    
    Although the hierarchical dependency injection system is very simple to define and use, it's still very powerful.
    
    You can define dependencies that in turn can define dependencies themselves.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 9.5K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/core/exception/ClRuntimeException.java

            return args;
        }
    
        @Override
        public String getMessage() {
            return message;
        }
    
        /**
         * Returns a simple message without a message code.
         *
         * @return simple message without message code
         */
        public final String getSimpleMessage() {
            return simpleMessage;
        }
    
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat Jul 05 00:11:05 GMT 2025
    - 3.1K bytes
    - Click Count (0)
Back to Top