A Python package, that allows you to acquire your RecNet authorization bearer token with your account credentials!

Overview

RecNet-Login

This is a Python package, that allows you to acquire your RecNet bearer token with your account credentials!

Installation

Done via git:

python -m pip install git+https://github.com/Jegarde/RecNet-Login.git#egg=recnetlogin

Getting started

The absolute basics. This is basically all you need to know to get started.

from recnetlogin import login_to_recnet

login = login_to_recnet("username", "password")

print(login)

A simple example on how the package is used. Another example script is found here.

import sys
from recnetlogin import login_to_recnet

# RecNet account credentials
username = ''
password = ''

# Login function from the module
login = login_to_recnet(username, password)

if not login['success']:  # If the login was successful, the variable will be true
    # Login failed.
    sys.exit(login['error'])  # Print error included in the returned dictionary

# If login succeeded, print the details
bearer_token = login['bearer_token']
account_data = login['account_data']

print("Bearer token:", bearer_token)
print("Account data:", account_data)

Details

The function login_to_recnet(username, password) returns the following data if the login was SUCCESSFUL;

{
    "success": true,
    "bearer_token": "Bearer X",
    "account_data": {
       "availableUsernameChanges": 0,
       "email": "[email protected]",
       "phone": "",
       "birthday":"0000-00-00T00:00:00Z",
       "accountId": 1,
       "username": "Coach",
       "displayName": "Coach",
       "profileImage": "DefaultProfileImage",
       "bannerImage": "",
       "isJunior": false,
       "platforms": 0,
       "createdAt": "0000-00-00T00:00:00.000Z"
    }
}

and if it was UNSUCCESSFUL:

{
    "success": false,
    "error": "specified error"
}

Arguments

You can also directly run the login.py file. You can also run it with username and password arguments. Make sure to run it from the terminal to prevent it from shutting down on finish.

python login.py USERNAME PASSWORD

If successful, it will print your bearer token and account data.

You might also like...
Phishing Abusing Microsoft 365 OAuth Authorization Flow
Phishing Abusing Microsoft 365 OAuth Authorization Flow

Microsoft365_devicePhish Abusing Microsoft 365 OAuth Authorization Flow for Phishing Attack This is a simple proof-of-concept script that allows an at

Abusing Microsoft 365 OAuth Authorization Flow for Phishing Attack
Abusing Microsoft 365 OAuth Authorization Flow for Phishing Attack

Microsoft365_devicePhish Abusing Microsoft 365 OAuth Authorization Flow for Phishing Attack This is a simple proof-of-concept script that allows an at

Some scripts to utilise device code authorization for phishing.

OAuth Device Code Authorization Phishing Some scripts to utilise device code authorization for phishing. High level overview as per the instructions a

A secure authentication module to validate user credentials in a Streamlit application.
A secure authentication module to validate user credentials in a Streamlit application.

Streamlit-Authenticator A secure authentication module to validate user credentials in a Streamlit application. Installation Streamlit-Authenticator i

A wagtail plugin to replace the login by an OAuth2.0 Authorization Server

Wagtail OAuth2.0 Login Plugin to replace Wagtail default login by an OAuth2.0 Authorization Server. What is wagtail-oauth2 OAuth2.0 is an authorizatio

Skit-auth - Authorization for skit.ai's platform

skit-auth This is a simple authentication library for Skit's platform. Provides

This script helps you log in to your LMS account and enter the currently running session

This script helps you log in to your LMS account and enter the currently running session, all in a second

Django Admin Two-Factor Authentication, allows you to login django admin with google authenticator.
Django Admin Two-Factor Authentication, allows you to login django admin with google authenticator.

Django Admin Two-Factor Authentication Django Admin Two-Factor Authentication, allows you to login django admin with google authenticator. Why Django

JSON Web Token implementation in Python

PyJWT A Python implementation of RFC 7519. Original implementation was written by @progrium. Sponsor If you want to quickly add secure token-based aut

Owner
Jesse
Fluent in spaghetti Python.
Jesse
Integrated set of Django applications addressing authentication, registration, account management as well as 3rd party (social) account authentication.

Welcome to django-allauth! Integrated set of Django applications addressing authentication, registration, account management as well as 3rd party (soc

Raymond Penners 7.7k Jan 1, 2023
Integrated set of Django applications addressing authentication, registration, account management as well as 3rd party (social) account authentication.

Welcome to django-allauth! Integrated set of Django applications addressing authentication, registration, account management as well as 3rd party (soc

Raymond Penners 7.7k Jan 3, 2023
Simple yet powerful authorization / authentication client library for Python web applications.

Authomatic Authomatic is a framework agnostic library for Python web applications with a minimalistic but powerful interface which simplifies authenti

null 1k Dec 28, 2022
Simple yet powerful authorization / authentication client library for Python web applications.

Authomatic Authomatic is a framework agnostic library for Python web applications with a minimalistic but powerful interface which simplifies authenti

null 962 Feb 4, 2021
Simple yet powerful authorization / authentication client library for Python web applications.

Authomatic Authomatic is a framework agnostic library for Python web applications with a minimalistic but powerful interface which simplifies authenti

null 962 Feb 19, 2021
Toolkit for Pyramid, a Pylons Project, to add Authentication and Authorization using Velruse (OAuth) and/or a local database, CSRF, ReCaptcha, Sessions, Flash messages and I18N

Apex Authentication, Form Library, I18N/L10N, Flash Message Template (not associated with Pyramid, a Pylons project) Uses alchemy Authentication Authe

null 95 Nov 28, 2022
Customizable User Authorization & User Management: Register, Confirm, Login, Change username/password, Forgot password and more.

Flask-User v1.0 Attention: Flask-User v1.0 is a Production/Stable version. The previous version is Flask-User v0.6. User Authentication and Management

Ling Thio 997 Jan 6, 2023
Awesome Django authorization, without the database

rules rules is a tiny but powerful app providing object-level permissions to Django, without requiring a database. At its core, it is a generic framew

null 1.6k Dec 30, 2022
Implements authentication and authorization as FastAPI dependencies

FastAPI Security Implements authentication and authorization as dependencies in FastAPI. Features Authentication via JWT-based OAuth 2 access tokens a

Jacob Magnusson 111 Jan 7, 2023
Customizable User Authorization & User Management: Register, Confirm, Login, Change username/password, Forgot password and more.

Flask-User v1.0 Attention: Flask-User v1.0 is a Production/Stable version. The previous version is Flask-User v0.6. User Authentication and Management

Ling Thio 916 Feb 15, 2021