- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 269 for Basic (0.18 sec)
-
tests/test_tutorial/test_security/test_tutorial006.py
assert response.headers["WWW-Authenticate"] == "Basic" def test_security_http_basic_invalid_credentials(): response = client.get( "/users/me", headers={"Authorization": "Basic notabase64token"} ) assert response.status_code == 401, response.text assert response.headers["WWW-Authenticate"] == "Basic" assert response.json() == {"detail": "Invalid authentication credentials"}
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Jun 30 18:25:16 GMT 2023 - 2.3K bytes - Viewed (0) -
maven-core/src/test/java/org/apache/maven/lifecycle/LifecycleExecutorTest.java
"beforeProjectExecution project-basic", // "beforeProjectLifecycleExecution project-basic", // "beforeMojoExecution project-basic:default-resources", // "afterMojoExecutionSuccess project-basic:default-resources", // "beforeMojoExecution project-basic:default-compile", // "afterMojoExecutionSuccess project-basic:default-compile", //
Java - Registered: Sun Apr 28 03:35:10 GMT 2024 - Last Modified: Tue Jan 09 20:57:17 GMT 2024 - 24.7K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/Credentials.kt
object Credentials { /** Returns an auth credential for the Basic scheme. */ @JvmStatic @JvmOverloads fun basic( username: String, password: String, charset: Charset = ISO_8859_1, ): String { val usernameAndPassword = "$username:$password" val encoded = usernameAndPassword.encode(charset).base64() return "Basic $encoded" }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 1.1K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/sso/spnego/SpnegoAuthenticator.java
protected static final String SPNEGO_PROMPT_NTLM = "spnego.prompt.ntlm"; protected static final String SPNEGO_ALLOW_UNSECURE_BASIC = "spnego.allow.unsecure.basic"; protected static final String SPNEGO_ALLOW_BASIC = "spnego.allow.basic"; protected static final String SPNEGO_PREAUTH_PASSWORD = "spnego.preauth.password"; protected static final String SPNEGO_PREAUTH_USERNAME = "spnego.preauth.username";
Java - Registered: Mon May 06 08:04:11 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 11.2K bytes - Viewed (0) -
okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt
url = server.url("/api/login?user=test_user&authentication=basic&password=confidential_password") val networkInterceptor = HttpLoggingInterceptor(networkLogs).setLevel( Level.BASIC, ) networkInterceptor.redactQueryParams("user", "passWord") val applicationInterceptor = HttpLoggingInterceptor(applicationLogs).setLevel( Level.BASIC, )
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 06 09:14:38 GMT 2024 - 37.6K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/authenticator/JavaNetAuthenticator.kt
val request = response.request val url = request.url val proxyAuthorization = response.code == 407 val proxy = route?.proxy ?: Proxy.NO_PROXY for (challenge in challenges) { if (!"Basic".equals(challenge.scheme, ignoreCase = true)) { continue } val dns = route?.address?.dns ?: defaultDns val auth = if (proxyAuthorization) {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 3.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/authenticator/JavaNetAuthenticatorTest.kt
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"), ) }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 2.7K bytes - Viewed (0) -
fastapi/security/oauth2.py
client_id: optional string. OAuth2 recommends sending the client_id and client_secret (if any) using HTTP Basic auth, as: client_id:client_secret client_secret: optional string. OAuth2 recommends sending the client_id and client_secret (if any) using HTTP Basic auth, as: client_id:client_secret """ def __init__( self, grant_type: Annotated[ str,
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Apr 02 02:48:51 GMT 2024 - 21.1K bytes - Viewed (1) -
okhttp/src/test/java/okhttp3/URLConnectionTest.kt
MockResponse( code = 401, headers = headersOf("WWW-Authenticate", "Basic realm=\"protected area\""), ), ) server.enqueue( MockResponse(body = "c"), ) val authenticator = RecordingOkAuthenticator( basic("jesse", "peanutbutter"), "Basic", ) client = client.newBuilder() .authenticator(authenticator)
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Jan 20 10:30:28 GMT 2024 - 131.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/escape/ArrayBasedCharEscaperTest.java
ImmutableMap.of( '\n', "<newline>", '\t', "<tab>", '&', "<and>"); public void testSafeRange() throws IOException { // Basic escaping of unsafe chars (wrap them in {,}'s) CharEscaper wrappingEscaper = new ArrayBasedCharEscaper(NO_REPLACEMENTS, 'A', 'Z') { @Override protected char[] escapeUnsafe(char c) {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Feb 07 23:02:38 GMT 2024 - 3.5K bytes - Viewed (0)