Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/zeiss/fiber-goth

👻 Simple middleware to integrate authentication to your applications
https://github.com/zeiss/fiber-goth

fiber golang gothic middleware

Last synced: 4 days ago
JSON representation

👻 Simple middleware to integrate authentication to your applications

Awesome Lists containing this project

README

        

# 👻 Goth

[![Test & Build](https://github.com/zeiss/fiber-goth/actions/workflows/main.yml/badge.svg)](https://github.com/zeiss/fiber-goth/actions/workflows/main.yml)
[![Go Reference](https://pkg.go.dev/badge/github.com/zeiss/fiber-goth.svg)](https://pkg.go.dev/github.com/zeiss/fiber-goth)
[![Go Report Card](https://goreportcard.com/badge/github.com/zeiss/fiber-goth)](https://goreportcard.com/report/github.com/zeiss/fiber-goth)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Taylor Swift](https://img.shields.io/badge/secured%20by-taylor%20swift-brightgreen.svg)](https://twitter.com/SwiftOnSecurity)

A [fiber](https://gofiber.io/) :rocket: middleware to integrate authentication to your application. It uses lightweight `adapters` and `providers` interfaces to integrate with multi-providers.

## Installation

```bash
$ go get github.com/zeiss/fiber-goth
```

## Providers

* GitHub (github.com, Enterprise, and Enterprise Cloud)
* Microsoft Entra ID

## CSRF

The middleware supports CSRF protection. It is added via the following package.

```golang
import "github.com/zeiss/fiber-goth/csrf"

app := fiber.New()
app.Use(csrf.New())
```

The CSRF protection depends on the session middleware.

## Examples

See [examples](https://github.com/zeiss/fiber-goth/tree/master/examples) to understand the provided interfaces

## License

[MIT](/LICENSE)