Skip to content

Instantly share code, notes, and snippets.

@hpk42
Created September 17, 2014 09:41
Show Gist options
  • Save hpk42/f11374c75e04215d3776 to your computer and use it in GitHub Desktop.
Save hpk42/f11374c75e04215d3776 to your computer and use it in GitHub Desktop.
def devpiserver_auth(userconfig, user, password):
# if we know about the user and password is correct
return dict(status="ok", groups=[...])
# if we know about the user and the password is incorrect
return dict(status="reject")
# if we don't know about the user
# other plugins may still try verification
return dict(status="unknown")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment