- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for withBasicAuth (0.16 sec)
-
platforms/documentation/docs/src/samples/credentials-handling/publishing-credentials/common/maven-repository-stub/src/main/java/com/example/MavenRepositoryStub.java
public static String start() { SERVER.start(); SERVER.stubFor(put(anyUrl()).willReturn(unauthorized())); SERVER.stubFor(put(anyUrl()).withBasicAuth(USERNAME, PASSWORD).willReturn(ok())); SERVER.stubFor(get(anyUrl()).withBasicAuth(USERNAME, PASSWORD).willReturn(notFound())); return String.format("http://127.0.0.1:%d", SERVER.port()); } public static void stop() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 1.3K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/HttpBuildCacheServer.groovy
webapp.resourceBase = cacheDir addFilters() HttpServerFixture.super.start() } @Override protected void after() { stop() } void withBasicAuth(String username, String password) { requireAuthentication(username, password) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 4.3K bytes - Viewed (0)