PanagiotisPtr / authentication-service-go-grpc

A basic authentication microservice written in Go that uses GRPC to communicate and JWTs for authentication

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A simple authentication service written in Go

This services registers and authenticates users using JWTs

Building and running the code

First, generate the GRPC code

make protos

Then build the go code

go build

Lastly, run the server

./authentication

Availble commands and examples

The available server commands are

Authentication.Authenticate
Authentication.GetPublicKey
Authentication.Refresh
Authentication.Register

See the protos/authentication.proto for more details.

You can call these RPC methods either by using grpcurl or by generating a client for your language of choice using the protos/authentication.proto file.

About

A basic authentication microservice written in Go that uses GRPC to communicate and JWTs for authentication

License:MIT License


Languages

Language:Go 97.2%Language:Makefile 1.4%Language:Dockerfile 1.4%