- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 214 for Expires (0.13 sec)
-
docs_src/security/tutorial005_py310.py
def create_access_token(data: dict, expires_delta: timedelta | None = None): to_encode = data.copy() if expires_delta: expire = datetime.now(timezone.utc) + expires_delta else: expire = datetime.now(timezone.utc) + timedelta(minutes=15) to_encode.update({"exp": expire}) encoded_jwt = jwt.encode(to_encode, SECRET_KEY, algorithm=ALGORITHM) return encoded_jwt async def get_current_user(
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Mon May 20 17:37:28 UTC 2024 - 5.1K bytes - Viewed (0) -
docs_src/security/tutorial005_an_py310.py
def create_access_token(data: dict, expires_delta: timedelta | None = None): to_encode = data.copy() if expires_delta: expire = datetime.now(timezone.utc) + expires_delta else: expire = datetime.now(timezone.utc) + timedelta(minutes=15) to_encode.update({"exp": expire}) encoded_jwt = jwt.encode(to_encode, SECRET_KEY, algorithm=ALGORITHM) return encoded_jwt async def get_current_user(
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Mon May 20 17:37:28 UTC 2024 - 5.2K bytes - Viewed (0) -
docs_src/security/tutorial005_an_py39.py
def create_access_token(data: dict, expires_delta: Union[timedelta, None] = None): to_encode = data.copy() if expires_delta: expire = datetime.now(timezone.utc) + expires_delta else: expire = datetime.now(timezone.utc) + timedelta(minutes=15) to_encode.update({"exp": expire}) encoded_jwt = jwt.encode(to_encode, SECRET_KEY, algorithm=ALGORITHM) return encoded_jwt async def get_current_user(
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Mon May 20 17:37:28 UTC 2024 - 5.3K bytes - Viewed (0) -
internal/jwt/parser_test.go
valid bool errors int32 }{ { "basic", "", defaultKeyFunc, &MapClaims{ MapClaims: jwt.MapClaims{ "foo": "bar", }, }, true, 0, }, { "basic expired", "", // autogen defaultKeyFunc, &MapClaims{ MapClaims: jwt.MapClaims{ "foo": "bar", "exp": float64(time.Now().Unix() - 100), }, }, false, -1, }, { "basic nbf",
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Nov 05 19:20:08 UTC 2021 - 6K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/TestLocking.java
long delay; do { delay = 2L; synchronized (t) { long expire = t.ltime + t.delay; long ctime = System.currentTimeMillis(); if (expire > ctime) delay = expire - ctime; } if (delay > 2) System.out.println("delay=" + delay); Thread.sleep(delay);
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Fri Mar 22 21:10:40 UTC 2019 - 3.4K bytes - Viewed (0) -
docs_src/security/tutorial004_an.py
def create_access_token(data: dict, expires_delta: Union[timedelta, None] = None): to_encode = data.copy() if expires_delta: expire = datetime.now(timezone.utc) + expires_delta else: expire = datetime.now(timezone.utc) + timedelta(minutes=15) to_encode.update({"exp": expire}) encoded_jwt = jwt.encode(to_encode, SECRET_KEY, algorithm=ALGORITHM) return encoded_jwt
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Mon May 20 17:37:28 UTC 2024 - 4.2K bytes - Viewed (0) -
docs/bucket/replication/setup_ilm_expiry_replication.sh
## Add ILM rules ./mc ilm add sitea/bucket --transition-days 0 --transition-tier WARM-TIER --transition-days 0 --noncurrent-expire-days 2 --expire-days 3 --prefix "myprefix" --tags "tag1=val1&tag2=val2" ./mc ilm rule list sitea/bucket ## Check ilm expiry flag ./mc admin replicate info sitea --json
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Sep 06 09:42:21 UTC 2024 - 12.8K bytes - Viewed (0) -
cmd/sts-errors.go
Description: "The web identity token that was passed is expired or is not valid. Get a new identity token from the identity provider and then retry the request.", HTTPStatusCode: http.StatusBadRequest, }, ErrSTSClientGrantsExpiredToken: { Code: "ExpiredToken",
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Apr 04 12:04:40 UTC 2024 - 5.8K bytes - Viewed (0) -
internal/bucket/lifecycle/lifecycle_test.go
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu May 23 01:12:48 UTC 2024 - 55.1K bytes - Viewed (0) -
build-logic/cleanup/src/main/kotlin/gradlebuild/cleanup/services/CachesCleaner.kt
hasCleaned = true } } private fun cleanupDistributionCaches(workerDir: Directory, gradleVersion: GradleVersion) { // Expire cache snapshots of test Gradle distributions that are older than the tested version // Also expire version-specific cache snapshots when they can't be re-used (for 'snapshot-1' developer builds) val expireDistributionCache = Spec<GradleVersion> { candidateVersion ->
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Fri Jun 28 08:29:28 UTC 2024 - 4.2K bytes - Viewed (0)