MCPcopy Create free account
hub / github.com/AstroPrint/AstroBox / _checkAuth

Method _checkAuth

src/astroprint/software.py:708–718  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

706 }
707
708 def _checkAuth(self):
709 if current_user and current_user.is_authenticated and not current_user.is_anonymous:
710 privateKey = current_user.privateKey
711 publicKey = current_user.publicKey
712
713 if privateKey and publicKey:
714 from astroprint.cloud import astroprintCloud
715 return astroprintCloud().hmacAuth
716
717
718 return None
719
720 def capabilities(self):
721 ppm = printerProfileManager()

Callers 3

checkSoftwareVersionMethod · 0.95
updateSoftwareMethod · 0.95
sendLogsMethod · 0.95

Calls 1

astroprintCloudFunction · 0.90

Tested by

no test coverage detected