Authenticator¶
pyfamilysafety.authenticator.Authenticator ¶
Authenticator(client_session=None)
The base authenticator class.
init the class.
Source code in pyfamilysafety/authenticator/__init__.py
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | |
create
async
classmethod
¶
create(token, use_refresh_token=False, client_session=None)
Creates and starts a Microsoft auth session without retaining the username and password.
Source code in pyfamilysafety/authenticator/__init__.py
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | |
perform_login
async
¶
perform_login(auth_code)
Performs login from the username and password.
Source code in pyfamilysafety/authenticator/__init__.py
111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 | |
perform_refresh
async
¶
perform_refresh()
Refresh the token.
Source code in pyfamilysafety/authenticator/__init__.py
139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 | |