def sasl_callback_platform(mech, values): values['access_token'] = token values['api_key'] = settings.api_key() return mech.fulfill(values)