Skip to content

The only golang package you will ever need to implement login process in ERP for IIT-KGP

License

Notifications You must be signed in to change notification settings

metakgp/iitkgp-erp-login-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contributors Forks Stargazers Issues MIT License Wiki

ERP Login Module

Report Bug · Request Feature

Table of Contents

About The Project

This package automates the login workflow for IIT Kharagpur ERP.

(back to top)

Supports:

  1. Shells
    • bash
    • zsh
  2. OS(s)
    • any *nix[GNU+Linux and Unix]

(back to top)

Getting Started

To set up a local instance of the application, follow the steps below.

Prerequisites

The following dependencies are required to be installed for the project to function properly:

  • Go
  • IIT-KGP student ERP account

(back to top)

Installation

Now that the environment has been set up and configured to properly compile and run the project, the next step is to install and configure the project locally on your system.

  1. Clone the repository
    git clone https://github.com/metakgp/iitkgp-erp-login-go
  2. Install dependencies
    cd ./iitkgp-erp-login-go
    go mod download

(back to top)

Usage

The following code logs in to ERP and opens ERP homepage in the browser.

package main

import (
	erp "github.com/metakgp/iitkgp-erp-login-go"

	"github.com/pkg/browser"
)

func main() {
	_, ssoToken := erp.ERPSession()
	
	browser.OpenURL(erp.HOMEPAGE_URL + "?" + ssoToken)
}

Projects using ERP Login Package Go

Maintainer(s)

(back to top)

Contact

📫 MetaKGP - Metakgp's slack invite Metakgp's email metakgp's Facebook metakgp's LinkedIn metakgp's Twitter metakgp's Instagram

(back to top)

Additional documentation

(back to top)

About

The only golang package you will ever need to implement login process in ERP for IIT-KGP

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages