- Sort Score
- Num 10 results
- Language All
Results 211 - 220 of 314 for authenticate (0.07 seconds)
-
src/test/java/jcifs/smb/SmbSessionInternalTest.java
} // Happy path: reauthenticate completes without exception @Test @DisplayName("reauthenticate performs call without exception") void reauthenticate_happy() throws CIFSException { session.reauthenticate(); verify(session).reauthenticate(); } // Error propagation: reauthenticate throws CIFSException @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 6.8K bytes - Click Count (0) -
tests/test_tutorial/test_authentication_error_status_code/test_tutorial001.py
assert response.status_code == 200 assert response.json() == { "message": "You are authenticated", "token": "secrettoken", } def test_get_me_no_credentials(client: TestClient): response = client.get("/me") assert response.status_code == 403 assert response.json() == {"detail": "Not authenticated"} def test_openapi_schema(client: TestClient): response = client.get("/openapi.json")Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 1.9K bytes - Click Count (0) -
src/main/java/jcifs/smb/JAASAuthenticator.java
import org.slf4j.LoggerFactory; import jcifs.CIFSException; /** * JAAS kerberos authenticator * * Either configure JAAS for credential caching or reuse a single instance of this authenticator -otherwise you won't * get proper ticket caching. * * Be advised that short/NetBIOS name usage is not supported with this authenticator. Always specify full FQDNs/Realm.
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 8.3K bytes - Click Count (1) -
src/test/java/org/codelibs/fess/sso/spnego/SpnegoAuthenticatorTest.java
super.tearDown(testInfo); } @Test public void test_authenticatorInstantiation() { // Verify authenticator can be instantiated without errors SpnegoAuthenticator authenticator = new SpnegoAuthenticator(); assertNotNull(authenticator); } @Test public void test_spnegoConfigClass() { // Verify the inner class is named correctly: SpnegoConfig (not SpengoConfig)
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 4.8K bytes - Click Count (0) -
tests/test_security_oauth2_authorization_code_bearer.py
assert response.status_code == 401, response.text assert response.json() == {"detail": "Not authenticated"} def test_incorrect_token(): response = client.get("/items", headers={"Authorization": "Non-existent testtoken"}) assert response.status_code == 401, response.text assert response.json() == {"detail": "Not authenticated"} def test_token():Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 2.7K bytes - Click Count (0) -
docs_src/authentication_error_status_code/tutorial001_an_py310.py
return HTTPException( status_code=status.HTTP_403_FORBIDDEN, detail="Not authenticated" ) CredentialsDep = Annotated[HTTPAuthorizationCredentials, Depends(HTTPBearer403())] @app.get("/me") def read_me(credentials: CredentialsDep):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 618 bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Interceptor.kt
/** * Returns the [Authenticator] for the OkHttpClient, or an override from the Call.Chain. */ val authenticator: Authenticator /** * Override the [Authenticator] for the Call.Chain. * * @throws IllegalStateException if this is a Network Interceptor, since the override is too late. */ fun withAuthenticator(authenticator: Authenticator): Chain /**Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Mar 10 21:47:20 GMT 2026 - 8.9K bytes - Click Count (0) -
tests/test_security_oauth2_authorization_code_bearer_description.py
assert response.status_code == 401, response.text assert response.json() == {"detail": "Not authenticated"} def test_incorrect_token(): response = client.get("/items", headers={"Authorization": "Non-existent testtoken"}) assert response.status_code == 401, response.text assert response.json() == {"detail": "Not authenticated"} def test_token():Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 2.5K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/RecordingAuthenticator.kt
* limitations under the License. */ package okhttp3.internal import java.net.Authenticator import java.net.PasswordAuthentication class RecordingAuthenticator( private val authentication: PasswordAuthentication? = PasswordAuthentication( "username", "password".toCharArray(), ), ) : Authenticator() { val calls = mutableListOf<String>()
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 1.4K bytes - Click Count (0) -
src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTest.java
} /** * Test that closed authenticator prevents all sensitive operations */ @Test @DisplayName("Test closed authenticator blocks all sensitive operations") public void testClosedAuthenticatorBlocking() throws Exception { NtlmPasswordAuthenticator auth = new NtlmPasswordAuthenticator("DOMAIN", "user", "BlockedPass123!"); // Close the authenticator auth.close();Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 23.3K bytes - Click Count (0)