Requestsο
from aioauth import requests
Request objects used throughout the project.
- class Query(client_id: str | None = None, redirect_uri: str = '', response_type: str | None = None, state: str = '', scope: str = '', nonce: str | None = None, code_challenge_method: Literal['plain', 'S256'] | None = None, code_challenge: str | None = None, response_mode: Literal['query', 'form_post', 'fragment'] | None = None)[source]ο
Object that contains a clientβs query string portion of a request. Read more on query strings here.
- client_id: str | None = Noneο
- redirect_uri: str = ''ο
- response_type: str | None = Noneο
- state: str = ''ο
- scope: str = ''ο
- nonce: str | None = Noneο
- code_challenge_method: Literal['plain', 'S256'] | None = Noneο
- code_challenge: str | None = Noneο
- response_mode: Literal['query', 'form_post', 'fragment'] | None = Noneο
- class Post(grant_type: Literal['authorization_code', 'password', 'client_credentials', 'refresh_token'] | None = None, client_id: str | None = None, client_secret: str | None = None, redirect_uri: str | None = None, scope: str = '', username: str | None = None, password: str | None = None, refresh_token: str | None = None, code: str | None = None, token: str | None = None, token_type_hint: str | None = None, code_verifier: str | None = None)[source]ο
Object that contains a clientβs post request portion of a request. Read more on post requests here.
- grant_type: Literal['authorization_code', 'password', 'client_credentials', 'refresh_token'] | None = Noneο
- client_id: str | None = Noneο
- client_secret: str | None = Noneο
- redirect_uri: str | None = Noneο
- scope: str = ''ο
- username: str | None = Noneο
- password: str | None = Noneο
- refresh_token: str | None = Noneο
- code: str | None = Noneο
- token: str | None = Noneο
- token_type_hint: str | None = Noneο
- code_verifier: str | None = Noneο
- class BaseRequest(method: Literal['GET', 'POST'], query: ~TQuery, post: ~TPost, headers: aioauth.collections.HTTPHeaderDict = <factory>, url: str = '', user: Optional[~TUser] = None, settings: aioauth.config.Settings = <factory>)[source]ο
- method: Literal['GET', 'POST']ο
- query: TQueryο
- post: TPostο
- headers: HTTPHeaderDictο
- url: str = ''ο
- user: TUser | None = Noneο
- class Request(method: ~typing.Literal['GET', 'POST'], query: ~aioauth.requests.Query = <factory>, post: ~aioauth.requests.Post = <factory>, headers: ~aioauth.collections.HTTPHeaderDict = <factory>, url: str = '', user: ~typing.Any | None = None, settings: ~aioauth.config.Settings = <factory>)[source]ο
Object that contains a clientβs complete request.
- user: Any | None = Noneο