/go-sec

OpenID authentication and rule-based authorization for Go

Primary LanguageGoApache License 2.0Apache-2.0

Go-Sec: Security Packages for Go

tests

This repository includes security packages for LinkSmart Go services.

Import

go get github.com/linksmart/go-sec

It includes the following packages:

Auth

GoDoc
Auth consists of the following subpackages:

  • github.com/linksmart/go-sec/auth/obtainer interface to obtain OpenID Connect tokens
  • github.com/linksmart/go-sec/auth/validator interface to validate OpenID Connect tokens
  • github.com/linksmart/go-sec/auth/keycloak with two packages implementating obtainer and validator for Keycloak

Documentation:

Authz

GoDoc
Package github.com/linksmart/go-sec/authz is a simple rule-based authorization that can be used to implement access control in services after authentication.

Documentation:

Development

The dependencies of this package are managed by Go Modules.