- Sort Score
- Result 10 results
- Languages All
Results 181 - 190 of 499 for broken (0.07 sec)
-
docs_src/security/tutorial002_py310.py
oauth2_scheme = OAuth2PasswordBearer(tokenUrl="token") class User(BaseModel): username: str email: str | None = None full_name: str | None = None disabled: bool | None = None def fake_decode_token(token): return User( username=token + "fakedecoded", email="******@****.***", full_name="John Doe" ) async def get_current_user(token: str = Depends(oauth2_scheme)):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jan 07 14:11:31 UTC 2022 - 711 bytes - Viewed (0) -
docs_src/security/tutorial002_an_py310.py
oauth2_scheme = OAuth2PasswordBearer(tokenUrl="token") class User(BaseModel): username: str email: str | None = None full_name: str | None = None disabled: bool | None = None def fake_decode_token(token): return User( username=token + "fakedecoded", email="******@****.***", full_name="John Doe" ) async def get_current_user(token: Annotated[str, Depends(oauth2_scheme)]):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 761 bytes - Viewed (0) -
docs_src/security/tutorial002.py
from pydantic import BaseModel app = FastAPI() oauth2_scheme = OAuth2PasswordBearer(tokenUrl="token") class User(BaseModel): username: str email: Union[str, None] = None full_name: Union[str, None] = None disabled: Union[bool, None] = None def fake_decode_token(token): return User( username=token + "fakedecoded", email="******@****.***", full_name="John Doe" )
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat May 14 11:59:59 UTC 2022 - 755 bytes - Viewed (0) -
src/test/java/org/codelibs/fess/it/ITBase.java
private static final String TEST_TOKEN = "test.token"; public static String getTestToken() { return System.getProperty(TEST_TOKEN, DEFAULT_TEST_TOKEN); } public static String settingTestToken() { final String testToken = System.getProperty(TEST_TOKEN); if (testToken != null) { logger.info("Token: {}", testToken); return testToken; }
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 3.3K bytes - Viewed (0) -
docs_src/security/tutorial002_an.py
app = FastAPI() oauth2_scheme = OAuth2PasswordBearer(tokenUrl="token") class User(BaseModel): username: str email: Union[str, None] = None full_name: Union[str, None] = None disabled: Union[bool, None] = None def fake_decode_token(token): return User( username=token + "fakedecoded", email="******@****.***", full_name="John Doe" )
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 815 bytes - Viewed (0) -
docs/sts/wso2.md
| aud | _string array_ | The token audience list. The client identifier of the OAuth clients that the JWT is intended for, is sent herewith. | | azp | _string_ | The authorized party for which the token is issued to. The client identifier of the OAuth client that the token is issued for, is sent herewith. |
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Sep 29 04:28:45 UTC 2022 - 8.7K bytes - Viewed (0) -
src/main/java/jcifs/smb/NtlmContext.java
public byte[] initSecContext ( byte[] token, int offset, int len ) throws SmbException { switch ( this.state ) { case 1: return makeNegotiate(token); case 2: return makeAuthenticate(token); default: throw new SmbException("Invalid state"); } } protected byte[] makeAuthenticate ( byte[] token ) throws SmbException { try {
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Tue Jul 07 12:07:20 UTC 2020 - 15.7K bytes - Viewed (0) -
tests/test_tutorial/test_security/test_tutorial003_an_py310.py
@needs_py310 def test_login(client: TestClient): response = client.post("/token", data={"username": "johndoe", "password": "secret"}) assert response.status_code == 200, response.text assert response.json() == {"access_token": "johndoe", "token_type": "bearer"} @needs_py310 def test_login_incorrect_password(client: TestClient): response = client.post( "/token", data={"username": "johndoe", "password": "incorrect"} )
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 8.4K bytes - Viewed (0) -
tests/test_tutorial/test_security/test_tutorial003_py310.py
@needs_py310 def test_login(client: TestClient): response = client.post("/token", data={"username": "johndoe", "password": "secret"}) assert response.status_code == 200, response.text assert response.json() == {"access_token": "johndoe", "token_type": "bearer"} @needs_py310 def test_login_incorrect_password(client: TestClient): response = client.post( "/token", data={"username": "johndoe", "password": "incorrect"} )
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 8.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/ChecksumHashFunctionTest.java
assertHash32(0x7A2D6005, CRC_32, "hello wo"); assertHash32(0x1C192672, CRC_32, "hello wor"); assertHash32(0x414FA339, CRC_32, "The quick brown fox jumps over the lazy dog"); assertHash32(0x4400B5BC, CRC_32, "The quick brown fox jumps over the lazy cog"); } public void testAdler32_knownValues() throws Exception { assertHash32(0x041701A6, ADLER_32, "hell");
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jan 30 14:33:12 UTC 2018 - 3.1K bytes - Viewed (0)