- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 22 for Unauthorized (0.13 sec)
-
src/main/java/org/codelibs/fess/app/web/api/FessApiAction.java
/** * Pre-processes API requests by checking access authorization before executing the action. * If access is not allowed, returns an unauthorized error response. * * @param runtime the action runtime context containing request information * @return ActionResponse with unauthorized error if access denied, otherwise delegates to parent */ @Override public ActionResponse godHandPrologue(final ActionRuntime runtime) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 4.8K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessApiFailureHookTest.java
ApiResult badRequestResult = new ApiResult.ApiResponse().status(Status.BAD_REQUEST).result(); assertNotNull(badRequestResult); // Test UNAUTHORIZED status ApiResult unauthorizedResult = new ApiResult.ApiResponse().status(Status.UNAUTHORIZED).result(); assertNotNull(unauthorizedResult); // Test FAILED status
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 7K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/authenticator/JavaNetAuthenticatorTest.kt
val response = Response .Builder() .request(request) .code(401) .header("WWW-Authenticate", "Basic realm=\"User Visible Realm\"") .protocol(HTTP_2) .message("Unauthorized") .build() val authRequest = authenticator.authenticate(route, response) assertEquals( "Basic ${RecordingAuthenticator.BASE_64_CREDENTIALS}", authRequest!!.header("Authorization"),
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 2.7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/mylasta/direction/sponsor/FessApiFailureHook.java
public ApiResponse handleApplicationException(final ApiFailureResource resource, final RuntimeException cause) { if (cause instanceof LoginUnauthorizedException) { return asJson(createFailureBean(Status.UNAUTHORIZED, "Unauthorized request.")).httpStatus(HTTP_UNAUTHORIZED); } return asJson(createFailureBean(Status.BAD_REQUEST, createMessage(resource, cause))).httpStatus(HTTP_BAD_REQUEST); }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 5.8K bytes - Viewed (0) -
docs/en/docs/advanced/security/http-basic-auth.md
For the simplest cases, you can use HTTP Basic Auth. In HTTP Basic Auth, the application expects a header that contains a username and a password. If it doesn't receive it, it returns an HTTP 401 "Unauthorized" error. And returns a header `WWW-Authenticate` with a value of `Basic`, and an optional `realm` parameter. That tells the browser to show the integrated prompt for a username and password.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 5K bytes - Viewed (0) -
docs/em/docs/tutorial/security/first-steps.md
/// ## ⚫️❔ ⚫️ 🔨 ⚫️ 🔜 🚶 & 👀 📨 👈 `Authorization` 🎚, ✅ 🚥 💲 `Bearer ` ➕ 🤝, & 🔜 📨 🤝 `str`. 🚥 ⚫️ 🚫 👀 `Authorization` 🎚, ⚖️ 💲 🚫 ✔️ `Bearer ` 🤝, ⚫️ 🔜 📨 ⏮️ 4️⃣0️⃣1️⃣ 👔 📟 ❌ (`UNAUTHORIZED`) 🔗. 👆 🚫 ✔️ ✅ 🚥 🤝 🔀 📨 ❌. 👆 💪 💭 👈 🚥 👆 🔢 🛠️, ⚫️ 🔜 ✔️ `str` 👈 🤝. 👆 💪 🔄 ⚫️ ⏪ 🎓 🩺: <img src="/img/tutorial/security/image03.png"> 👥 🚫 ✔ 🔬 🤝, ✋️ 👈 ▶️ ⏪. ## 🌃
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 6.7K bytes - Viewed (0) -
docs/es/docs/advanced/security/http-basic-auth.md
# HTTP Basic Auth Para los casos más simples, puedes usar HTTP Basic Auth. En HTTP Basic Auth, la aplicación espera un header que contiene un nombre de usuario y una contraseña. Si no lo recibe, devuelve un error HTTP 401 "Unauthorized". Y devuelve un header `WWW-Authenticate` con un valor de `Basic`, y un parámetro `realm` opcional. Eso le dice al navegador que muestre el prompt integrado para un nombre de usuario y contraseña.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Dec 30 18:26:57 UTC 2024 - 5.1K bytes - Viewed (0) -
docs/de/docs/advanced/security/http-basic-auth.md
Bei HTTP Basic Auth erwartet die Anwendung einen Header, der einen Benutzernamen und ein Passwort enthält. Wenn sie diesen nicht empfängt, gibt sie den HTTP-Error 401 „Unauthorized“ zurück. Und gibt einen Header `WWW-Authenticate` mit dem Wert `Basic` und einem optionalen `realm`-Parameter („Bereich“) zurück.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Oct 27 15:25:54 UTC 2024 - 5.8K bytes - Viewed (0) -
docs/en/docs/tutorial/security/first-steps.md
If it doesn't see an `Authorization` header, or the value doesn't have a `Bearer ` token, it will respond with a 401 status code error (`UNAUTHORIZED`) directly. You don't even have to check if the token exists to return an error. You can be sure that if your function is executed, it will have a `str` in that token. You can try it already in the interactive docs:
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 8.4K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/WebApiExceptionTest.java
// Test creating multiple exceptions with different status codes WebApiException exception1 = new WebApiException(400, "Bad Request"); WebApiException exception2 = new WebApiException(401, "Unauthorized"); WebApiException exception3 = new WebApiException(500, "Internal Error"); assertEquals(400, exception1.getStatusCode()); assertEquals(401, exception2.getStatusCode());
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 9.3K bytes - Viewed (0)