Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for withBasicAuth (0.13 sec)

  1. 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)
  2. platforms/core-execution/build-cache-http/src/integTest/groovy/org/gradle/caching/http/internal/HttpBuildCacheServiceIntegrationTest.groovy

            httpBuildCacheServer.reset()
            httpBuildCacheServer.withBasicAuth("user", "pass%:-0]#")
            withBuildCache().run "jar"
            then:
            skipped ":compileJava"
            httpBuildCacheServer.authenticationAttempts == ['Basic'] as Set
        }
    
        def "credentials from DSL override credentials in URL"() {
            httpBuildCacheServer.withBasicAuth("user", "pass")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 22 23:08:20 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  3. 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)
Back to top