spockbot.plugins.core.auth module

Provides authorization functions for Mojang’s login and session servers

class spockbot.plugins.core.auth.AuthCore(event, online_mode, auth_timeout)

Bases: object

auth_token
client_token
get_shared_secret()
get_username()
password
send_session_auth(pubkey_raw, server_id_raw)
set_auth_token(auth_token)
set_client_token(client_token)
set_password(password)
set_username(username)
shared_secret
start_session()
username
class spockbot.plugins.core.auth.AuthPlugin(ploader, settings)

Bases: spockbot.plugins.base.PluginBase

defaults = {'online_mode': True, 'sess_quit': True, 'auth_quit': True, 'auth_timeout': 3}
events = {'auth_session_error': 'handle_session_error', 'auth_login_error': 'handle_auth_error'}
handle_auth_error(name, data)
handle_session_error(name, data)
pl_announce = ('Auth',)
requires = 'Event'
spockbot.plugins.core.auth.java_hex_digest(digest)