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

https://github.com/core-go/authentication


https://github.com/core-go/authentication

2-factor-authentication auth authentication authenticator ldap-authentication ldap-authenticator ldap-login privilege privileges privileges-loader

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

          

# Authentication
![Authentication](https://cdn-images-1.medium.com/max/800/1*vR1JU008NUR4wKEgqwfuoA.png)
- authenticator
- ldap authenticator
- 2 factor authentication
- oauth2

![oauth2](https://cdn-images-1.medium.com/max/800/1*aSvPTTDaS-8lgOAdTMnc5A.png)

## Installation
Please make sure to initialize a Go module before installing core-go/auth:

```shell
go get -u github.com/core-go/authentication
```

Import:
```go
import "github.com/core-go/authentication"
```

## Models
- AuthInfo
- AuthResult
- UserAccount
- Privilege
- UserInfo
- StoredUser

## Services
- Authenticator

## Repositories
- UserRepository
- PrivilegesRepository

## Token
- TokenConfig
- TokenGenerator

## OAuth2
### Models
- Configuration
- OAuth2Info
- User

### Services
- OAuth2Service
- Azure

### Repositories
- UserRepository
- OAuth2UserRepository
- ConfigurationRepository