Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for requiresAuthentication (0.5 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)
Back to top