Authentication manager¶
Authentication Manager
Authenticate with Windows Live Server and Xbox Live.
pythonxbox.authentication.manager.log = logging.getLogger('authentication')
module-attribute
¶
pythonxbox.authentication.manager.DEFAULT_SCOPES = ['Xboxlive.signin', 'Xboxlive.offline_access']
module-attribute
¶
pythonxbox.authentication.manager.AuthenticationManager(client_session, client_id, client_secret, redirect_uri, scopes=None)
¶
Source code in src/pythonxbox/authentication/manager.py
oauth = None
class-attribute
instance-attribute
¶
user_token = None
class-attribute
instance-attribute
¶
xsts_token = None
class-attribute
instance-attribute
¶
session = client_session
instance-attribute
¶
generate_authorization_url(state=None)
¶
Generate Windows Live Authorization URL.
Source code in src/pythonxbox/authentication/manager.py
request_tokens(authorization_code)
async
¶
Request all tokens.
Source code in src/pythonxbox/authentication/manager.py
refresh_tokens()
async
¶
Refresh all tokens.
Source code in src/pythonxbox/authentication/manager.py
request_oauth_token(authorization_code)
async
¶
Request OAuth2 token.
Source code in src/pythonxbox/authentication/manager.py
refresh_oauth_token()
async
¶
Refresh OAuth2 token.
Source code in src/pythonxbox/authentication/manager.py
request_user_token(relying_party='http://auth.xboxlive.com', use_compact_ticket=False)
async
¶
Authenticate via access token and receive user token.
Source code in src/pythonxbox/authentication/manager.py
request_xsts_token(relying_party='http://xboxlive.com')
async
¶
Authorize via user token and receive final X token.