oso-go-tutorial

command module
v0.0.0-...-e900e8a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

README

oso: authorization as code [Demo Application]

oso allows you to write policy as code, tightly integrated with application code, logic, and data, and provides a simple way to enforce authorization on all requests.

Example

This repository contains an example application using oso to secure requests.

The application itself is a simple Go web server, implementing an expenses application.

We have already partially implemented the core functionality; some is left for you to complete.

Libs

On purpose, only small number of external dependencies is used, to keep things simple.

For database, only sqlite3 drive is used, no ORM.

Stdlib HTTP functionalities are used, but with addition of Chi router to make middlewares and URL parameters easier to implement.

Of course, OSO library is used to perform authorization.

Utility wise, Uber multierr package is used.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL