Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 159 for UserName (0.2 sec)

  1. docs/zh/docs/tutorial/security/get-current-user.md

        而不是局限于只能有一个返回该类型数据的依赖项。
    
    
    ## 其它模型
    
    接下来,直接在*路径操作函数*中获取当前用户,并用 `Depends` 在**依赖注入**系统中处理安全机制。
    
    开发者可以使用任何模型或数据满足安全需求(本例中是 Pydantic 的 `User` 模型)。
    
    而且,不局限于只能使用特定的数据模型、类或类型。
    
    不想在模型中使用 `username`,而是使用 `id` 和 `email`?当然可以。这些工具也支持。
    
    只想使用字符串?或字典?甚至是数据库类模型的实例?工作方式都一样。
    
    实际上,就算登录应用的不是用户,而是只拥有访问令牌的机器人、程序或其它系统?工作方式也一样。
    
    尽管使用应用所需的任何模型、类、数据库。**FastAPI** 通过依赖注入系统都能帮您搞定。
    
    
    ## 代码大小
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 22:46:46 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  2. cmd/admin-handlers-idp-ldap.go

    		// We still need to ensure that the target user is a valid LDAP user.
    		//
    		// The target user may be supplied as a (short) username or a DN.
    		// However, for now, we only support using the short username.
    
    		isDN := globalIAMSys.LDAPConfig.ParsesAsDN(targetUser)
    		opts.claims[ldapUserN] = targetUser // simple username
    		targetUser, targetGroups, err = globalIAMSys.LDAPConfig.LookupUserDN(targetUser)
    		if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 13.3K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_dependencies/test_tutorial012_an.py

                "X-Token": "fake-super-secret-token",
                "X-Key": "fake-super-secret-key",
            },
        )
        assert response.status_code == 200, response.text
        assert response.json() == [{"username": "Rick"}, {"username": "Morty"}]
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "openapi": "3.1.0",
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_dependencies/test_tutorial012.py

                "X-Token": "fake-super-secret-token",
                "X-Key": "fake-super-secret-key",
            },
        )
        assert response.status_code == 200, response.text
        assert response.json() == [{"username": "Rick"}, {"username": "Morty"}]
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "openapi": "3.1.0",
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  5. docs/ko/docs/tutorial/security/get-current-user.md

    그리고 보안 요구 사항에 대한 모든 모델 또는 데이터를 사용할 수 있습니다(이 경우 Pydantic 모델 `User`).
    
    그러나 일부 특정 데이터 모델, 클래스 또는 타입을 사용하도록 제한되지 않습니다.
    
    모델에 `id`와 `email`이 있고 `username`이 없길 원하십니까? 맞습니다. 이들은 동일한 도구를 사용할 수 있습니다.
    
    `str`만 갖고 싶습니까? 아니면 그냥 `dict`를 갖고 싶습니까? 아니면 데이터베이스 클래스 모델 인스턴스를 직접 갖고 싶습니까? 그들은 모두 같은 방식으로 작동합니다.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  6. src/main/resources/fess_label.properties

    labels.request_error_title=Bad Request
    labels.bad_request=Invalid request for the url.
    labels.page_not_found_title=Page Not Found
    labels.check_url=Check the url.
    labels.user_name=Username
    labels.login=Login
    labels.login.placeholder_username=Username
    labels.login.placeholder_password=Password
    labels.login.title=Login
    labels.index_label=Labels
    labels.index_lang=Preferred Languages
    labels.index_sort=Sort
    Properties
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Fri Mar 22 11:58:34 GMT 2024
    - 40.7K bytes
    - Viewed (1)
  7. src/main/resources/fess_label_en.properties

    labels.request_error_title=Bad Request
    labels.bad_request=Invalid request for the url.
    labels.page_not_found_title=Page Not Found
    labels.check_url=Check the url.
    labels.user_name=Username
    labels.login=Login
    labels.login.placeholder_username=Username
    labels.login.placeholder_password=Password
    labels.login.title=Login
    labels.index_label=Labels
    labels.index_lang=Preferred Languages
    labels.index_sort=Sort
    Properties
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Fri Mar 22 11:58:34 GMT 2024
    - 40.7K bytes
    - Viewed (0)
  8. docs/pt/docs/tutorial/body-multiple-params.md

    ```JSON
    {
        "item": {
            "name": "Foo",
            "description": "The pretender",
            "price": 42.0,
            "tax": 3.2
        },
        "user": {
            "username": "dave",
            "full_name": "Dave Grohl"
        }
    }
    ```
    
    !!! note "Nota"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 6K bytes
    - Viewed (0)
  9. cmd/storage-rest-server.go

    		var username string
    		if u, err := user.Current(); err == nil {
    			username = u.Username
    		} else {
    			username = "<your-username>"
    		}
    		var hint string
    		if endpoint.URL != nil {
    			hint = fmt.Sprintf("Run the following command to add write permissions: `sudo chown -R %s %s && sudo chmod u+rxw %s`",
    				username, endpoint.Path, endpoint.Path)
    		} else {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 44.8K bytes
    - Viewed (0)
  10. internal/config/notify/help.go

    			Description: "Kafka topic used for bucket notifications",
    			Optional:    true,
    			Type:        "string",
    		},
    		config.HelpKV{
    			Key:         target.KafkaSASLUsername,
    			Description: "username for SASL/PLAIN or SASL/SCRAM authentication",
    			Optional:    true,
    			Type:        "string",
    			Sensitive:   true,
    		},
    		config.HelpKV{
    			Key:         target.KafkaSASLPassword,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Mar 19 04:37:54 GMT 2024
    - 18.8K bytes
    - Viewed (0)
Back to top