- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 262 for Authorization (0.05 sec)
-
tests/test_security_http_basic_realm.py
assert response.headers["WWW-Authenticate"] == 'Basic realm="simple"' 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 realm="simple"' assert response.json() == {"detail": "Not authenticated"}
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 24 19:03:06 UTC 2025 - 2.6K bytes - Viewed (0) -
tests/test_tutorial/test_security/test_tutorial003.py
response = client.get("/users/me", headers={"Authorization": "Bearer nonexistent"}) assert response.status_code == 401, response.text assert response.json() == {"detail": "Not authenticated"} assert response.headers["WWW-Authenticate"] == "Bearer" def test_incorrect_token_type(client: TestClient): response = client.get( "/users/me", headers={"Authorization": "Notexistent testtoken"} )
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 7.7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/sso/oic/OpenIdConnectAuthenticator.java
}).orElse(null); } /** * Gets the authorization URL for OpenID Connect. * * @param request the HTTP servlet request * @return the authorization URL */ protected String getAuthUrl(final HttpServletRequest request) { final String state = UuidUtil.create();
Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Sun Dec 14 01:18:25 UTC 2025 - 16.5K bytes - Viewed (0) -
tests/test_tutorial/test_security/test_tutorial001.py
def test_token(client: TestClient): response = client.get("/items", headers={"Authorization": "Bearer testtoken"}) assert response.status_code == 200, response.text assert response.json() == {"token": "testtoken"} def test_incorrect_token(client: TestClient): response = client.get("/items", headers={"Authorization": "Notexistent testtoken"}) assert response.status_code == 401, response.text
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 2.2K bytes - Viewed (0) -
tests/test_security_http_digest_optional.py
return {"scheme": credentials.scheme, "credentials": credentials.credentials} client = TestClient(app) def test_security_http_digest(): response = client.get("/users/me", headers={"Authorization": "Digest foobar"}) assert response.status_code == 200, response.text assert response.json() == {"scheme": "Digest", "credentials": "foobar"} def test_security_http_digest_no_credentials():Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Thu Feb 27 12:29:20 UTC 2025 - 2.2K bytes - Viewed (0) -
src/main/java/jcifs/pac/kerberos/KerberosRelevantAuthData.java
import jcifs.pac.PACDecodingException; /** * Kerberos relevant authorization data container. */ public class KerberosRelevantAuthData extends KerberosAuthData { private List<KerberosAuthData> authorizations; /** * Constructs KerberosRelevantAuthData from token bytes. * * @param token the authorization data token * @param keys map of Kerberos keys indexed by key typeRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3K bytes - Viewed (0) -
src/test/java/jcifs/pac/kerberos/KerberosRelevantAuthDataTest.java
List<KerberosAuthData> authorizations = relevantAuthData.getAuthorizations(); assertNotNull(authorizations, "The authorizations list should not be null."); assertEquals(1, authorizations.size(), "The authorizations list should contain one element."); assertEquals(mockAuthData, authorizations.get(0), "The authorization element should be the mocked object."); } /**
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/Authenticate.java
public final class Authenticate { private final OkHttpClient client; public Authenticate() { client = new OkHttpClient.Builder() .authenticator((route, response) -> { if (response.request().header("Authorization") != null) { return null; // Give up, we've already attempted to authenticate. } System.out.println("Authenticating for response: " + response);Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Thu Aug 12 07:26:27 UTC 2021 - 1.9K bytes - Viewed (0) -
tests/test_tutorial/test_security/test_tutorial006.py
assert response.headers["WWW-Authenticate"] == "Basic" def test_security_http_basic_invalid_credentials(client: TestClient): 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": "Not authenticated"}
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 2.6K bytes - Viewed (0) -
tests/test_security_http_basic_optional.py
assert response.json() == {"msg": "Create an account first"} 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": "Not authenticated"}
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 24 19:03:06 UTC 2025 - 2.6K bytes - Viewed (0)