- Sort Score
- Num 10 results
- Language All
Results 21 - 30 of 121 for unauthorized (0.07 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
docs/en/docs/tutorial/security/simple-oauth2.md
/// info The additional header `WWW-Authenticate` with value `Bearer` we are returning here is also part of the spec. Any HTTP (error) status code 401 "UNAUTHORIZED" is supposed to also return a `WWW-Authenticate` header. In the case of bearer tokens (our case), the value of that header should be `Bearer`. You can actually skip that extra header and it would still work.
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) -
docs/zh-hant/docs/tutorial/security/first-steps.md
/// ## 它做了什麼 { #what-it-does } 它會從請求中尋找 `Authorization` 標頭,檢查其值是否為 `Bearer ` 加上一段 token,並將該 token 以 `str` 回傳。 若未找到 `Authorization` 標頭,或其值不是 `Bearer ` token,則會直接回傳 401(`UNAUTHORIZED`)錯誤。 你不必再自行檢查 token 是否存在;你可以確信只要你的函式被執行,該 token 參數就一定會是 `str`。 你可以在互動式文件中試試看: <img src="/img/tutorial/security/image03.png"> 我們還沒驗證 token 是否有效,但這已是個開始。 ## 小結 { #recap }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) -
docs/zh/docs/tutorial/security/first-steps.md
/// ## 它做了什么 { #what-it-does } 它会在请求中查找 `Authorization` 请求头,检查其值是否为 `Bearer ` 加上一些令牌,并将该令牌作为 `str` 返回。 如果没有 `Authorization` 请求头,或者其值不包含 `Bearer ` 令牌,它会直接返回 401 状态码错误(`UNAUTHORIZED`)。 你甚至无需检查令牌是否存在即可返回错误;只要你的函数被执行,就可以确定会拿到一个 `str` 类型的令牌。 你已经可以在交互式文档中试试了: <img src="/img/tutorial/security/image03.png"> 我们还没有验证令牌是否有效,但这已经是一个良好的开端。 ## 小结 { #recap }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 7.5K bytes - Click Count (0) -
docs/zh-hant/docs/tutorial/security/simple-oauth2.md
因此,在端點中,只有在使用者存在、已正確驗證且為啟用狀態時,我們才會取得使用者: {* ../../docs_src/security/tutorial003_an_py310.py hl[58:66,69:74,94] *} /// info 這裡我們一併回傳值為 `Bearer` 的額外標頭 `WWW-Authenticate`,這也是規範的一部分。 任何 HTTP(錯誤)狀態碼 401「UNAUTHORIZED」都應該同時回傳 `WWW-Authenticate` 標頭。 在 bearer tokens(我們的情況)下,該標頭的值應該是 `Bearer`。 其實你可以省略這個額外標頭,功能仍會正常。 但此處加上它是為了遵循規範。 同時也可能有工具會期待並使用它(現在或未來),而這可能對你或你的使用者有幫助,現在或未來皆然。 這就是標準的好處... ///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) -
docs/zh/docs/tutorial/security/simple-oauth2.md
因此,在端点中,只有当用户存在、通过身份验证、且状态为激活时,才能获得该用户: {* ../../docs_src/security/tutorial003_an_py310.py hl[58:66,69:74,94] *} /// info | 信息 此处返回值为 `Bearer` 的响应头 `WWW-Authenticate` 也是规范的一部分。 任何 401“UNAUTHORIZED”HTTP(错误)状态码都应返回 `WWW-Authenticate` 响应头。 本例中,因为使用的是 Bearer Token,该响应头的值应为 `Bearer`。 实际上,忽略这个附加响应头,也不会有什么问题。 之所以在此提供这个附加响应头,是为了符合规范的要求。 说不定什么时候,就有工具用得上它,而且,开发者或用户也可能用得上。 这就是遵循标准的好处...Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 9K bytes - Click Count (0) -
src/main/resources/fess_message.properties
errors.invalid_header_for_request_file=Invalid header line: {0} errors.could_not_delete_logged_in_user=You cannot delete a user who is logged in. errors.unauthorized_request=Unauthorized request. errors.failed_to_print_thread_dump=Failed to print a thread dump. errors.file_is_not_supported={0} is not supported. errors.plugin_file_is_not_found={0} is not found.Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Mar 28 06:59:19 GMT 2026 - 12.4K bytes - Click Count (0) -
src/main/resources/fess_message_en.properties
errors.invalid_header_for_request_file=Invalid header line: {0} errors.could_not_delete_logged_in_user=You cannot delete a user who is logged in. errors.unauthorized_request=Unauthorized request. errors.failed_to_print_thread_dump=Failed to print a thread dump. errors.file_is_not_supported={0} is not supported. errors.plugin_file_is_not_found={0} is not found.Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Mar 28 06:59:19 GMT 2026 - 12.4K bytes - Click Count (0) -
docs/ja/docs/advanced/security/http-basic-auth.md
# HTTP Basic 認証 { #http-basic-auth } 最もシンプルなケースでは、HTTP Basic 認証を利用できます。 HTTP Basic 認証では、アプリケーションはユーザー名とパスワードを含むヘッダーを期待します。 それを受け取れない場合、HTTP 401 "Unauthorized" エラーを返します。 そして、値が `Basic` のヘッダー `WWW-Authenticate` を、任意の `realm` パラメータとともに返します。 これにより、ブラウザは組み込みのユーザー名とパスワード入力プロンプトを表示します。 その後、そのユーザー名とパスワードを入力すると、ブラウザはそれらをヘッダーに自動的に付与して送信します。 ## シンプルな HTTP Basic 認証 { #simple-http-basic-auth }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 6.4K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/sso/spnego/SpnegoAuthenticator.java
} if (status) { return new ActionResponseCredential(() -> { throw new RequestLoggingFilter.RequestClientErrorException("Your request is not authorized.", "401 Unauthorized", HttpServletResponse.SC_UNAUTHORIZED); }); } // assert if (null == principal) {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Mar 15 08:18:23 GMT 2026 - 18.2K bytes - Click Count (3) -
src/test/java/org/codelibs/fess/util/WebApiUtilTest.java
try { WebApiUtil.setError(200, "OK"); WebApiUtil.setError(201, "Created"); WebApiUtil.setError(400, "Bad Request"); WebApiUtil.setError(401, "Unauthorized"); WebApiUtil.setError(403, "Forbidden"); WebApiUtil.setError(404, "Not Found"); WebApiUtil.setError(500, "Internal Server Error"); WebApiUtil.setError(502, "Bad Gateway");Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 17.4K bytes - Click Count (0)