- Sort Score
- Num 10 results
- Language All
Results 201 - 210 of 649 for usernames (0.07 seconds)
-
docs/zh-hant/docs/tutorial/security/first-steps.md
OAuth2 的設計讓後端或 API 可以獨立於執行使用者驗證的伺服器。 但在這個例子中,同一個 FastAPI 應用會同時處理 API 與驗證。 簡化來看流程如下: - 使用者在前端輸入 `username` 與 `password`,按下 `Enter`。 - 前端(在使用者的瀏覽器中執行)把 `username` 與 `password` 傳到我們 API 的特定 URL(在程式中宣告為 `tokenUrl="token"`)。 - API 檢查 `username` 與 `password`,並回傳一個「token(權杖)」(我們還沒實作這部分)。 - 「token(權杖)」就是一段字串,之後可用來識別並驗證此使用者。 - 通常 token 會設定一段時間後失效。 - 因此使用者之後需要重新登入。
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 7.2K bytes - Click Count (0) -
pom.xml
</source> </sources> </mapping> <mapping> <directory>${packaging.fess.var.dir}</directory> <filemode>755</filemode> <username>${packaging.fess.user}</username> <groupname>${packaging.fess.group}</groupname> </mapping> <!-- bin --> <mapping> <directory>${packaging.fess.bin.dir}</directory> <filemode>755</filemode>
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 19 07:04:54 GMT 2026 - 49.9K bytes - Click Count (0) -
docs_src/security/tutorial006_py310.py
app = FastAPI() security = HTTPBasic() @app.get("/users/me") def read_current_user(credentials: HTTPBasicCredentials = Depends(security)):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 321 bytes - Click Count (0) -
docs/en/docs/advanced/security/oauth2-scopes.md
{* ../../docs_src/security/tutorial005_an_py310.py hl[106,108:116] *} ## Verify the `username` and data shape { #verify-the-username-and-data-shape } We verify that we get a `username`, and extract the scopes.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 13.4K bytes - Click Count (0) -
src/main/webapp/WEB-INF/orig/view/login/index.jsp
<la:form styleId="login" method="post"> <div class="input-group mb-3"> <c:set var="ph_username"> <la:message key="labels.login.placeholder_username" /> </c:set> <la:text property="username" styleId="username" class="form-control" placeholder="${ph_username}" /> <div class="input-group-append"> <span class="input-group-text"> <i class="fa fa-user fa-fw" aria-hidden="true"></i>
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Mon Feb 23 08:03:44 GMT 2026 - 3K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/auth/AuthenticationManagerTest.java
assertEquals("user" + i, chains.get(i).lastLoadedUser.getName()); } } // Helper method to create test user private User createTestUser(String username) { User user = new User(); user.setName(username); return user; } // Test implementation of AuthenticationChain private static class TestAuthenticationChain implements AuthenticationChain { int id;
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 14.3K bytes - Click Count (0) -
docs/zh-hant/docs/tutorial/extra-models.md
因此,延續上面的 `user_dict`,寫成: ```Python UserInDB(**user_dict) ``` 效果等同於: ```Python UserInDB( username="john", password="secret", email="******@****.***", full_name=None, ) ``` 更精確地說,直接使用 `user_dict`(未來內容可能有所不同)則等同於: ```Python UserInDB( username = user_dict["username"], password = user_dict["password"], email = user_dict["email"], full_name = user_dict["full_name"],Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 6.3K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/web/admin/fileconfig/AdminFileconfigAction.java
* * @param form the create form * @param username the current username * @param currentTime the current time * @return optional file configuration entity */ public static OptionalEntity<FileConfig> getEntity(final CreateForm form, final String username, final long currentTime) { switch (form.crudMode) { case CrudMode.CREATE:Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Mar 28 11:54:13 GMT 2026 - 21.8K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/NtlmContextTest.java
@ExtendWith(MockitoExtension.class) class NtlmContextTest { @Mock private NtlmPasswordAuthentication mockAuth; private final String domain = "TEST_DOMAIN"; private final String username = "testUser"; private final String password = "testPassword"; private final String workstation = "TEST_WORKSTATION"; @BeforeEach void setUp() { // MockitoExtension handles mock initializationCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 8.9K bytes - Click Count (0) -
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)