Sign inSign up

rhalff/authumn-gateway

By rhalff

•Updated over 8 years ago

Image
0

1.2K

rhalff/authumn-gateway repository overview

⁠Authumn Gateway Service

The Authumn Gateway service is a minimum setup to protect a single api endpoint.

In conjunction with the Token & User service it offers a simple registration and login flow, which enables the user to access the protected api.

Once a user has received a valid token the Authumn Gateway service will take care of the authorization to the Api Service.

Access to the Api service requires a valid token issued by the token service.

Cors is automatically handled for all backend services.

⁠Backend Services

The gateway service is configured to proxy to the following backend services.

⁠[2301] Token Service⁠

This is the token service.

It depends on the user service being available while it will make an authentication request to verify email and password.

The token service will be available at: https://<authumn_gateway_url>/<MOUNT_POINT>/token

⁠[2302] User Service⁠

The user service handles the registration and logins.

The user service will be available at: https://<authumn_gateway_url>/<MOUNT_POINT>/user

⁠[2303] Api service

This is the main api service, the proxy will route authenticated requests to this service. By default the mount point is /v1

The token service will be available at: https://<authumn_gateway_url>/<MOUNT_POINT>/

⁠Docker

The following environment variables can be configured:

NameTypeDescriptionDefault
SERVER_NAMEStringServer Nameauthumn-gateway
TOKEN_URLStringUrl of the Token Service⁠http://localhost:2301/token
USER_URLStringUrl of the User Service⁠http://localhost:2302/user
API_URLStringApi Service Urlhttp://localhost:2303/api
JWT_SECRETStringJWT Secret to sign the tokenschange_me
REDIS_HOSTStringRedis host of the token service⁠localhost
REDIS_PORTStringRedis port of the token service⁠6379
REDIS_DATABASENumberRedis database used by the token service⁠1
REDIS_AUTHStringRedis auth used by the token service⁠
MOUNT_POINTStringMount point/v1

Tag summary

Content type

Image

Digest

Size

98.3 MB

Last updated

over 8 years ago

docker pull rhalff/authumn-gateway