Table of Contents
This package automates the login workflow for IIT Kharagpur ERP.
- Shells
bash
zsh
- OS(s)
- any
*nix
[GNU+Linux
andUnix
]
- any
To set up a local instance of the application, follow the steps below.
The following dependencies are required to be installed for the project to function properly:
- Go
- IIT-KGP student ERP account
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.
- Clone the repository
git clone https://github.com/metakgp/iitkgp-erp-login-go
- Install dependencies
cd ./iitkgp-erp-login-go go mod download
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)
}