jwtssoauthapp

command module
v0.0.0-...-5391196 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 4 Imported by: 0

README

JWT and SSO Authentication with Go (Gin/Gorm) and MySQL

This is a simple project demonstrating JWT (JSON Web Token) and SSO authentication in Go using Gin for the backend and Gorm as the ORM (Object Relational Mapper) with MySQL database. The project includes basic frontend HTML/CSS for login, signup, and forgot password functionality.

Features

  • User authentication with JWT
  • Signup, login, forgot password, and reset password functionality
  • MySQL database integration with Gorm
  • Basic HTML/CSS frontend for user interaction

Prerequisites

  • Go installed on your machine
  • MySQL installed and running
  • Basic understanding of Go, Gin, Gorm, JWT, HTML, and CSS

Installation

  1. Clone the repository:

    git clone https://github.com/imrkaofficial/jwtssoauthapp.git
    cd jwtssoauthapp
    
    
  2. Install Dependencies:

    go mod download
    
    
  3. Set up MySQL database:

    • Update the MySQL DSN in main.go with your database connection details.

Usage

  1. Run the application:

    
    go run main.go
    

The server will start and listen on port 9000.

  1. To visit on pages
    • Login page: http://localhost:9000/login
    • Signup page: http://localhost:9000/signup
    • Forgot Password page: http://localhost:9000/forgotpwd

Author

  • Rajat Kumar Goyal

License

This project is licensed under the MIT LICENSE.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL