Skip to main content

grants.oauth2.utils

build_authorize_url

def build_authorize_url(grant: BaseOauth2Grant) -> str

Builds the authorize url for the given grant.

Parameters

grant : BaseOauth2Grant A BaseOauth2Grant

Returns

str The authorize url

build_token_url

def build_token_url(grant: BaseOauth2Grant) -> str

Builds the token url for the given grant.

Parameters

grant : BaseOauth2Grant BaseOauth2Grant

Returns

str The token url

build_refresh_url

def build_refresh_url(grant: BaseOauth2Grant) -> str

Builds the token url for the given grant.

Parameters

grant : BaseOauth2Grant BaseOauth2Grant

Returns

str The token url