Superclass to handle authorization flow and state. More...
Public Member Functions | |
register (cls) | |
Register this class to handle authorization types of the given type. | |
from_capability_security (cls, security, state=None) | |
Supply a capabilitystatement.rest.security statement and this method will figure out which type of security should be instantiated. | |
create (cls, auth_type, state=None) | |
Factory method to create the correct subclass for the given authorization type. | |
__init__ (self, state=None) | |
reset (self) | |
can_sign_headers (self) | |
authorize_uri (self, server) | |
Return the authorize URL to use, if any. | |
handle_callback (self, url, server) | |
Return the launch context. | |
reauthorize (self) | |
Perform a re-authorization of some form. | |
from_state (self, state) | |
Update ivars from given state information. | |
Public Attributes | |
auth_type | |
app_id | |
Static Public Attributes | |
str | auth_type = 'none' |
dict | auth_classes = {} |
Properties | |
ready = property | |
Indicates whether the authorization part is ready to make resource requests. | |
state = property | |
Superclass to handle authorization flow and state.
fhirclient.auth.FHIRAuth.__init__ | ( | self, | |
state = None |
|||
) |
Reimplemented in fhirclient.auth.FHIROAuth2Auth.
fhirclient.auth.FHIRAuth.authorize_uri | ( | self, | |
server | |||
) |
Return the authorize URL to use, if any.
Reimplemented in fhirclient.auth.FHIROAuth2Auth.
fhirclient.auth.FHIRAuth.can_sign_headers | ( | self | ) |
Reimplemented in fhirclient.auth.FHIROAuth2Auth.
fhirclient.auth.FHIRAuth.create | ( | cls, | |
auth_type, | |||
state = None |
|||
) |
Factory method to create the correct subclass for the given authorization type.
fhirclient.auth.FHIRAuth.from_capability_security | ( | cls, | |
security, | |||
state = None |
|||
) |
Supply a capabilitystatement.rest.security statement and this method will figure out which type of security should be instantiated.
security | A CapabilityStatementRestSecurity instance |
state | A settings/state dictionary |
fhirclient.auth.FHIRAuth.from_state | ( | self, | |
state | |||
) |
Update ivars from given state information.
Reimplemented in fhirclient.auth.FHIROAuth2Auth.
fhirclient.auth.FHIRAuth.handle_callback | ( | self, | |
url, | |||
server | |||
) |
Return the launch context.
Reimplemented in fhirclient.auth.FHIROAuth2Auth.
fhirclient.auth.FHIRAuth.reauthorize | ( | self | ) |
Perform a re-authorization of some form.
Reimplemented in fhirclient.auth.FHIROAuth2Auth.
fhirclient.auth.FHIRAuth.register | ( | cls | ) |
Register this class to handle authorization types of the given type.
fhirclient.auth.FHIRAuth.reset | ( | self | ) |
Reimplemented in fhirclient.auth.FHIROAuth2Auth.
fhirclient.auth.FHIRAuth.app_id |
|
static |
|
static |
fhirclient.auth.FHIRAuth.auth_type |
|
static |
Indicates whether the authorization part is ready to make resource requests.
|
static |