Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yeboahd24/user-sso-golang
https://github.com/yeboahd24/user-sso-golang
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/yeboahd24/user-sso-golang
- Owner: yeboahd24
- Created: 2024-11-05T15:49:08.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-05T16:04:42.000Z (2 months ago)
- Last Synced: 2024-11-05T17:19:08.802Z (2 months ago)
- Language: Go
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# User SSO Golang Project
## Endpoints
### Public Routes
- `GET /`: Serves the login page### Auth Routes
All auth routes are prefixed with `/auth`- `POST /auth/login`: User login
- `POST /auth/register`: User registration
- `GET /auth/google/login`: Initiates Google OAuth login
- `GET /auth/google/callback`: Handles Google OAuth callback
- `GET /auth/verify`: Verifies user session
- `POST /auth/logout`: User logout## Setup and Configuration
- The project uses Gin framework for routing
- Configuration is managed using Viper, supporting both config files and environment variables
- Database connection is established using the provided DSN in the config## Running the Project
The main entry point is in `cmd/main.go`. The server starts on port 8080.For more details on implementation, refer to the respective handler and service files.