- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for provider (0.47 sec)
-
docs/sts/client_grants/__init__.py
) if response.status != 200: message = "Credential refresh failed, response: %s" raise CredentialRetrievalError( provider=method, error_msg=message % response.status, ) creds = json.loads(response.data) query = {} query['Action'] = 'AssumeRoleWithClientGrants'
Python - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Fri Apr 23 18:58:53 GMT 2021 - 4.6K bytes - Viewed (1) -
docs/sts/client-grants.py
from botocore.session import get_session from client_grants import ClientGrantsCredentialProvider boto3.set_stream_logger('boto3.resources', logging.DEBUG) bc_session = get_session() bc_session.get_component('credential_provider').insert_before( 'env', ClientGrantsCredentialProvider('NZLOOFRSluw9RfIkuHGqfk1HFp4a', '0Z4VTG8uJBSekn42HE40DK9vQb4a'), ) boto3_session = Session(botocore_session=bc_session)
Python - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Fri Apr 23 18:58:53 GMT 2021 - 1.2K bytes - Viewed (0) -
docs_src/bigger_applications/app_an_py39/dependencies.py
raise HTTPException(status_code=400, detail="X-Token header invalid") async def get_query_token(token: str): if token != "jessica":
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 409 bytes - Viewed (0) -
docs_src/security/tutorial003_an_py39.py
hashed_password: str def get_user(db, username: str): if username in db: user_dict = db[username] return UserInDB(**user_dict) 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)]):
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Mar 26 16:56:53 GMT 2024 - 2.5K bytes - Viewed (0) -
docs/sts/client_grants/sts_element.py
_STS_NS = {'sts': 'https://sts.amazonaws.com/doc/2011-06-15/'} class STSElement(object): """STS aware XML parsing class. Wraps a root element name and cElementTree.Element instance. Provides STS namespace aware parsing functions. """ def __init__(self, root_name, element): self.root_name = root_name self.element = element @classmethod
Python - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Fri Apr 23 18:58:53 GMT 2021 - 2.5K bytes - Viewed (0) -
fastapi/security/api_key.py
""" API key authentication using a query parameter. This defines the name of the query parameter that should be provided in the request with the API key and integrates that into the OpenAPI documentation. It extracts the key value sent in the query parameter automatically and provides it as the dependency result. But it doesn't define how to send that API key to the client. ## Usage
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Apr 23 22:29:18 GMT 2024 - 9.1K bytes - Viewed (0) -
docs_src/bigger_applications/app_an/dependencies.py
raise HTTPException(status_code=400, detail="X-Token header invalid") async def get_query_token(token: str): if token != "jessica":
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 419 bytes - Viewed (0) -
docs_src/security/tutorial003.py
hashed_password: str def get_user(db, username: str): if username in db: user_dict = db[username] return UserInDB(**user_dict) 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: str = Depends(oauth2_scheme)): user = fake_decode_token(token)
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat May 14 11:59:59 GMT 2022 - 2.4K bytes - Viewed (0) -
docs_src/bigger_applications/app/dependencies.py
raise HTTPException(status_code=400, detail="X-Token header invalid") async def get_query_token(token: str): if token != "jessica":
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri May 13 23:38:22 GMT 2022 - 369 bytes - Viewed (0) -
docs_src/security/tutorial003_py310.py
hashed_password: str def get_user(db, username: str): if username in db: user_dict = db[username] return UserInDB(**user_dict) 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: str = Depends(oauth2_scheme)): user = fake_decode_token(token)
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Jan 07 14:11:31 GMT 2022 - 2.4K bytes - Viewed (0)