Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 41 - 50 of 226 for Authenticate (0.08 seconds)

  1. fastapi/security/http.py

            self.realm = realm
            self.auto_error = auto_error
    
        def make_authenticate_headers(self) -> dict[str, str]:
            if self.realm:
                return {"WWW-Authenticate": f'Basic realm="{self.realm}"'}
            return {"WWW-Authenticate": "Basic"}
    
        async def __call__(  # type: ignore
            self, request: Request
        ) -> Optional[HTTPBasicCredentials]:
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 13.2K bytes
    - Click Count (0)
  2. docs_src/security/tutorial005_py39.py

        else:
            authenticate_value = "Bearer"
        credentials_exception = HTTPException(
            status_code=status.HTTP_401_UNAUTHORIZED,
            detail="Could not validate credentials",
            headers={"WWW-Authenticate": authenticate_value},
        )
        try:
            payload = jwt.decode(token, SECRET_KEY, algorithms=[ALGORITHM])
            username: str = payload.get("sub")
            if username is None:
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Sep 29 02:57:38 GMT 2025
    - 5.3K bytes
    - Click Count (0)
  3. okhttp-urlconnection/api/okhttp-urlconnection.api

    public final class okhttp3/JavaNetAuthenticator : okhttp3/Authenticator {
    	public fun <init> ()V
    	public fun authenticate (Lokhttp3/Route;Lokhttp3/Response;)Lokhttp3/Request;
    }
    
    public final class okhttp3/JavaNetCookieJar : okhttp3/CookieJar {
    	public fun <init> (Ljava/net/CookieHandler;)V
    	public fun loadForRequest (Lokhttp3/HttpUrl;)Ljava/util/List;
    	public fun saveFromResponse (Lokhttp3/HttpUrl;Ljava/util/List;)V
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sat Feb 26 19:17:33 GMT 2022
    - 423 bytes
    - Click Count (0)
  4. src/main/java/jcifs/smb/NtlmPasswordAuthentication.java

         * property values.
         *
         * @param tc
         *            context to use
         * @param domain the authentication domain
         * @param username the username to authenticate with
         * @param password the password to authenticate with
         */
        public NtlmPasswordAuthentication(final CIFSContext tc, final String domain, final String username, final String password) {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 9.3K bytes
    - Click Count (0)
  5. tests/test_security_api_key_header.py

    
    def test_security_api_key_no_key():
        response = client.get("/users/me")
        assert response.status_code == 401, response.text
        assert response.json() == {"detail": "Not authenticated"}
        assert response.headers["WWW-Authenticate"] == "APIKey"
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == {
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 24 19:03:06 GMT 2025
    - 1.9K bytes
    - Click Count (0)
  6. tests/test_security_api_key_header_description.py

    
    def test_security_api_key_no_key():
        response = client.get("/users/me")
        assert response.status_code == 401, response.text
        assert response.json() == {"detail": "Not authenticated"}
        assert response.headers["WWW-Authenticate"] == "APIKey"
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == {
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 24 19:03:06 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  7. tests/test_security_http_base.py

    
    def test_security_http_base_no_credentials():
        response = client.get("/users/me")
        assert response.status_code == 401, response.text
        assert response.json() == {"detail": "Not authenticated"}
        assert response.headers["WWW-Authenticate"] == "Other"
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == {
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 24 19:03:06 GMT 2025
    - 1.8K bytes
    - Click Count (0)
  8. docs/ru/docs/tutorial/security/simple-oauth2.md

    /// info | Дополнительная информация
    Дополнительный HTTP-заголовок `WWW-Authenticate` со значением `Bearer`, который мы здесь возвращаем, также является частью спецификации.
    
    Любой HTTP статус-код 401 "UNAUTHORIZED" должен также возвращать заголовок `WWW-Authenticate`.
    
    В случае с bearer-токенами (наш случай) значение этого заголовка должно быть `Bearer`.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Sep 30 11:24:39 GMT 2025
    - 16.3K bytes
    - Click Count (0)
  9. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/form/FormScheme.java

        }
    
        @Override
        public Header authenticate(final Credentials credentials, final HttpRequest request) throws AuthenticationException {
            return null;
        }
    
        /**
         * Authenticates using the form scheme.
         * @param credentials The credentials.
         * @param executor The executor for HTTP requests.
         */
        public void authenticate(final Credentials credentials,
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Sun Jul 06 02:13:03 GMT 2025
    - 14.3K bytes
    - Click Count (1)
  10. tests/test_tutorial/test_security/test_tutorial002.py

    
    def test_no_token(client: TestClient):
        response = client.get("/users/me")
        assert response.status_code == 401, response.text
        assert response.json() == {"detail": "Not authenticated"}
        assert response.headers["WWW-Authenticate"] == "Bearer"
    
    
    def test_token(client: TestClient):
        response = client.get("/users/me", headers={"Authorization": "Bearer testtoken"})
        assert response.status_code == 200, response.text
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 2.2K bytes
    - Click Count (0)
Back to Top