Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 165 for access (0.03 seconds)

  1. tests/test_security_oauth2_authorization_code_bearer_scopes_openapi.py

    from inline_snapshot import snapshot
    
    oauth2_scheme = OAuth2AuthorizationCodeBearer(
        authorizationUrl="authorize",
        tokenUrl="token",
        auto_error=True,
        scopes={"read": "Read access", "write": "Write access"},
    )
    
    
    async def get_token(token: Annotated[str, Depends(oauth2_scheme)]) -> str:
        return token
    
    
    app = FastAPI(dependencies=[Depends(get_token)])
    
    
    @app.get("/")
    async def root():
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 6.6K bytes
    - Click Count (0)
  2. src/cmd/asm/internal/asm/testdata/amd64dynlinkerror.s

    	RET
    TEXT ·a8(SB), 0, $0-0
    	CMPL runtime·writeBarrier(SB), $0
    	ADDQ AX, R15 // ERROR "when dynamic linking, R15 is clobbered by a global variable access and is used here"
    	RET
    TEXT ·a9(SB), 0, $0-0
    	CMPL runtime·writeBarrier(SB), $0
    	ORQ R15, R15 // ERROR "when dynamic linking, R15 is clobbered by a global variable access and is used here"
    	RET
    TEXT ·a10(SB), 0, $0-0
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Thu Nov 20 19:05:03 GMT 2025
    - 4.9K bytes
    - Click Count (0)
  3. tests/test_security_oauth2_authorization_code_bearer_scopes_openapi_simple.py

        scopes={"read": "Read access", "write": "Write access"},
    )
    
    
    async def get_token(token: Annotated[str, Depends(oauth2_scheme)]) -> str:
        return token
    
    
    app = FastAPI(dependencies=[Depends(get_token)])
    
    
    @app.get("/admin", dependencies=[Security(get_token, scopes=["read", "write"])])
    async def read_admin():
        return {"message": "Admin Access"}
    
    
    client = TestClient(app)
    
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 2.6K bytes
    - Click Count (0)
  4. tests/test_tutorial/test_cors/test_tutorial001.py

        headers = {
            "Origin": "https://localhost.tiangolo.com",
            "Access-Control-Request-Method": "GET",
            "Access-Control-Request-Headers": "X-Example",
        }
        response = client.options("/", headers=headers)
        assert response.status_code == 200, response.text
        assert response.text == "OK"
        assert (
            response.headers["access-control-allow-origin"]
            == "https://localhost.tiangolo.com"
        )
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 1.3K bytes
    - Click Count (0)
  5. .teamcity/src/main/kotlin/promotion/BasePromotionBuildType.kt

            paramsForBuildToolBuild(BuildToolBuildJvm, Os.LINUX)
    
            params {
                password(
                    "env.DEVELOCITY_ACCESS_KEY",
                    "%ge.gradle.org.access.key%;%develocity.grdev.net.access.key%;%develocity-ext-hetzner.grdev.net.access.key%",
                )
                password("env.ORG_GRADLE_PROJECT_botGradleGitHubToken", "%github.bot-gradle.token%")
            }
    
            features {
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Tue Oct 14 10:56:29 GMT 2025
    - 2.3K bytes
    - Click Count (0)
  6. cmd/admin-handlers-users_test.go

    	if err == nil {
    		c.Fatalf("invalid policy creation success")
    	}
    
    	// 3. Create a user, associate policy and verify access
    	accessKey, secretKey := mustGenerateCredentials(c)
    	err = s.adm.SetUser(ctx, accessKey, secretKey, madmin.AccountEnabled)
    	if err != nil {
    		c.Fatalf("Unable to set user: %v", err)
    	}
    	// 3.1 check that user does not have any access to the bucket
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Wed Oct 15 17:00:45 GMT 2025
    - 50.6K bytes
    - Click Count (0)
  7. internal/lock/lock_windows.go

    	case syscall.O_WRONLY:
    		access = syscall.GENERIC_WRITE
    	case syscall.O_RDWR:
    		fallthrough
    	case syscall.O_RDWR | syscall.O_CREAT:
    		fallthrough
    	case syscall.O_WRONLY | syscall.O_CREAT:
    		access = syscall.GENERIC_READ | syscall.GENERIC_WRITE
    	case syscall.O_WRONLY | syscall.O_CREAT | syscall.O_APPEND:
    		access = syscall.FILE_APPEND_DATA
    	default:
    		return nil, fmt.Errorf("Unsupported flag (%d)", flag)
    	}
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  8. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/NullabilityBreakingChangesRule.groovy

                super(AsmConstants.ASM_LEVEL)
            }
    
            @Override
            void visit(int version, int access, String name, String signature, String superName, String[] interfaces) {
                if (signature != null) {
                    new SignatureReader(signature).accept(new SignatureVisitor(AsmConstants.ASM_LEVEL) {
                        @Override
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Mon Oct 27 09:26:32 GMT 2025
    - 15.4K bytes
    - Click Count (0)
  9. cmd/sts-handlers_test.go

    	for _, b := range accInfo.Buckets {
    		gotBuckets.Add(b.Name)
    		if !b.Access.Read || !b.Access.Write {
    			c.Fatalf("root user should have read and write access to bucket: %v", b.Name)
    		}
    	}
    	shouldHaveBuckets := set.CreateStringSet(bucket2, bucket)
    	if !gotBuckets.Equals(shouldHaveBuckets) {
    		c.Fatalf("root user should have access to all buckets")
    	}
    
    	// This must fail.
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Wed Oct 15 17:00:45 GMT 2025
    - 103.4K bytes
    - Click Count (1)
  10. .teamcity/scripts/configure_build_env_on_ec2.sh

    AWS_REGION=$(curl -s "http://169.254.169.254/latest/meta-data/placement/region")
    
    if [[ "$AWS_REGION" == us-* ]]; then
      echo "For $AWS_REGION switching to user teamcityus access token"
      echo "##teamcity[setParameter name='env.DEVELOCITY_ACCESS_KEY' value='%ge.gradle.org.access.key.us%;%gbt-td.grdev.net.access.key%']"
      export DEVELOCITY_ACCESS_KEY="${DEVELOCITY_ACCESS_KEY_US}"
    fi
    
    # Execute pre-build script based on BUILD_TYPE_ID
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Tue Dec 23 03:27:59 GMT 2025
    - 2.1K bytes
    - Click Count (0)
Back to Top