License-API - Basic license based authentication API with discord account integration

License-API

Basic license based authentication API with discord account integration. Built with Golang's Gofiber framework and MySQL. API will auto initialize a database with the necessary tables.

Table of Contents

Endpoints

User Endpoints

Endpoints to be used in bot/discord bot for basic authentication

Key Activation

POST /key/activate

Used for binding a key to a discord ID. Key must be unbinded and not authenticated on any IP addresses.

Payload:

Parameter Type Description
key string User Key
discordID string User Discord ID

Expected Response:

{
    "status": "success", 
    "message": "Key Activated", 
    "data": ""
}

Key Authentication

POST /key/auth

Used for binding a key to an IP. Key must not be authenticated on any IP addresses.

Payload:

Parameter Type Description
key string User Key
ip string User Discord ID

Expected Response:

{
    "status": "success", 
    "message": "Key/IP Authenticated", 
    "data": ""
}

Key Unauthentication

POST /key/unauth

Used for unbinding a key to an IP. Key must be authenticated on an IP address.

Payload:

Parameter Type Description
key string User Key
discordID string User Discord ID

Expected Response:

{
    "status": "success", 
    "message": "Key/IP Unauthenticated", 
    "data": ""
}

Admin Endpoints

Private endpoints to be used by admin to interact with keys.

Secret Admin Key: TEMPKEY123

Key Creation

POST /key/admin/create

Used for binding a key to a discord ID. Key must be unbinded and not authenticated on any IP addresses.

Payload:

Parameter Type Description
count int Number of Keys to Create
auth string Secret Admin Key

Expected Response:

{
    "status": "success", 
    "message": "Generated Keys", 
    "keys": ["key1", "key2"], 
    "data": ""
}

Key Deletion

POST /key/admin/delete

Deletes the specified key along with all the data bound to it.

Payload:

Parameter Type Description
key string User Key
auth string Secret Admin Key

Expected Response:

{
    "status": "success", 
    "message": "Deleted Key", 
    "data": ""
}

Key Unauthentication

POST /key/admin/view

Gets all related data to the specified key

Payload:

Parameter Type Description
key string User Key
auth string Secret Admin Key

Expected Response:

{
    "status": "success", 
    "message": "Key Found", 
    "keyInfo": {
        "Id": 0,
        "License": "String",
        "Ip": "String",
        "DiscordID": "String"
    }, 
    "data": ""
}
Owner
Similar Resources

Tutorial: Deploying a basic Gin app on Jekyo

Tutorial: Deploying a basic Gin app on Jekyo Demo app here Prerequisites Make sure you have NodeJS, npm and git installed. If it's your first time usi

Nov 1, 2021

A basic example of a go web server with a react frontend

A basic example of a go web server with a react frontend

GO-React starter This is a basic example of a go web server with a react frontend. It uses the go fiber framework Getting started Running locally Clon

Nov 16, 2021

GRPC Basic Implementation For Golang

GRPC Basic Implementation What is Remote Procedure Call In your CLIENT code, It looks like you're just calling a function directly on SERVER For examp

Nov 23, 2021

Paxoskv: a Naive and Basic paxos kv storage

paxoskv: a Naive and Basic paxos kv storage 这个repo 目前仅是用于学习的实例代码. 这是一个基于paxos, 只有200行代码的kv存储系统的简单实现, 以最简洁的形式展示paxos如何运行, 作为 可靠分布式系统-paxos的直观解释 这篇教程中的代

Nov 29, 2021

A simple web-based time in/time out intended for home-based workers.

Web-based Time in/Time out About A simple web-based time in/time out intended for home-based workers. Pre-requisite To run the pre-built binary: An in

Dec 16, 2021

Gorilla is a REST API template for efficient personal development, implemented based on the CleanArchitecture design philosophy.

Gorilla is a REST API template for efficient personal development, implemented based on the CleanArchitecture design philosophy.

The Gorilla Template is a REST API template for efficient personal development, implemented based on the CleanArchitecture design philosophy.

Feb 13, 2022

GoCondor is a golang web framework with an MVC like architecture, it's based on Gin framework

GoCondor is a golang web framework with an MVC like architecture, it's based on Gin framework

GoCondor is a golang web framework with an MVC like architecture, it's based on Gin framework, it features a simple organized directory structure for your next project with a pleasant development experience, made for developing modern APIs and microservices.

Dec 29, 2022

verless is a Static Site Generator designed for Markdown-based content

verless is a Static Site Generator designed for Markdown-based content

verless (pronounced like serverless) is a Static Site Generator designed for Markdown-based content with a focus on simplicity and performance. It reads your Markdown files, applies your HTML templates and renders them as a website.

Dec 14, 2022

Handles file uploads & organises files based on your database entities.

Handles file uploads & organises files based on your database entities.

Nov 22, 2022
Account Generator Bot, written in GoLang via gotgbot library

Account Generator Bot Account Generator Bot, written in GoLang via gotgbot library. Variables Env Vars - BOT_TOKEN - Get it from @BotFather CHANNEL_ID

Dec 28, 2021
GoTrue is a small open-source API written in Golang, that can act as a self-standing API service for handling user registration and authentication for Jamstack projects.
GoTrue is a small open-source API written in Golang, that can act as a self-standing API service for handling user registration and authentication for Jamstack projects.

GoTrue is a small open-source API written in Golang, that can act as a self-standing API service for handling user registration and authentication for Jamstack projects.

Dec 13, 2021
A sample url shortener app to test Keploy integration capabilities
A sample url shortener app to test Keploy integration capabilities

Example URL Shortener A sample url shortener app to test Keploy integration capabilities Installation git clone https://github.com/keploy/example-url-

Oct 22, 2022
My basic implementation of a command line based snake game

skycoin_snake This is my basic implementation of a command line based snake game. The snake head is represented by the @ character while the rest of t

Dec 9, 2021
A fully functional Ecommerce API in GO GIN Framework and mongoDB with JWT Authentication
A fully functional Ecommerce API in GO GIN Framework and mongoDB  with JWT Authentication

Fully functional ECOMMERCE API USING GIN FRAMEWORK AND MONGODB -----Initial Release v2.30 ⚠️ Not tested the efficiency project structure Ecommerce ??

Dec 11, 2022
This codebase was created to demonstrate a fully fledged fullstack application built with Golang/Echo including CRUD operations, authentication, routing, pagination, and more.
This codebase was created to demonstrate a fully fledged fullstack application built with Golang/Echo including CRUD operations, authentication, routing, pagination, and more.

This codebase was created to demonstrate a fully fledged fullstack application built with Golang/Echo including CRUD operations, authentication, routing, pagination, and more.

Jan 6, 2023
This is a small API that provides basic REST endpoints to shorten a URL
This is a small API that provides basic REST endpoints to shorten a URL

This is a small API that provides basic REST endpoints to shorten a URL, get information about the URL, update the URL, and get statistics on most accessed URLs.

Nov 16, 2021
Gin-boilerplate - Gin boilerplate preconfigured with basic rest api features

Gin Boilerplate Build apis with gin faster with this template Features Validatio

Jun 24, 2022
A Discord clone using React and Go

Valkyrie A Discord clone using React and Go. Live Demo Notes: File Upload is disabled. The design does not fully match current Discord anymore. Data r

May 12, 2022
A barebones URL Shortener implementation in Go using Gin and MySQL. Also features a basic frontend.

URL Shortener in Go This is a barebones URL Shortener implementation in Go using the Gin web framework and MySQL. Also features a basic frontend. Loca

Dec 22, 2021