Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for requiresAuthentication (0.27 sec)

  1. platforms/software/resources-gcs/src/test/groovy/org/gradle/internal/resource/transport/gcp/gcs/GcsConnectionPropertiesTest.groovy

        }
    
        def "should default invalid disableAuthentication parameter"() {
            expect:
            new GcsConnectionProperties("http://some", null, value).requiresAuthentication()
            then:
            where:
            value << ['foo', 'true-ish', 'false-y', '1']
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  2. platforms/software/resources-gcs/src/main/java/org/gradle/internal/resource/transport/gcp/gcs/GcsConnectionProperties.java

        Optional<URI> getEndpoint() {
            return Optional.fromNullable(endpoint);
        }
    
        Optional<String> getServicePath() {
            return Optional.fromNullable(servicePath);
        }
    
        boolean requiresAuthentication() {
            return !disableAuthentication;
        }
    
        private static URI configureEndpoint(String property) {
            URI uri = null;
            if (StringUtils.isNotBlank(property)) {
                try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  3. platforms/software/resources-gcs/src/main/java/org/gradle/internal/resource/transport/gcp/gcs/GcsClient.java

            JsonFactory jsonFactory = new GsonFactory();
            Storage.Builder builder = new Storage.Builder(transport, jsonFactory, null);
            if (gcsConnectionProperties.requiresAuthentication()) {
                Supplier<Credential> credentialSupplier = getCredentialSupplier(transport, jsonFactory);
                builder.setHttpRequestInitializer(new RetryHttpInitializerWrapper(credentialSupplier));
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 22 11:17:20 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  4. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/HttpServerFixture.groovy

            server.addConnector(sslConnector)
            if (server.started) {
                sslConnector.start()
            }
    
        }
    
        void requireAuthentication(String path = '/*', String username, String password) {
            securityHandlerWrapper.requireAuthentication(path, username, password)
        }
    
        int getPort() {
            return connector.localPort
        }
    
        int getSslPort() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  5. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/SecuredHandlerCollection.groovy

        }
    
        @Override
        Server getServer() {
            delegate.server
        }
    
        @Override
        void destroy() {
            delegate.destroy()
        }
    
        void requireAuthentication(String path, String username, String password) {
            if (realm != null) {
                assert realm.username == username
                assert realm.password == password
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  6. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/HttpBuildCacheServer.groovy

            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)
  7. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheIvyPublishIntegrationTest.groovy

            assert !inlinedCredentials : "Inlined credentials are not supported with the configuration cache"
            with (server) {
                requireAuthentication(username, password)
                // or else insecure protocol enforcement is skipped
                useHostname()
                start()
            }
            def remoteRepo = new IvyHttpRepository(server, ivyRepo)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  8. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheMavenPublishIntegrationTest.groovy

            assert !inlinedCredentials : "Inlined credentials are not supported with the configuration cache"
            with (server) {
                requireAuthentication(username, password)
                // or else insecure protocol enforcement is skipped
                useHostname()
                start()
            }
            def remoteRepo = new MavenHttpRepository(server, mavenRepo)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  9. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/HttpServer.groovy

                }
            }))
        }
    
        private Action withAuthentication(String path, String username, String password, Action action) {
            requireAuthentication(path, username, password)
    
            return new Action() {
                @Override
                HttpResourceInteraction getInteraction() {
                    return action.interaction
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 32.3K bytes
    - Viewed (0)
Back to top