Rename org from clems4ever to authelia

Also fix references from config.yml to configuration.yml
pull/516/head^2
Amir Zarrinkafsh 2019-12-24 13:14:52 +11:00 committed by GitHub
parent 3a330c3383
commit fabb76754e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
101 changed files with 188 additions and 187 deletions

1
.gitignore vendored
View File

@ -27,6 +27,7 @@ dist/
*.tgz
# Specific files
/configuration.yml
/config.yml
/config.test.yml

View File

@ -98,7 +98,7 @@ jobs:
after_success:
- authelia-scripts docker push-image --arch=$ARCH
before_deploy:
- docker create --name authelia-binary clems4ever/authelia:${TRAVIS_TAG:1}-$ARCH
- docker create --name authelia-binary authelia/authelia:${TRAVIS_TAG:1}-$ARCH
- docker cp authelia-binary:/usr/app/authelia ./authelia-linux-$ARCH
- docker cp authelia-binary:/usr/app/public_html ./
- tar -czf authelia-linux-$ARCH.tar.gz authelia-linux-$ARCH public_html

View File

@ -2,7 +2,7 @@ Release Notes - Version 4.0.0
------------------------------
* Authelia is rewritten in Go.
* Authelia frontend has been rewritten with Material-UI and simplified.
* config.yml should include a secret for jwt issuance and verification.
* configuration.yml should include a secret for jwt issuance and verification.
* Models in database have been updated to better fit with the Go library.
* The local storage has been replaced by a good old sqlite3 database.
* The mongo option for storing user preferences and device secrets has been deprecated in favor of SQL options: mysql and postgres.

View File

