- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 204 for userId (0.17 sec)
-
docs/ru/docs/features.md
from pydantic import BaseModel # Объявляем параметр user_id с типом `str` # и получаем поддержку редактора внутри функции def main(user_id: str): return user_id # Модель Pydantic class User(BaseModel): id: int name: str joined: date ``` Это можно использовать так: ```Python my_user: User = User(id=3, name="John Doe", joined="2018-07-19") second_user_data = {
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Aug 06 04:48:30 UTC 2024 - 16.2K bytes - Viewed (0) -
cmd/sts-handlers_test.go
case len(entities.UserMappings) != 1: c.Fatalf("Expected to find exactly one user mapping") case entities.UserMappings[0].User != testCase.expectedOutDN: c.Fatalf("Expected user DN `%s`, found `%s`", testCase.expectedOutDN, entities.UserMappings[0].User) case len(entities.UserMappings[0].Policies) != 1: c.Fatalf("Expected exactly one policy attached to user") case entities.UserMappings[0].Policies[0] != policy:
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Oct 10 23:40:37 UTC 2024 - 97.1K bytes - Viewed (0) -
tests/migrate_test.go
t.Fatalf("no view should be created, got %v", err) } query := DB.Model(&User{}). Select("users.id as users_id, users.name as users_name, pets.id as pets_id, pets.name as pets_name"). Joins("inner join pets on pets.user_id = users.id") if err := DB.Migrator().CreateView("users_pets", gorm.ViewOption{Query: query}); err != nil {
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Mar 18 11:24:16 UTC 2024 - 56.2K bytes - Viewed (0) -
src/main/java/jcifs/smb/NtlmNtHashAuthenticator.java
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ package jcifs.smb; import org.bouncycastle.util.encoders.Hex; /** * Authenticator directly specifing the user's NT hash * * @author mbechler * */ public class NtlmNtHashAuthenticator extends NtlmPasswordAuthenticator { private static final long serialVersionUID = 4328214169536360351L;
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Tue Jul 07 12:07:20 UTC 2020 - 2.5K bytes - Viewed (0) -
docs/en/docs/tutorial/security/first-steps.md
/// This is of course not the frontend for the final users, but it's a great automatic tool to document interactively all your API. It can be used by the frontend team (that can also be yourself). It can be used by third party applications and systems. And it can also be used by yourself, to debug, check and test the same application. ## The `password` flow
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 9.2K bytes - Viewed (0) -
docs/zh/docs/tutorial/dependencies/index.md
* `/items/public/` * `/items/private/` * `/users/{user_id}/activate` * `/items/pro/` 开发人员可以使用依赖项及其子依赖项为这些路径操作添加不同的权限: ```mermaid graph TB current_user(["current_user"]) active_user(["active_user"]) admin_user(["admin_user"]) paying_user(["paying_user"]) public["/items/public/"] private["/items/private/"] activate_user["/users/{user_id}/activate"] pro_items["/items/pro/"]
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 7K bytes - Viewed (0) -
docs/ru/docs/tutorial/response-model.md
У модели `BaseUser` есть некоторые поля. Затем `UserIn` наследуется от `BaseUser` и добавляет новое поле `password`. Таким образом модель будет включать в себя все поля из первой модели (родителя), а также свои собственные. Мы аннотируем возвращаемый тип функции как `BaseUser`, но фактически мы будем возвращать объект типа `UserIn`.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 30.4K bytes - Viewed (0) -
src/packaging/common/scripts/preinst
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Dec 01 09:48:15 UTC 2016 - 2.3K bytes - Viewed (0) -
docs/zh/docs/tutorial/security/get-current-user.md
## 获取用户 `get_current_user` 使用创建的(伪)工具函数,该函数接收 `str` 类型的令牌,并返回 Pydantic 的 `User` 模型: ```Python hl_lines="19-22 26-27" {!../../docs_src/security/tutorial002.py!} ``` ## 注入当前用户 在*路径操作* 的 `Depends` 中使用 `get_current_user`: ```Python hl_lines="31" {!../../docs_src/security/tutorial002.py!} ``` 注意,此处把 `current_user` 的类型声明为 Pydantic 的 `User` 模型。 这有助于在函数内部使用代码补全和类型检查。 /// tip | "提示"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3.5K bytes - Viewed (0) -
cmd/iam-object-store.go
mappedPolicies := make([]MappedPolicy, len(users)) g := errgroup.WithNErrs(len(users)) for index := range users { index := index g.Go(func() error { userName := strings.TrimSuffix(users[index], ".json") userMP, err := iamOS.loadMappedPolicyInternal(ctx, userName, userType, isGroup)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Oct 10 23:40:37 UTC 2024 - 26.6K bytes - Viewed (0)