Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 229 for base64id (0.1 sec)

  1. tests/test_security_http_basic_optional.py

    from base64 import b64encode
    from typing import Optional
    
    from fastapi import FastAPI, Security
    from fastapi.security import HTTPBasic, HTTPBasicCredentials
    from fastapi.testclient import TestClient
    
    app = FastAPI()
    
    security = HTTPBasic(auto_error=False)
    
    
    @app.get("/users/me")
    def read_current_user(credentials: Optional[HTTPBasicCredentials] = Security(security)):
        if credentials is None:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  2. cmd/site-replication.go

    	}
    
    	if item.Versioning != nil {
    		configData, err := base64.StdEncoding.DecodeString(*item.Versioning)
    		if err != nil {
    			return wrapSRErr(err)
    		}
    		meta.VersioningConfigXML = configData
    		meta.VersioningConfigUpdatedAt = item.UpdatedAt
    	}
    
    	if item.Tags != nil {
    		configData, err := base64.StdEncoding.DecodeString(*item.Tags)
    		if err != nil {
    			return wrapSRErr(err)
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 185.1K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/http/NtlmServlet.java

    import jcifs.smb1.UniAddress;
    import jcifs.smb1.netbios.NbtAddress;
    import jcifs.smb1.smb1.NtlmPasswordAuthentication;
    import jcifs.smb1.smb1.SmbAuthException;
    import jcifs.smb1.smb1.SmbSession;
    import jcifs.smb1.util.Base64;
    
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    
    /**
     * This servlet may be used with pre-2.3 servlet containers
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 6.8K bytes
    - Viewed (0)
  4. common-protos/k8s.io/api/certificates/v1/generated.proto

      //
      // The certificate is encoded in PEM format.
      //
      // When serialized as JSON or YAML, the data is additionally base64-encoded, so it consists of:
      //
      //     base64(
      //     -----BEGIN CERTIFICATE-----
      //     ...
      //     -----END CERTIFICATE-----
      //     )
      //
      // +listType=atomic
      // +optional
      optional bytes certificate = 2;
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/admin/group/AdminGroupAction.java

     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.app.web.admin.group;
    
    import java.util.Base64;
    import java.util.Map;
    import java.util.function.Consumer;
    
    import org.apache.logging.log4j.LogManager;
    import org.apache.logging.log4j.Logger;
    import org.codelibs.fess.Constants;
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/io/PackageSanityTests.java

     *
     * @author Ben Yu
     */
    
    public class PackageSanityTests extends AbstractPackageSanityTests {
      public PackageSanityTests() {
        setDefault(BaseEncoding.class, BaseEncoding.base64());
        setDefault(int.class, 32);
        setDefault(String.class, "abcd");
        setDefault(Method.class, AbstractPackageSanityTests.class.getDeclaredMethods()[0]);
        setDefault(MapMode.class, MapMode.READ_ONLY);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_security/test_tutorial006_an.py

    from base64 import b64encode
    
    from fastapi.testclient import TestClient
    
    from docs_src.security.tutorial006_an import app
    
    client = TestClient(app)
    
    
    def test_security_http_basic():
        response = client.get("/users/me", auth=("john", "secret"))
        assert response.status_code == 200, response.text
        assert response.json() == {"username": "john", "password": "secret"}
    
    
    def test_security_http_basic_no_credentials():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/web/admin/role/AdminRoleAction.java

     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.app.web.admin.role;
    
    import java.util.Base64;
    
    import org.apache.logging.log4j.LogManager;
    import org.apache.logging.log4j.Logger;
    import org.codelibs.fess.Constants;
    import org.codelibs.fess.annotation.Secured;
    import org.codelibs.fess.app.pager.RolePager;
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/CertificatePinnerKotlinTest.kt

    class CertificatePinnerKotlinTest {
      @Test
      fun successfulCheckSha1Pin() {
        val certificatePinner =
          CertificatePinner.Builder()
            .add("example.com", "sha1/" + certA1.certificate.sha1Hash().base64())
            .build()
    
        certificatePinner.check("example.com", listOf(certA1.certificate))
      }
    
      @Test fun successfulFindMatchingPins() {
        val certificatePinner =
          CertificatePinner.Builder()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  10. src/main/java/jcifs/http/NtlmServlet.java

    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.http.HttpSession;
    
    import org.bouncycastle.util.encoders.Base64;
    
    import jcifs.Address;
    import jcifs.CIFSContext;
    import jcifs.CIFSException;
    import jcifs.Config;
    import jcifs.config.PropertyConfiguration;
    import jcifs.context.BaseContext;
    import jcifs.netbios.UniAddress;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 7.6K bytes
    - Viewed (0)
Back to top