- Sort Score
- Result 10 results
- Languages All
Results 141 - 150 of 1,632 for user2 (0.02 sec)
-
tests/test_tutorial/test_security/test_tutorial003.py
def test_no_token(client: TestClient): response = client.get("/users/me") assert response.status_code == 401, response.text assert response.json() == {"detail": "Not authenticated"} assert response.headers["WWW-Authenticate"] == "Bearer" def test_token(client: TestClient): response = client.get("/users/me", headers={"Authorization": "Bearer johndoe"})
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 7.7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/admin/user/SearchForm.java
* governing permissions and limitations under the License. */ package org.codelibs.fess.app.web.admin.user; /** * The search form for User. */ public class SearchForm { /** * Default constructor for SearchForm. */ public SearchForm() { } /** * The ID field for searching users. */ public String id;Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 905 bytes - Viewed (0) -
tests/gorm_test.go
case "mysql", "sqlserver": // these dialects do not support the "returning" clause return default: // This user struct will leverage the existing users table, but override // the Name field to default to null. type user struct { gorm.Model Name string `gorm:"default:null"` } u1 := user{} if results := DB.Create(&u1); results.Error != nil { t.Fatalf("errors happened on create: %v", results.Error)
Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Thu Jun 01 07:22:21 UTC 2023 - 3.3K bytes - Viewed (0) -
docs/en/docs/tutorial/security/oauth2-jwt.md
That way, you can create a token with an expiration of, let's say, 1 week. And then when the user comes back the next day with the token, you know that user is still logged in to your system.
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Sep 29 02:57:38 UTC 2025 - 10.6K bytes - Viewed (0) -
tests/test_security_http_bearer_optional.py
client = TestClient(app) def test_security_http_bearer(): response = client.get("/users/me", headers={"Authorization": "Bearer foobar"}) assert response.status_code == 200, response.text assert response.json() == {"scheme": "Bearer", "credentials": "foobar"} def test_security_http_bearer_no_credentials(): response = client.get("/users/me") assert response.status_code == 200, response.text
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 2.1K bytes - Viewed (0) -
docs/ru/docs/virtual-environments.md
```plaintext /home/user/code/awesome-project/.venv/bin/python ``` и использует именно её. //// //// tab | Windows ```plaintext C:\Users\user\code\awesome-project\.venv\Scripts;C:\Windows\System32 ``` Это означает, что теперь система в первую очередь будет искать программы в: ```plaintext C:\Users\user\code\awesome-project\.venv\Scripts ```
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Thu Dec 11 21:25:03 UTC 2025 - 34.2K bytes - Viewed (0) -
tests/test_security_http_basic_realm.py
app = FastAPI() security = HTTPBasic(realm="simple") @app.get("/users/me") def read_current_user(credentials: HTTPBasicCredentials = Security(security)): return {"username": credentials.username, "password": credentials.password} client = TestClient(app) def test_security_http_basic(): response = client.get("/users/me", auth=("john", "secret")) assert response.status_code == 200, response.text
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 24 19:03:06 UTC 2025 - 2.6K bytes - Viewed (0) -
cmd/bucket-object-lock.go
} return nil case objectlock.RetGovernance: // In governance mode, users can't overwrite or delete an object // version or alter its lock settings unless they have special // permissions. With governance mode, you protect objects against // being deleted by most users, but you can still grant some users // permission to alter the retention settings or delete the object
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 08 02:38:25 UTC 2025 - 13.3K bytes - Viewed (0) -
helm/minio/templates/post-job.yaml
mountPath: {{ .Values.configPathmc }}certs {{- end }} resources: {{- toYaml .Values.makeBucketJob.resources | nindent 12 }} {{- end }} {{- if .Values.users }} - name: minio-make-user image: "{{ .Values.mcImage.repository }}:{{ .Values.mcImage.tag }}" {{- if .Values.makeUserJob.securityContext.enabled }} {{- with .Values.makeUserJob.containerSecurityContext }}Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Thu Oct 10 15:48:31 UTC 2024 - 10.4K bytes - Viewed (0) -
helm-releases/minio-3.5.4.tgz
active return 0 } # checkUserExists ($username) # Check if the user exists, by using the exit code of `mc admin user info` checkUserExists() { USER=$1 CMD=$(${MC} admin user info myminio $USER > /dev/null 2>&1) return $? } # createUser ($username, $password, $policy) createUser() { USER=$1 PASS=$2 POLICY=$3 # Create the user if it does not exist if ! checkUserExists $USER ; then echo "Creating user '$USER'" ${MC} admin user add myminio $USER $PASS else echo "User '$USER' already exists." fi # set policy...
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Mon Feb 14 06:04:53 UTC 2022 - 17.2K bytes - Viewed (0)