An open API service indexing awesome lists of open source software.

https://github.com/kitamersion/kita-go-auth

Yet another authentication application built in GO!
https://github.com/kitamersion/kita-go-auth

authentication backend golang

Last synced: 4 months ago
JSON representation

Yet another authentication application built in GO!

Awesome Lists containing this project

README

          

# kita-go-auth

Yet another authentication application built in GO! This project is built _purely_ for learning GO, it is **not** intended for production use case.
You _can_ use this for self-hosted applications that is **not** exposed to the wider internet.

Thank you in advance for any feedback, issues reports and contributions!

## Features

- Register
- Login
- Logout
- Refresh token
- Activate account
- Deactivate account
- Delete account

## Libraries

**TODO:** Link to library

- Gin
- Gorm
- JWT
- Bcrypt
- Rate
- GoDotEnv

## Docker image

https://hub.docker.com/r/helpfulfish/kita-go-auth/tags

```
docker pull helpfulfish/kita-go-auth:latest
```

## Development

Run the following command to build the Docker image:

```
docker build -t kita-go-auth .
```

Run the container with the built image:

```
docker run -p 3001:3001 kita-go-auth
```

Run using `docker-compose` or `podman-compose` (Recommended)

```
docker-compose -f docker-compose-development.yml up -d
```

```
podman-compose -f docker-compose-development.yml up -d
```

```
docker stop $(docker ps -aq) && docker rm $(docker ps -aq); podman rm kita-go-auth; podman build -t kita-go-auth .; podman-compose -f docker-compose-development.yml up -d
```

## Goals

Including the list below, the goal is to create a microservice focused on authentication and user management as a domain.

- [x] Basic CRUD operations for user
- [x] Basic role system: Admin, Basic, Guest
- [ ] Authorization and permissions
- [ ] Admin CRUD operations to control users (User CRUD)
- [ ] Something else?