authentication
Authentication classes for NextGen interactions.
Classes
NextGenAuthSession
class NextGenAuthSession(smart_on_fhir: SMARTOnFHIR):Session that uses bearer authentication and auto-retry for NextGen APIs.
Differs from BearerAuthSession in that it contains functionality to auto-retrieve a new NextGen token from SMARTOnFHIR if the other is found to be expired.
Ancestors
Variables
token : str- Returns the current NextGen token or gets one if necessary.
Methods
request
def request( self, method: str | bytes, url: str | bytes, params: Optional[MutableMapping[str, Any]] = None, data: Any = None, headers: Optional[MutableMapping[str, str]] = None, **kwargs: Any,) ‑> requests.models.Response:Performs an HTTP request.
Overrides requests.session.request, appending our access token to the request headers or API keys if present.