Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 41 for get_credentials (0.07 seconds)

  1. tests/test_dependency_paramless.py

            raise HTTPException(detail="a or b not in scopes", status_code=401)
        return {"token": credentials, "scopes": security_scopes.scopes}
    
    
    @app.get("/get-credentials")
    def get_credentials(
        credentials: Annotated[dict, Security(process_auth, scopes=["a", "b"])],
    ):
        return credentials
    
    
    @app.get(
        "/parameterless-with-scopes",
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 2.3K bytes
    - Click Count (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/impl/AuthenticationImpl.java

        public AuthScope getAuthScope() {
            return authScope;
        }
    
        /*
         * (non-Javadoc)
         *
         * @see org.codelibs.fess.crawler.client.http.Authentication#getCredentials()
         */
        @Override
        public Credentials getCredentials() {
            return credentials;
        }
    
        /**
         * Sets the authentication scope.
         *
         * @param authScope the authentication scope to set
         */
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Sun Jul 06 02:13:03 GMT 2025
    - 3.8K bytes
    - Click Count (0)
  3. src/test/java/jcifs/context/CIFSContextCredentialWrapperTest.java

            // We can directly test getCredentials() to ensure it returns the initial credentials.
            assertEquals(mockCredentials, wrapper.getCredentials(), "Initial credentials should be set by constructor");
        }
    
        @Test
        @DisplayName("Should return the credentials provided in the constructor")
        void testGetCredentials() {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.4K bytes
    - Click Count (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/ApiExtractor.java

            for (final Authentication authentication : siteCredentialList) {
                final AuthScope authScope = authentication.getAuthScope();
                credentialsProvider.setCredentials(authScope, authentication.getCredentials());
                final AuthScheme authScheme = authentication.getAuthScheme();
                if (authScope.getHost() != null && authScheme != null) {
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Mon Nov 24 03:59:47 GMT 2025
    - 12.2K bytes
    - Click Count (0)
  5. src/test/java/jcifs/context/AbstractCIFSContextTest.java

            // Verify that the new context uses NtlmPasswordAuthenticator (guest)
            assertTrue(wrappedContext.getCredentials() instanceof NtlmPasswordAuthenticator);
            assertTrue(wrappedContext.getCredentials().isGuest());
        }
    
        @Test
        void testGetCredentials() {
            assertEquals(mockCredentials, context.getCredentials());
        }
    
        @Test
        void testHasDefaultCredentials_withNonAnonymous() {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7K bytes
    - Click Count (0)
  6. src/main/java/jcifs/context/CIFSContextCredentialWrapper.java

            super(delegate);
            this.creds = creds;
        }
    
        /**
         *
         * {@inheritDoc}
         *
         * @see jcifs.context.CIFSContextWrapper#getCredentials()
         */
        @Override
        public Credentials getCredentials() {
            return this.creds;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.CIFSContext#renewCredentials(java.lang.String, java.lang.Throwable)
         */
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 2.8K bytes
    - Click Count (0)
  7. src/main/java/jcifs/internal/smb1/com/SmbComTreeConnectAndX.java

        protected int writeParameterWordsWireFormat(final byte[] dst, int dstIndex) {
            if (this.server.security == SmbConstants.SECURITY_SHARE && this.ctx.getCredentials() instanceof NtlmPasswordAuthenticator) {
                final NtlmPasswordAuthenticator pwAuth = (NtlmPasswordAuthenticator) this.ctx.getCredentials();
                if (isExternalAuth(pwAuth)) {
                    this.passwordLength = 1;
                } else if (this.server.encryptedPasswords) {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 7.1K bytes
    - Click Count (0)
  8. src/test/java/jcifs/CIFSContextTest.java

            // Given
            Credentials mockCreds = mock(Credentials.class);
            when(mockContext.getCredentials()).thenReturn(mockCreds);
    
            // When
            Credentials creds = mockContext.getCredentials();
    
            // Then
            assertEquals(mockCreds, creds);
            verify(mockContext).getCredentials();
        }
    
        @Test
        @DisplayName("Should get URLStreamHandler")
        void testGetUrlHandler() {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 8.8K bytes
    - Click Count (0)
  9. src/test/java/jcifs/context/CIFSContextWrapperTest.java

        }
    
        @Test
        void testGetCredentials() {
            // Test getCredentials() method
            Credentials mockCredentials = mock(Credentials.class);
            when(mockDelegate.getCredentials()).thenReturn(mockCredentials);
            assertEquals(mockCredentials, cifsContextWrapper.getCredentials());
            verify(mockDelegate).getCredentials();
        }
    
        @Test
        void testGetUrlHandler() {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 10.7K bytes
    - Click Count (0)
  10. src/main/java/jcifs/context/AbstractCIFSContext.java

        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.CIFSContext#getCredentials()
         */
        @Override
        public Credentials getCredentials() {
            return getDefaultCredentials();
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.CIFSContext#hasDefaultCredentials()
         */
        @Override
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 4K bytes
    - Click Count (0)
Back to Top