- Sort Score
- Num 10 results
- Language All
Results 131 - 140 of 226 for Authenticate (0.09 seconds)
-
okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt
assertThat(response.body.string()).isEqualTo("ABCABCABC") } @Test fun authenticate() { server.enqueue( MockResponse( code = HttpURLConnection.HTTP_UNAUTHORIZED, headers = headersOf("www-authenticate", "Basic realm=\"protected area\""), body = "Please authenticate.", ), ) server.enqueue( MockResponse(body = "Successful auth!"), )
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sat Nov 01 12:18:11 GMT 2025 - 67.4K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt
@Test fun javaNetAuthenticator() { val authenticator = JavaNetAuthenticator() val response = Response.Builder().build() var request: Request? = authenticator.authenticate(factory.newRoute(), response) request = authenticator.authenticate(null, response) } @Test fun javaNetCookieJar() { val cookieJar: JavaNetCookieJar = JavaNetCookieJar(newCookieHandler()) val httpUrl = "".toHttpUrl()
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Nov 05 18:28:35 GMT 2025 - 47K bytes - Click Count (0) -
docs/ru/docs/advanced/security/oauth2-scopes.md
В этом исключении мы включаем требуемые scopes (если есть) в виде строки, разделённой пробелами (используя `scope_str`). Эту строку со scopes мы помещаем в HTTP‑заголовок `WWW-Authenticate` (это часть спецификации). {* ../../docs_src/security/tutorial005_an_py310.py hl[106,108:116] *} ## Проверка `username` и формата данных { #verify-the-username-and-data-shape }
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Tue Sep 30 11:37:11 GMT 2025 - 20.7K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HpackTest.kt
bytesIn.writeByte(0x7d) // == Literal indexed == // Indexed name (idx = 60) -> "www-authenticate" bytesIn.writeByte(0x05) // Literal value (len = 5) bytesIn.writeUtf8("Basic") hpackReader!!.readHeaders() assertThat(hpackReader!!.getAndResetHeaderList()) .containsExactly(Header("www-authenticate", "Basic")) } @Test fun readLiteralHeaderWithIncrementalIndexingDynamicName() {
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 38.6K bytes - Click Count (0) -
docs/de/docs/advanced/security/oauth2-scopes.md
In diese Exception fügen wir (falls vorhanden) die erforderlichen Scopes als durch Leerzeichen getrennten String ein (unter Verwendung von `scope_str`). Wir fügen diesen String mit den Scopes in den Header `WWW-Authenticate` ein (das ist Teil der Spezifikation). {* ../../docs_src/security/tutorial005_an_py310.py hl[106,108:116] *} ## Den `username` und das Format der Daten überprüfen { #verify-the-username-and-data-shape }
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Sep 20 15:10:09 GMT 2025 - 15.7K bytes - Click Count (0) -
docs/zh/docs/advanced/security/oauth2-scopes.md
(类 `SecurityScopes` 的)`security_scopes` 对象还提供了单字符串类型的属性 `scope_str`,该属性是(要在本例中使用的)用空格分割的作用域。 此处还创建了后续代码中要复用(`raise`)的 `HTTPException` 。 该异常包含了作用域所需的(如有),以空格分割的字符串(使用 `scope_str`)。该字符串要放到包含作用域的 `WWW-Authenticate` 请求头中(这也是规范的要求)。 {* ../../docs_src/security/tutorial005.py hl[105,107:115] *} ## 校验 `username` 与数据形状 我们可以校验是否获取了 `username`,并抽取作用域。Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sun Dec 29 20:41:04 GMT 2024 - 11.6K bytes - Click Count (0) -
internal/config/identity/ldap/ldap.go
} // Lookup user DN lookupResult, err := l.LDAP.LookupUsername(conn, username) if err != nil { errRet := fmt.Errorf("Unable to find user DN: %w", err) return nil, nil, errRet } // Authenticate the user credentials. err = conn.Bind(lookupResult.ActualDN, password) if err != nil { errRet := fmt.Errorf("LDAP auth failed for DN %s: %w", lookupResult.ActualDN, err) return nil, nil, errRet }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Jul 12 01:04:53 GMT 2024 - 12.4K bytes - Click Count (1) -
docs/pt/docs/advanced/security/oauth2-scopes.md
Nesta exceção, nós incluímos os escopos necessários (se houver algum) como uma string separada por espaços (utilizando `scope_str`). Nós colocamos esta string contendo os escopos no cabeçalho `WWW-Authenticate` (isso é parte da especificação). {* ../../docs_src/security/tutorial005_an_py310.py hl[106,108:116] *} ## Verifique o `username` e o formato dos dados { #verify-the-username-and-data-shape }Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Nov 12 16:23:57 GMT 2025 - 14.9K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/DuplexTest.kt
client = client .newBuilder() .authenticator(RecordingOkAuthenticator(credential, null)) .build() val body1 = MockSocketHandler() .sendResponse("please authenticate!\n") .requestIOException() .exhaustResponse() server.enqueue( MockResponse .Builder() .clearHeaders() .code(HttpURLConnection.HTTP_UNAUTHORIZED)Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue Nov 04 19:13:52 GMT 2025 - 25.8K bytes - Click Count (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/HcHttpClient.java
Created: Sat Dec 20 11:21:39 GMT 2025 - Last Modified: Sun Nov 23 12:19:14 GMT 2025 - 53.7K bytes - Click Count (0)