- Sort Score
- Result 10 results
- Languages All
Results 141 - 150 of 1,517 for myuser (0.19 sec)
-
docs/en/docs/tutorial/security/simple-oauth2.md
```JSON { "detail": "Not authenticated" } ``` ### Inactive user Now try with an inactive user, authenticate with: User: `alice` Password: `secret2` And try to use the operation `GET` with the path `/users/me`. You will get an "Inactive user" error, like: ```JSON { "detail": "Inactive user" } ``` ## Recap
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 12.3K bytes - Viewed (0) -
compat/maven-settings-builder/src/main/java/org/apache/maven/settings/building/SettingsBuildingRequest.java
* @return This request, never {@code null}. */ SettingsBuildingRequest setUserSettingsFile(File userSettingsFile); /** * Gets the user settings source. * * @return The user settings source or {@code null} if none. */ SettingsSource getUserSettingsSource(); /**
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 6K bytes - Viewed (0) -
tests/test_dependency_security_overrides.py
response = client.get("/user") assert response.json() == { "user": "john", "scopes": ["foo", "bar"], "data": [3, 4, 5], } app.dependency_overrides = {} def test_override_security(): app.dependency_overrides[get_user] = get_user_override response = client.get("/user") assert response.json() == { "user": "alice", "scopes": ["foo", "bar"],
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Jun 14 15:54:46 UTC 2020 - 1.4K bytes - Viewed (0) -
compat/maven-embedder/src/test/java/org/apache/maven/cli/props/MavenPropertiesLoaderTest.java
Files.createDirectories(mavenConf); Path mavenUserProps = mavenConf.resolve("maven.properties"); Files.writeString(mavenUserProps, "${includes} = ?\"/user/ma ven.properties\", ?/foo/bar\n"); Path userDirectory = fs.getPath("/user"); Files.createDirectories(userDirectory); Path propsPath = userDirectory.resolve("ma ven.properties");
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 4.1K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/Prompter.java
import org.apache.maven.api.annotations.Nullable; /** * Service used to interact with the end user. * * @since 4.0.0 */ @Experimental public interface Prompter extends Service { /** * Prompts the user for a string. * * @param message the message to display to the user * @return the string entered by the user * @throws PrompterException if an exception occurs */ @Nonnull
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Nov 17 15:52:15 UTC 2023 - 3.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/ldap/LdapManagerTest.java
permissionList.add("2aaa"); allowEmptyPermission.set(true); assertTrue(ldapManager.allowEmptyGroupAndRole(user)); allowEmptyPermission.set(false); assertTrue(ldapManager.allowEmptyGroupAndRole(user)); permissionList.clear(); permissionList.add("Raaa"); allowEmptyPermission.set(true);
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 5.2K bytes - Viewed (0) -
docs_src/security/tutorial004_an_py39.py
raise credentials_exception user = get_user(fake_users_db, username=token_data.username) if user is None: raise credentials_exception return user async def get_current_active_user( current_user: Annotated[User, Depends(get_current_user)], ): if current_user.disabled: raise HTTPException(status_code=400, detail="Inactive user") return current_user
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_src/security/tutorial005_py39.py
def authenticate_user(fake_db, username: str, password: str): user = get_user(fake_db, username) if not user: return False if not verify_password(password, user.hashed_password): return False return user def create_access_token(data: dict, expires_delta: Union[timedelta, None] = None): to_encode = data.copy() if expires_delta:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Mon May 20 17:37:28 UTC 2024 - 5.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/es/log/bsentity/BsSearchLog.java
this.searchWord = value; } public String getUser() { checkSpecifiedProperty("user"); return convertEmptyToNull(user); } public void setUser(String value) { registerModifiedProperty("user"); this.user = value; } public String getUserAgent() { checkSpecifiedProperty("userAgent");
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 12.2K bytes - Viewed (0) -
docs_src/security/tutorial003_an.py
def fake_decode_token(token): # This doesn't provide any security at all # Check the next version user = get_user(fake_users_db, token) return user async def get_current_user(token: Annotated[str, Depends(oauth2_scheme)]): user = fake_decode_token(token) if not user: raise HTTPException( status_code=status.HTTP_401_UNAUTHORIZED,
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Mar 26 16:56:53 UTC 2024 - 2.5K bytes - Viewed (0)