Giter Site home page Giter Site logo

authgg's Introduction

AuthGG Wrapper

How to setup the client

Official Pypi Website

from AuthGG.client import Client

client = Client(api_key="api_key", aid="aid", application_secret="secret")

Logging in example

Allow users logging in and checking if their subscription is valid.

from AuthGG.client import Client

client = Client(api_key="api_key", aid="aid", application_secret="secret")

username = input("Username: ")
password = input("Password: ")

try:
	client.login(username, password)
	
	# clear console and redirect
except Exception as e:
	print(e)

Register a user example

Allows users to register and to begin their subscription.

from AuthGG.client import Client

client = Client(api_key="api_key", aid="aid", application_secret="secret")

email = input("Email: ")
license_key = input("License: ")
username = input("Username: ")
password = input("Password: ")

try:
	client.register(email=email, username=username, password=password, license_key=license_key)

	# successfully registerd
except Exception as e:
	print(e)

Forgot password example

This will send a simple email to the user to reset their password. If the user didn't request this password change, they can just ignore the email.

from AuthGG.client import Client

client = Client(api_key="api_key", aid="aid", application_secret="secret")

username = input("Username: ")

try:
	client.forgotPassword(username)

	# successfully sent
except Exception as e:
	print(e)

Change password example

This is an easier way for your customers to change their password if needed.

from AuthGG.client import Client

client = Client(api_key="api_key", aid="aid", application_secret="secret")

username = input("Username: ")
password = input("Password: ")
newPassword = input("New Password: ")

try:
	client.changePassword(username=username, password=password, newPassword=newPassword)

	# successfully changed password
except Exception as e:
	print(e)

Admin Client

This admin client makes it easier for "Administators" to manage their team

from AuthGG.admin import AdminClient

client = AdminClient("authorization_key")

Change users passwords

Changes the provided users password

from AuthGG.admin import AdminClient

client = AdminClient("authorization_key")

try:
	client.changeUserPassword(username='razu', password='razu')        

	# continue
except Exception as e:
	print(e)   

Reset users HWID

Resets the users HWID

from AuthGG.admin import AdminClient

client = AdminClient("authorization_key")

try:
	client.resetHWID(username='razu')        

	# continue
except Exception as e:
	print(e)    

Get HWID

Returns the given users HWID

from AuthGG.admin import AdminClient

client = AdminClient("authorization_key")

try:
    client.getHWID(username='razu')

    # continue
except Exception as e:
    print(e)

Get user count

Returns the value of how many users are registered on your application

from AuthGG.admin import AdminClient

client = AdminClient("authorization_key")

try:
	status = client.getUserCount()
	print(status)
except Exception as e:
	print(e)

Delete users

Deletes users from the application

from AuthGG.admin import AdminClient

client = AdminClient("authorization_key")

username = input("Username: ")

try:
	status = client.deleteUser(username)
	print(status)
except Exception as e:
	print(e)

Logging

STILL IN DEVELOPMENT

Save Log

Saves a log in the Auth.GG Dashboard

from AuthGG.logging import Logging

client = Logging(aid='', apikey='', secret='')

try:
    client.sendData(username='razu', message='Deleted User')
    
    # continue
except Exception as e:
    print(e)

Contribute

Bitcoin: 1GqmXGqvYfccZTg7dKVtMfD8GE3919segx

CashApp: $razulol

authgg's People

Contributors

rqzu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.