@ -3,7 +3,7 @@
</p>
[![license](https://img.shields.io/badge/license-Apache%202.0-green.svg)][Apache 2.0]
[![Build](https://travis-ci.org/clems4ever/authelia.svg?branch=master)](https://travis-ci.org/clems4ever/authelia)
[![Build](https://travis-ci.org/authelia/authelia.svg?branch=master)](https://travis-ci.org/authelia/authelia)
[![Gitter](https://img.shields.io/gitter/room/badges/shields.svg)](https://gitter.im/authelia/general?utm_source=share-link&utm_medium=link&utm_campaign=share-link)
**Authelia** is an open-source authentication and authorization server
@ -57,7 +57,7 @@ For more details about the features, follow [Features](./docs/features.md).
## Proxy support
Authelia works in combination with [nginx] or [Traefik] and soon with [HAProxy] as discussed in
[#271](https://github.com/clems4ever/authelia/issues/271). It can be deployed on bare metal with
[#271](https://github.com/authelia/authelia/issues/271). It can be deployed on bare metal with
Docker or directly in [Kubernetes].
<p align="center">
@ -70,7 +70,7 @@ Docker or directly in [Kubernetes].
You can start off with
git clone https://github.com/clems4ever/authelia.git && cd authelia
git clone https://github.com/authelia/authelia.git && cd authelia
source bootstrap.sh
If you want to go further, please read [Getting Started](./docs/getting-started.md).

View File

@ -8,7 +8,7 @@ import (
"os/exec"
"strings"
"github.com/clems4ever/authelia/internal/utils"
"github.com/authelia/authelia/internal/utils"
"github.com/spf13/cobra"
)
@ -207,5 +207,5 @@ func Bootstrap(cobraCmd *cobra.Command, args []string) {
fmt.Println()
bootstrapPrintln("Run 'authelia-scripts suites setup Standalone' to start Authelia and visit https://home.example.com:8080.")
bootstrapPrintln("More details at https://github.com/clems4ever/authelia/blob/master/docs/getting-started.md")
bootstrapPrintln("More details at https://github.com/authelia/authelia/blob/master/docs/getting-started.md")
}

View File

@ -3,7 +3,7 @@ package main
import (
"os"
"github.com/clems4ever/authelia/internal/utils"
"github.com/authelia/authelia/internal/utils"
log "github.com/sirupsen/logrus"
"github.com/spf13/cobra"
)

View File

@ -1,7 +1,7 @@
package main
import (
"github.com/clems4ever/authelia/internal/utils"
"github.com/authelia/authelia/internal/utils"
log "github.com/sirupsen/logrus"
"github.com/spf13/cobra"
)

View File

@ -7,7 +7,7 @@ import (
"regexp"
"strings"
"github.com/clems4ever/authelia/internal/utils"
"github.com/authelia/authelia/internal/utils"
log "github.com/sirupsen/logrus"
"github.com/spf13/cobra"
)

View File

@ -3,7 +3,7 @@ package main
import (
"fmt"
"github.com/clems4ever/authelia/internal/authentication"
"github.com/authelia/authelia/internal/authentication"
"github.com/spf13/cobra"
)

View File

@ -3,7 +3,7 @@ package main
import (
"os"
"github.com/clems4ever/authelia/internal/utils"
"github.com/authelia/authelia/internal/utils"
log "github.com/sirupsen/logrus"
"github.com/spf13/cobra"
)

View File

@ -11,8 +11,8 @@ import (
"syscall"
"time"
"github.com/clems4ever/authelia/internal/suites"
"github.com/clems4ever/authelia/internal/utils"
"github.com/authelia/authelia/internal/suites"
"github.com/authelia/authelia/internal/utils"
log "github.com/sirupsen/logrus"
"github.com/spf13/cobra"
)

View File

@ -1,7 +1,7 @@
package main
import (
"github.com/clems4ever/authelia/internal/utils"
"github.com/authelia/authelia/internal/utils"
log "github.com/sirupsen/logrus"
"github.com/spf13/cobra"
"os"

View File

@ -4,7 +4,7 @@ package main
var OutputDir = "dist"
// DockerImageName the official name of authelia docker image
var DockerImageName = "clems4ever/authelia"
var DockerImageName = "authelia/authelia"
// IntermediateDockerImageName local name of the docker image
var IntermediateDockerImageName = "authelia:dist"

View File

@ -1,7 +1,7 @@
package main
import (
"github.com/clems4ever/authelia/internal/utils"
"github.com/authelia/authelia/internal/utils"
)
// Docker a docker object
@ -59,5 +59,5 @@ func (d *Docker) CleanTag(tag string) error {
// PublishReadme push README.md to dockerhub.
func (d *Docker) PublishReadme() error {
return utils.CommandWithStdout("bash", "-c", `token=$(curl -fs --retry 3 -H "Content-Type: application/json" -X "POST" -d '{"username": "'$DOCKER_USERNAME'", "password": "'$DOCKER_PASSWORD'"}' https://hub.docker.com/v2/users/login/ | jq -r .token) && jq -n --arg msg "$(cat README.md | sed -r 's/(\<img\ src\=\")(\.\/)/\1https:\/\/github.com\/clems4ever\/authelia\/raw\/master\//' | sed 's/\.\//https:\/\/github.com\/clems4ever\/authelia\/blob\/master\//g')" '{"registry":"registry-1.docker.io","full_description": $msg }' | curl -fs --retry 3 -o /dev/null -L -X "PATCH" -H "Content-Type: application/json" -H "Authorization: JWT $token" -d @- https://hub.docker.com/v2/repositories/clems4ever/authelia/`).Run()
return utils.CommandWithStdout("bash", "-c", `token=$(curl -fs --retry 3 -H "Content-Type: application/json" -X "POST" -d '{"username": "'$DOCKER_USERNAME'", "password": "'$DOCKER_PASSWORD'"}' https://hub.docker.com/v2/users/login/ | jq -r .token) && jq -n --arg msg "$(cat README.md | sed -r 's/(\<img\ src\=\")(\.\/)/\1https:\/\/github.com\/authelia\/authelia\/raw\/master\//' | sed 's/\.\//https:\/\/github.com\/authelia\/authelia\/blob\/master\//g')" '{"registry":"registry-1.docker.io","full_description": $msg }' | curl -fs --retry 3 -o /dev/null -L -X "PATCH" -H "Content-Type: application/json" -H "Authorization: JWT $token" -d @- https://hub.docker.com/v2/repositories/authelia/authelia/`).Run()
}

View File

@ -3,7 +3,7 @@
package main
import (
"github.com/clems4ever/authelia/internal/utils"
"github.com/authelia/authelia/internal/utils"
log "github.com/sirupsen/logrus"
"github.com/spf13/cobra"
)

View File

@ -4,8 +4,8 @@ import (
"encoding/base64"
"strings"
"github.com/clems4ever/authelia/internal/configuration"
"github.com/clems4ever/authelia/internal/storage"
"github.com/authelia/authelia/internal/configuration"
"github.com/authelia/authelia/internal/storage"
)
// TOTPSecretsV3 one entry of TOTP secrets in v3

View File

@ -8,8 +8,8 @@ import (
"path"
"time"
"github.com/clems4ever/authelia/internal/models"
"github.com/clems4ever/authelia/internal/storage"
"github.com/authelia/authelia/internal/models"
"github.com/authelia/authelia/internal/storage"
"github.com/spf13/cobra"
)

View File

@ -5,8 +5,8 @@ import (
"log"
"time"
"github.com/clems4ever/authelia/internal/models"
"github.com/clems4ever/authelia/internal/storage"
"github.com/authelia/authelia/internal/models"
"github.com/authelia/authelia/internal/storage"
"github.com/spf13/cobra"
"go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-driver/mongo"

View File

@ -5,8 +5,8 @@ import (
"os"
"path/filepath"
"github.com/clems4ever/authelia/internal/suites"
"github.com/clems4ever/authelia/internal/utils"
"github.com/authelia/authelia/internal/suites"
"github.com/authelia/authelia/internal/utils"
"github.com/otiai10/copy"
log "github.com/sirupsen/logrus"
"github.com/spf13/cobra"

View File

@ -6,17 +6,17 @@ import (
"log"
"os"
"github.com/clems4ever/authelia/internal/authentication"
"github.com/clems4ever/authelia/internal/authorization"
"github.com/clems4ever/authelia/internal/configuration"
"github.com/clems4ever/authelia/internal/logging"
"github.com/clems4ever/authelia/internal/middlewares"
"github.com/clems4ever/authelia/internal/notification"
"github.com/clems4ever/authelia/internal/regulation"
"github.com/clems4ever/authelia/internal/server"
"github.com/clems4ever/authelia/internal/session"
"github.com/clems4ever/authelia/internal/storage"
"github.com/clems4ever/authelia/internal/utils"
"github.com/authelia/authelia/internal/authentication"
"github.com/authelia/authelia/internal/authorization"
"github.com/authelia/authelia/internal/configuration"
"github.com/authelia/authelia/internal/logging"
"github.com/authelia/authelia/internal/middlewares"
"github.com/authelia/authelia/internal/notification"
"github.com/authelia/authelia/internal/regulation"
"github.com/authelia/authelia/internal/server"
"github.com/authelia/authelia/internal/session"
"github.com/authelia/authelia/internal/storage"
"github.com/authelia/authelia/internal/utils"
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
)

View File

@ -27,12 +27,12 @@ either by pulling the Docker image or building distributable version.
## Build and deploy the distributable version
$ authelia-scripts build
$ PUBLIC_DIR=./dist/public_html ./dist/authelia --config /path/to/your/config.yml
$ PUBLIC_DIR=./dist/public_html ./dist/authelia --config /path/to/your/configuration.yml
## Deploy with Docker
$ docker pull clems4ever/authelia
$ docker run -v /path/to/your/config.yml:/etc/authelia/config.yml clems4ever/authelia
$ docker pull authelia/authelia
$ docker run -v /path/to/your/configuration.yml:/etc/authelia/configuration.yml authelia/authelia
## Deploy Nginx
@ -115,7 +115,7 @@ Copy this newly hashed password into your `users_database.yml` file, prefixed wi
`{CRYPT}` as shown in the example file above.
Once the file is created, edit the configuration file with the following
block (as used in [config.yml](../test/suites/basic/config.yml)):
block (as used in [configuration.yml](../test/suites/basic/configuration.yml)):
authentication_backend:
file:

View File

@ -24,7 +24,7 @@ multiple instances to evenly handle the traffic.
deploy **Authelia** with only nginx. This is described in [Deployment for Devs].
Here are the available steps to deploy **Authelia** given
the configuration file is **/path/to/your/config.yml**. Note that you can
the configuration file is **/path/to/your/configuration.yml**. Note that you can
create your own configuration file from [config.template.yml] located at
the root of the repo.
@ -32,11 +32,11 @@ the root of the repo.
# Build it if not done already
$ authelia-scripts build
$ PUBLIC_DIR=./dist/public_html authelia --config /path/to/your/config.yml
$ PUBLIC_DIR=./dist/public_html authelia --config /path/to/your/configuration.yml
### Deploy With Docker
$ docker run -v /path/to/your/config.yml:/etc/authelia/config.yml -e TZ=Europe/Paris clems4ever/$ $ authelia --config /etc/authelia/config.yml
$ docker run -v /path/to/your/configuration.yml:/etc/authelia/configuration.yml -e TZ=Europe/Paris authelia/authelia
## On top of Kubernetes

View File

@ -72,6 +72,6 @@ Redis key/value store. You can specify your own Redis instance in
[config.template.yml].
[basic authentication]: https://en.wikipedia.org/wiki/Basic_access_authentication
[config.template.yml]: https://github.com/clems4ever/authelia/blob/master/config.template.yml
[config.template.yml]: https://github.com/authelia/authelia/blob/master/config.template.yml
[Yubikey]: https://www.yubico.com/products/yubikey-hardware/yubikey4/
[Google Authenticator]: https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2&hl=en

View File

@ -69,5 +69,5 @@ in /etc/hosts when you first source the bootstrap.sh script.
You can refer to the dedicated documentation [here](./build-and-dev.md).
[config.template.yml]: ../config.template.yml
[DockerHub]: https://hub.docker.com/r/clems4ever/authelia/
[DockerHub]: https://hub.docker.com/r/authelia/authelia/
[suite]: ./suites.md

View File

@ -79,7 +79,7 @@
<h1>Access control rules</h1>
<p></p>These rules are extracted from the configuration file
<a href="https://github.com/clems4ever/authelia/blob/master/config.template.yml">config.template.yml</a>.</p>
<a href="https://github.com/authelia/authelia/blob/master/config.template.yml">config.template.yml</a>.</p>
<pre id="rules" style="border: 1px grey solid; padding: 20px; display: inline-block;">
default_policy: deny

View File

@ -18,5 +18,5 @@ spec:
spec:
containers:
- name: test-app1
image: clems4ever/authelia:kube
image: authelia/authelia:kube
imagePullPolicy: Never

View File

@ -1,7 +1,7 @@
version: "3.4"
services:
authelia:
image: clems4ever/authelia:latest
image: authelia/authelia:latest
# Used for Docker configs
configs:
- source: authelia

2
go.mod
View File

@ -1,4 +1,4 @@
module github.com/clems4ever/authelia
module github.com/authelia/authelia
go 1.13

View File

@ -6,8 +6,8 @@ import (
"net/url"
"strings"
"github.com/clems4ever/authelia/internal/configuration/schema"
"github.com/clems4ever/authelia/internal/logging"
"github.com/authelia/authelia/internal/configuration/schema"
"github.com/authelia/authelia/internal/logging"
"gopkg.in/ldap.v3"
)

View File

@ -3,7 +3,7 @@ package authentication
import (
"testing"
"github.com/clems4ever/authelia/internal/configuration/schema"
"github.com/authelia/authelia/internal/configuration/schema"
gomock "github.com/golang/mock/gomock"
"github.com/stretchr/testify/require"
)

View File

@ -6,7 +6,7 @@ import (
"regexp"
"strings"
"github.com/clems4ever/authelia/internal/configuration/schema"
"github.com/authelia/authelia/internal/configuration/schema"
)
const userPrefix = "user:"

View File

@ -7,7 +7,7 @@ import (
"github.com/stretchr/testify/suite"
"github.com/clems4ever/authelia/internal/configuration/schema"
"github.com/authelia/authelia/internal/configuration/schema"
"github.com/stretchr/testify/assert"
)

View File

@ -5,8 +5,8 @@ import (
"gopkg.in/yaml.v2"
"github.com/clems4ever/authelia/internal/configuration/schema"
"github.com/clems4ever/authelia/internal/configuration/validator"
"github.com/authelia/authelia/internal/configuration/schema"
"github.com/authelia/authelia/internal/configuration/validator"
)
func check(e error) {

View File

@ -6,7 +6,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/clems4ever/authelia/internal/configuration/schema"
"github.com/authelia/authelia/internal/configuration/schema"
)
type TestNestedStruct struct {

View File

@ -6,7 +6,7 @@ import (
"net/url"
"strings"
"github.com/clems4ever/authelia/internal/configuration/schema"
"github.com/authelia/authelia/internal/configuration/schema"
)
var ldapProtocolPrefix = "ldap://"

View File

@ -3,7 +3,7 @@ package validator
import (
"testing"
"github.com/clems4ever/authelia/internal/configuration/schema"
"github.com/authelia/authelia/internal/configuration/schema"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"

View File

@ -3,7 +3,7 @@ package validator
import (
"fmt"
"github.com/clems4ever/authelia/internal/configuration/schema"
"github.com/authelia/authelia/internal/configuration/schema"
)
var defaultPort = 8080

View File

@ -3,7 +3,7 @@ package validator
import (
"testing"
"github.com/clems4ever/authelia/internal/configuration/schema"
"github.com/authelia/authelia/internal/configuration/schema"
"github.com/stretchr/testify/assert"
)

View File

@ -3,7 +3,7 @@ package validator
import (
"errors"
"github.com/clems4ever/authelia/internal/configuration/schema"
"github.com/authelia/authelia/internal/configuration/schema"
)
// ValidateSession validates and update session configuration.

View File

@ -3,7 +3,7 @@ package validator
import (
"testing"
"github.com/clems4ever/authelia/internal/configuration/schema"
"github.com/authelia/authelia/internal/configuration/schema"
"github.com/stretchr/testify/assert"
)

View File

@ -3,7 +3,7 @@ package validator
import (
"errors"
"github.com/clems4ever/authelia/internal/configuration/schema"
"github.com/authelia/authelia/internal/configuration/schema"
)
// ValidateSQLStorage validates storage configuration.

View File

@ -1,7 +1,7 @@
package validator
import (
"github.com/clems4ever/authelia/internal/configuration/schema"
"github.com/authelia/authelia/internal/configuration/schema"
)
const defaultTOTPIssuer = "Authelia"

View File

@ -1,6 +1,6 @@
package handlers
import "github.com/clems4ever/authelia/internal/middlewares"
import "github.com/authelia/authelia/internal/middlewares"
type ConfigurationBody struct {
GoogleAnalyticsTrackingID string `json:"ga_tracking_id,omitempty"`

View File

@ -1,7 +1,7 @@
package handlers
import (
"github.com/clems4ever/authelia/internal/mocks"
"github.com/authelia/authelia/internal/mocks"
"github.com/stretchr/testify/suite"
)

View File

@ -1,8 +1,8 @@
package handlers
import (
"github.com/clems4ever/authelia/internal/authentication"
"github.com/clems4ever/authelia/internal/middlewares"
"github.com/authelia/authelia/internal/authentication"
"github.com/authelia/authelia/internal/middlewares"
)
type ExtendedConfigurationBody struct {

View File

@ -3,9 +3,9 @@ package handlers
import (
"testing"
"github.com/clems4ever/authelia/internal/mocks"
"github.com/authelia/authelia/internal/mocks"
"github.com/clems4ever/authelia/internal/configuration/schema"
"github.com/authelia/authelia/internal/configuration/schema"
"github.com/stretchr/testify/suite"
)

View File

@ -5,11 +5,11 @@ import (
"net/url"
"time"
"github.com/clems4ever/authelia/internal/authentication"
"github.com/clems4ever/authelia/internal/authorization"
"github.com/clems4ever/authelia/internal/middlewares"
"github.com/clems4ever/authelia/internal/regulation"
"github.com/clems4ever/authelia/internal/session"
"github.com/authelia/authelia/internal/authentication"
"github.com/authelia/authelia/internal/authorization"
"github.com/authelia/authelia/internal/middlewares"
"github.com/authelia/authelia/internal/regulation"
"github.com/authelia/authelia/internal/session"
)
// FirstFactorPost is the handler performing the first factory.

View File

@ -4,10 +4,10 @@ import (
"fmt"
"testing"
"github.com/clems4ever/authelia/internal/mocks"
"github.com/clems4ever/authelia/internal/models"
"github.com/authelia/authelia/internal/mocks"
"github.com/authelia/authelia/internal/models"
"github.com/clems4ever/authelia/internal/authentication"
"github.com/authelia/authelia/internal/authentication"
"github.com/golang/mock/gomock"
"github.com/sirupsen/logrus"
"github.com/stretchr/testify/assert"

View File

@ -3,7 +3,7 @@ package handlers
import (
"fmt"
"github.com/clems4ever/authelia/internal/middlewares"
"github.com/authelia/authelia/internal/middlewares"
)
// LogoutPost is the handler logging out the user attached to the given cookie.

View File

@ -4,7 +4,7 @@ import (
"strings"
"testing"
"github.com/clems4ever/authelia/internal/mocks"
"github.com/authelia/authelia/internal/mocks"
"github.com/stretchr/testify/assert"

View File

@ -3,8 +3,8 @@ package handlers
import (
"fmt"
"github.com/clems4ever/authelia/internal/middlewares"
"github.com/clems4ever/authelia/internal/session"
"github.com/authelia/authelia/internal/middlewares"
"github.com/authelia/authelia/internal/session"
"github.com/pquerna/otp/totp"
)

View File

@ -3,7 +3,7 @@ package handlers
import (
"fmt"
"github.com/clems4ever/authelia/internal/middlewares"
"github.com/authelia/authelia/internal/middlewares"
"github.com/tstranex/u2f"
)

View File

@ -4,7 +4,7 @@ import (
"crypto/elliptic"
"fmt"
"github.com/clems4ever/authelia/internal/middlewares"
"github.com/authelia/authelia/internal/middlewares"
"github.com/tstranex/u2f"
)

View File

@ -4,8 +4,8 @@ import (
"encoding/json"
"fmt"
"github.com/clems4ever/authelia/internal/middlewares"
"github.com/clems4ever/authelia/internal/session"
"github.com/authelia/authelia/internal/middlewares"
"github.com/authelia/authelia/internal/session"
)
func identityRetrieverFromStorage(ctx *middlewares.AutheliaCtx) (*session.Identity, error) {

View File

@ -3,7 +3,7 @@ package handlers
import (
"fmt"
"github.com/clems4ever/authelia/internal/middlewares"
"github.com/authelia/authelia/internal/middlewares"
)
// ResetPasswordPost handler for resetting passwords

View File

@ -4,9 +4,9 @@ import (
"fmt"
"net/url"
"github.com/clems4ever/authelia/internal/authentication"
"github.com/clems4ever/authelia/internal/duo"
"github.com/clems4ever/authelia/internal/middlewares"
"github.com/authelia/authelia/internal/authentication"
"github.com/authelia/authelia/internal/duo"
"github.com/authelia/authelia/internal/middlewares"
)
// SecondFactorDuoPost handler for sending a push notification via duo api.

View File

@ -5,8 +5,8 @@ import (
"net/url"
"testing"
"github.com/clems4ever/authelia/internal/duo"
"github.com/clems4ever/authelia/internal/mocks"
"github.com/authelia/authelia/internal/duo"
"github.com/authelia/authelia/internal/mocks"
"github.com/golang/mock/gomock"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"

View File

@ -4,8 +4,8 @@ import (
"fmt"
"net/url"
"github.com/clems4ever/authelia/internal/authentication"
"github.com/clems4ever/authelia/internal/middlewares"
"github.com/authelia/authelia/internal/authentication"
"github.com/authelia/authelia/internal/middlewares"
"github.com/pquerna/otp/totp"
)

View File

@ -4,9 +4,9 @@ import (
"crypto/elliptic"
"fmt"
"github.com/clems4ever/authelia/internal/middlewares"
"github.com/clems4ever/authelia/internal/session"
"github.com/clems4ever/authelia/internal/storage"
"github.com/authelia/authelia/internal/middlewares"
"github.com/authelia/authelia/internal/session"
"github.com/authelia/authelia/internal/storage"
"github.com/tstranex/u2f"
)

View File

@ -5,8 +5,8 @@ import (
"fmt"
"net/url"
"github.com/clems4ever/authelia/internal/authentication"
"github.com/clems4ever/authelia/internal/middlewares"
"github.com/authelia/authelia/internal/authentication"
"github.com/authelia/authelia/internal/middlewares"
"github.com/tstranex/u2f"
)

View File

@ -1,7 +1,7 @@
package handlers
import (
"github.com/clems4ever/authelia/internal/middlewares"
"github.com/authelia/authelia/internal/middlewares"
)
// StateGet is the handler serving the user state.

View File

@ -4,9 +4,9 @@ import (
"encoding/json"
"testing"
"github.com/clems4ever/authelia/internal/mocks"
"github.com/authelia/authelia/internal/mocks"
"github.com/clems4ever/authelia/internal/authentication"
"github.com/authelia/authelia/internal/authentication"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"
)

View File

@ -5,10 +5,10 @@ import (
"strings"
"sync"
"github.com/clems4ever/authelia/internal/authentication"
"github.com/clems4ever/authelia/internal/middlewares"
"github.com/clems4ever/authelia/internal/storage"
"github.com/clems4ever/authelia/internal/utils"
"github.com/authelia/authelia/internal/authentication"
"github.com/authelia/authelia/internal/middlewares"
"github.com/authelia/authelia/internal/storage"
"github.com/authelia/authelia/internal/utils"
"github.com/sirupsen/logrus"
)

View File

@ -4,8 +4,8 @@ import (
"fmt"
"testing"
"github.com/clems4ever/authelia/internal/mocks"
"github.com/clems4ever/authelia/internal/storage"
"github.com/authelia/authelia/internal/mocks"
"github.com/authelia/authelia/internal/storage"
"github.com/golang/mock/gomock"
"github.com/sirupsen/logrus"

View File

@ -8,9 +8,9 @@ import (
"strings"
"time"
"github.com/clems4ever/authelia/internal/authentication"
"github.com/clems4ever/authelia/internal/authorization"
"github.com/clems4ever/authelia/internal/middlewares"
"github.com/authelia/authelia/internal/authentication"
"github.com/authelia/authelia/internal/authorization"
"github.com/authelia/authelia/internal/middlewares"
"github.com/valyala/fasthttp"
)

View File

@ -6,10 +6,10 @@ import (
"net/url"
"testing"
"github.com/clems4ever/authelia/internal/authentication"
"github.com/clems4ever/authelia/internal/authorization"
"github.com/clems4ever/authelia/internal/configuration/schema"
"github.com/clems4ever/authelia/internal/mocks"
"github.com/authelia/authelia/internal/authentication"
"github.com/authelia/authelia/internal/authorization"
"github.com/authelia/authelia/internal/configuration/schema"
"github.com/authelia/authelia/internal/mocks"
"github.com/golang/mock/gomock"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"

View File

@ -1,7 +1,7 @@
package handlers
import (
"github.com/clems4ever/authelia/internal/authentication"
"github.com/authelia/authelia/internal/authentication"
"github.com/tstranex/u2f"
)

View File

@ -7,8 +7,8 @@ import (
"strings"
"github.com/asaskevich/govalidator"
"github.com/clems4ever/authelia/internal/configuration/schema"
"github.com/clems4ever/authelia/internal/session"
"github.com/authelia/authelia/internal/configuration/schema"
"github.com/authelia/authelia/internal/session"
"github.com/sirupsen/logrus"
"github.com/valyala/fasthttp"
)

View File

@ -3,11 +3,11 @@ package middlewares_test
import (
"testing"
"github.com/clems4ever/authelia/internal/session"
"github.com/authelia/authelia/internal/session"
"github.com/clems4ever/authelia/internal/configuration/schema"
"github.com/clems4ever/authelia/internal/middlewares"
"github.com/clems4ever/authelia/internal/mocks"
"github.com/authelia/authelia/internal/configuration/schema"
"github.com/authelia/authelia/internal/middlewares"
"github.com/authelia/authelia/internal/mocks"
"github.com/golang/mock/gomock"
"github.com/stretchr/testify/assert"
"github.com/valyala/fasthttp"

View File

@ -6,7 +6,7 @@ import (
"fmt"
"time"
"github.com/clems4ever/authelia/internal/templates"
"github.com/authelia/authelia/internal/templates"
jwt "github.com/dgrijalva/jwt-go"
)

View File

@ -5,9 +5,9 @@ import (
"testing"
"time"
"github.com/clems4ever/authelia/internal/middlewares"
"github.com/clems4ever/authelia/internal/mocks"
"github.com/clems4ever/authelia/internal/session"
"github.com/authelia/authelia/internal/middlewares"
"github.com/authelia/authelia/internal/mocks"
"github.com/authelia/authelia/internal/session"
jwt "github.com/dgrijalva/jwt-go"
"github.com/golang/mock/gomock"
"github.com/stretchr/testify/assert"

View File

@ -1,7 +1,7 @@
package middlewares
import (
"github.com/clems4ever/authelia/internal/authentication"
"github.com/authelia/authelia/internal/authentication"
)
// RequireFirstFactor check if user has enough permissions to execute the next handler.

View File

@ -1,13 +1,13 @@
package middlewares
import (
"github.com/clems4ever/authelia/internal/authentication"
"github.com/clems4ever/authelia/internal/authorization"
"github.com/clems4ever/authelia/internal/configuration/schema"
"github.com/clems4ever/authelia/internal/notification"
"github.com/clems4ever/authelia/internal/regulation"
"github.com/clems4ever/authelia/internal/session"
"github.com/clems4ever/authelia/internal/storage"
"github.com/authelia/authelia/internal/authentication"
"github.com/authelia/authelia/internal/authorization"
"github.com/authelia/authelia/internal/configuration/schema"
"github.com/authelia/authelia/internal/notification"
"github.com/authelia/authelia/internal/regulation"
"github.com/authelia/authelia/internal/session"
"github.com/authelia/authelia/internal/storage"
jwt "github.com/dgrijalva/jwt-go"
"github.com/sirupsen/logrus"
"github.com/valyala/fasthttp"

View File

@ -6,15 +6,15 @@ import (
"testing"
"time"
"github.com/clems4ever/authelia/internal/regulation"
"github.com/clems4ever/authelia/internal/storage"
"github.com/authelia/authelia/internal/regulation"
"github.com/authelia/authelia/internal/storage"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/clems4ever/authelia/internal/authorization"
"github.com/clems4ever/authelia/internal/configuration/schema"
"github.com/clems4ever/authelia/internal/middlewares"
"github.com/clems4ever/authelia/internal/session"
"github.com/authelia/authelia/internal/authorization"
"github.com/authelia/authelia/internal/configuration/schema"
"github.com/authelia/authelia/internal/middlewares"
"github.com/authelia/authelia/internal/session"
"github.com/golang/mock/gomock"
"github.com/sirupsen/logrus"
"github.com/sirupsen/logrus/hooks/test"

View File

@ -1,5 +1,5 @@
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/clems4ever/authelia/internal/duo (interfaces: API)
// Source: github.com/authelia/authelia/internal/duo (interfaces: API)
// Package mocks is a generated GoMock package.
package mocks
@ -8,7 +8,7 @@ import (
url "net/url"
reflect "reflect"
duo "github.com/clems4ever/authelia/internal/duo"
duo "github.com/authelia/authelia/internal/duo"
gomock "github.com/golang/mock/gomock"
)

View File

@ -1,5 +1,5 @@
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/clems4ever/authelia/internal/notification (interfaces: Notifier)
// Source: github.com/authelia/authelia/internal/notification (interfaces: Notifier)
// Package mock_notification is a generated GoMock package.
package mocks

View File

@ -1,5 +1,5 @@
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/clems4ever/authelia/internal/authentication (interfaces: UserProvider)
// Source: github.com/authelia/authelia/internal/authentication (interfaces: UserProvider)
// Package mocks is a generated GoMock package.
package mocks
@ -7,7 +7,7 @@ package mocks
import (
reflect "reflect"
authentication "github.com/clems4ever/authelia/internal/authentication"
authentication "github.com/authelia/authelia/internal/authentication"
gomock "github.com/golang/mock/gomock"
)

View File

@ -5,7 +5,7 @@ import (
"io/ioutil"
"time"
"github.com/clems4ever/authelia/internal/configuration/schema"
"github.com/authelia/authelia/internal/configuration/schema"
)
// FileNotifier a notifier to send emails to SMTP servers.

View File

@ -4,7 +4,7 @@ import (
"fmt"
"net/smtp"
"github.com/clems4ever/authelia/internal/configuration/schema"
"github.com/authelia/authelia/internal/configuration/schema"
)
// SMTPNotifier a notifier to send emails to SMTP servers.

View File

@ -4,10 +4,10 @@ import (
"fmt"
"time"
"github.com/clems4ever/authelia/internal/configuration/schema"
"github.com/clems4ever/authelia/internal/models"
"github.com/clems4ever/authelia/internal/storage"
"github.com/clems4ever/authelia/internal/utils"
"github.com/authelia/authelia/internal/configuration/schema"
"github.com/authelia/authelia/internal/models"
"github.com/authelia/authelia/internal/storage"
"github.com/authelia/authelia/internal/utils"
)
// NewRegulator create a regulator instance.

View File

@ -4,11 +4,11 @@ import (
"testing"
"time"
"github.com/clems4ever/authelia/internal/configuration/schema"
"github.com/clems4ever/authelia/internal/mocks"
"github.com/clems4ever/authelia/internal/models"
"github.com/clems4ever/authelia/internal/regulation"
"github.com/clems4ever/authelia/internal/storage"
"github.com/authelia/authelia/internal/configuration/schema"
"github.com/authelia/authelia/internal/mocks"
"github.com/authelia/authelia/internal/models"
"github.com/authelia/authelia/internal/regulation"
"github.com/authelia/authelia/internal/storage"
"github.com/golang/mock/gomock"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"

View File

@ -3,8 +3,8 @@ package regulation
import (
"time"
"github.com/clems4ever/authelia/internal/storage"
"github.com/clems4ever/authelia/internal/utils"
"github.com/authelia/authelia/internal/storage"
"github.com/authelia/authelia/internal/utils"
)
// Regulator an authentication regulator preventing attackers to brute force the service.

View File

@ -5,11 +5,11 @@ import (
"os"
"path"
"github.com/clems4ever/authelia/internal/configuration/schema"
"github.com/clems4ever/authelia/internal/duo"
"github.com/clems4ever/authelia/internal/handlers"
"github.com/clems4ever/authelia/internal/logging"
"github.com/clems4ever/authelia/internal/middlewares"
"github.com/authelia/authelia/internal/configuration/schema"
"github.com/authelia/authelia/internal/duo"
"github.com/authelia/authelia/internal/handlers"
"github.com/authelia/authelia/internal/logging"
"github.com/authelia/authelia/internal/middlewares"
duoapi "github.com/duosecurity/duo_api_golang"
"github.com/fasthttp/router"
"github.com/valyala/fasthttp"

View File

@ -4,7 +4,7 @@ import (
"encoding/json"
"time"
"github.com/clems4ever/authelia/internal/configuration/schema"
"github.com/authelia/authelia/internal/configuration/schema"
fasthttpsession "github.com/fasthttp/session"
"github.com/valyala/fasthttp"
)

View File

@ -5,7 +5,7 @@ import (
"github.com/valyala/fasthttp"
"github.com/clems4ever/authelia/internal/configuration/schema"
"github.com/authelia/authelia/internal/configuration/schema"
"github.com/fasthttp/session"
"github.com/fasthttp/session/memory"
"github.com/fasthttp/session/redis"

View File

@ -4,7 +4,7 @@ import (
"testing"
"time"
"github.com/clems4ever/authelia/internal/configuration/schema"
"github.com/authelia/authelia/internal/configuration/schema"
"github.com/fasthttp/session/memory"
"github.com/fasthttp/session/redis"
"github.com/stretchr/testify/assert"

View File

@ -3,13 +3,13 @@ package session
import (
"testing"
"github.com/clems4ever/authelia/internal/authentication"
"github.com/authelia/authelia/internal/authentication"
"github.com/stretchr/testify/assert"
"github.com/valyala/fasthttp"
"github.com/clems4ever/authelia/internal/configuration/schema"
"github.com/authelia/authelia/internal/configuration/schema"
)
func TestShouldInitializerSession(t *testing.T) {

View File

@ -1,7 +1,7 @@
package session
import (
"github.com/clems4ever/authelia/internal/authentication"
"github.com/authelia/authelia/internal/authentication"
"github.com/fasthttp/session"
"github.com/tstranex/u2f"
)

View File

@ -1,6 +1,6 @@
package session
import "github.com/clems4ever/authelia/internal/authentication"
import "github.com/authelia/authelia/internal/authentication"
// NewDefaultUserSession create a default user session.
func NewDefaultUserSession() UserSession {

View File

@ -4,8 +4,8 @@ import (
"database/sql"
"fmt"
"github.com/clems4ever/authelia/internal/configuration/schema"
"github.com/clems4ever/authelia/internal/logging"
"github.com/authelia/authelia/internal/configuration/schema"
"github.com/authelia/authelia/internal/logging"
_ "github.com/go-sql-driver/mysql" // Load the MySQL Driver used in the connection string.
)

View File

@ -5,8 +5,8 @@ import (
"fmt"
"strings"
"github.com/clems4ever/authelia/internal/configuration/schema"
"github.com/clems4ever/authelia/internal/logging"
"github.com/authelia/authelia/internal/configuration/schema"
"github.com/authelia/authelia/internal/logging"
_ "github.com/lib/pq" // Load the PostgreSQL Driver used in the connection string.
)

View File

@ -3,7 +3,7 @@ package storage
import (
"time"
"github.com/clems4ever/authelia/internal/models"
"github.com/authelia/authelia/internal/models"
)
// Provider is an interface providing storage capabilities for

View File

@ -5,7 +5,7 @@
package storage
import (
models "github.com/clems4ever/authelia/internal/models"
models "github.com/authelia/authelia/internal/models"
gomock "github.com/golang/mock/gomock"
reflect "reflect"
time "time"

View File

@ -6,7 +6,7 @@ import (
"fmt"
"time"
"github.com/clems4ever/authelia/internal/models"
"github.com/authelia/authelia/internal/models"
)
// SQLProvider is a storage provider persisting data in a SQL database.

View File

@ -4,7 +4,7 @@ import (
"database/sql"
"fmt"
"github.com/clems4ever/authelia/internal/logging"
"github.com/authelia/authelia/internal/logging"
_ "github.com/mattn/go-sqlite3" // Load the SQLite Driver used in the connection string.
)

View File

@ -5,7 +5,7 @@ import (
"os/exec"
"strings"
"github.com/clems4ever/authelia/internal/utils"
"github.com/authelia/authelia/internal/utils"
log "github.com/sirupsen/logrus"
)

View File

@ -5,7 +5,7 @@ import (
"strings"
"time"
"github.com/clems4ever/authelia/internal/utils"
"github.com/authelia/authelia/internal/utils"
log "github.com/sirupsen/logrus"
)

View File

@ -6,7 +6,7 @@ import (
"strings"
"time"
"github.com/clems4ever/authelia/internal/utils"
"github.com/authelia/authelia/internal/utils"
)
var kindImageName = "authelia-kind-proxy"

View File

@ -4,7 +4,7 @@ import (
"fmt"
"time"
"github.com/clems4ever/authelia/internal/utils"
"github.com/authelia/authelia/internal/utils"
log "github.com/sirupsen/logrus"
)

View File

@ -9,7 +9,7 @@ import (
"testing"
"time"
"github.com/clems4ever/authelia/internal/storage"
"github.com/authelia/authelia/internal/storage"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
)

Some files were not shown because too many files have changed in this diff Show More