Skip to content

licenseware/lware-components-authenticator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Authenticator (Beta)

This can be used to Licenseware authentification. Note that you must have already an account on licenseware.io.

Quickstart

Install this package using the following pip command:

pip3 install git+https://[email protected]/licenseware/lware-components-authenticator.git

You can add the link in a requirements.txt file. You can use git+ssh if you have ssh keys configured.

Set login values in environment variables:

  • LWARE_IDENTITY_USER (the email)
  • LWARE_IDENTITY_PASSWORD (the password)
  • AUTH_SERVICE_URL (the url for login)

Otherwise you can pass them directly into Authenticator (not recommended).

  • email
  • password
  • auth_url

If you are using environment variables you can login like this:

from authenticator import Authenticator

response = Authenticator.connect()
# check response

Or like this if you are not using environment variables:

from authenticator import Authenticator

response = Authenticator(
    email="[email protected]", 
    password="not recommended", 
    auth_url="https://licenseware.io/auth"
).connect()

# check response

The response will be json, status_code tuple.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages