feat: move module to forge.cadoles.com/cadoles.goweb-oidc
Cadoles/goweb-oidc/pipeline/head This commit looks good Details

This commit is contained in:
wpetit 2023-12-06 16:02:40 +01:00
parent d4637b26bc
commit ebfd504cbd
10 changed files with 20 additions and 20 deletions

View File

@ -6,6 +6,6 @@ Middleware [`goweb`](https://forge.cadoles.com/wpetit/goweb) pour authentificati
Une application web de test est disponible dans le répertoire [`cmd/server`](./cmd/server). Voici les principaux exemples d'utilisation de la librairie: Une application web de test est disponible dans le répertoire [`cmd/server`](./cmd/server). Voici les principaux exemples d'utilisation de la librairie:
- [Initialisation du service `oidc`](https://forge.cadoles.com/wpetit/goweb-oidc/src/branch/master/cmd/server/container.go#L78-L87) - [Initialisation du service `oidc`](https://forge.cadoles.com/cadoles/goweb-oidc/src/branch/master/cmd/server/container.go#L78-L87)
- [Ajout du middleware d'authentification dans les routes HTTP](https://forge.cadoles.com/wpetit/goweb-oidc/src/branch/master/internal/route/mount.go#L12-L19) - [Ajout du middleware d'authentification dans les routes HTTP](https://forge.cadoles.com/cadoles/goweb-oidc/src/branch/master/internal/route/mount.go#L12-L19)
- [Récupération de l'`IDToken` dans un handler HTTP](https://forge.cadoles.com/wpetit/goweb-oidc/src/branch/master/internal/route/login.go#L18-L21) - [Récupération de l'`IDToken` dans un handler HTTP](https://forge.cadoles.com/cadoles/goweb-oidc/src/branch/master/internal/route/login.go#L18-L21)

View File

@ -8,8 +8,8 @@ import (
"gitlab.com/wpetit/goweb/logger" "gitlab.com/wpetit/goweb/logger"
"gitlab.com/wpetit/goweb/template/html" "gitlab.com/wpetit/goweb/template/html"
oidc "forge.cadoles.com/wpetit/goweb-oidc" oidc "forge.cadoles.com/cadoles/goweb-oidc"
"forge.cadoles.com/wpetit/goweb-oidc/internal/config" "forge.cadoles.com/cadoles/goweb-oidc/internal/config"
"github.com/gorilla/sessions" "github.com/gorilla/sessions"
"github.com/pkg/errors" "github.com/pkg/errors"
"gitlab.com/wpetit/goweb/service" "gitlab.com/wpetit/goweb/service"

View File

@ -8,8 +8,8 @@ import (
"net/http" "net/http"
"os" "os"
"forge.cadoles.com/wpetit/goweb-oidc/internal/config" "forge.cadoles.com/cadoles/goweb-oidc/internal/config"
"forge.cadoles.com/wpetit/goweb-oidc/internal/route" "forge.cadoles.com/cadoles/goweb-oidc/internal/route"
"github.com/go-chi/chi/v5" "github.com/go-chi/chi/v5"
"github.com/go-chi/chi/v5/middleware" "github.com/go-chi/chi/v5/middleware"
@ -19,7 +19,7 @@ import (
"gitlab.com/wpetit/goweb/logger" "gitlab.com/wpetit/goweb/logger"
) )
//nolint: gochecknoglobals // nolint: gochecknoglobals
var ( var (
configFile = "" configFile = ""
workdir = "" workdir = ""
@ -34,7 +34,7 @@ var (
BuildDate = "unknown" BuildDate = "unknown"
) )
//nolint: gochecknoinits // nolint: gochecknoinits
func init() { func init() {
flag.StringVar(&configFile, "config", configFile, "configuration file") flag.StringVar(&configFile, "config", configFile, "configuration file")
flag.StringVar(&workdir, "workdir", workdir, "working directory") flag.StringVar(&workdir, "workdir", workdir, "working directory")

2
go.mod
View File

@ -1,4 +1,4 @@
module forge.cadoles.com/wpetit/goweb-oidc module forge.cadoles.com/cadoles/goweb-oidc
go 1.14 go 1.14

View File

@ -3,7 +3,7 @@ package route
import ( import (
"net/http" "net/http"
"forge.cadoles.com/wpetit/goweb-oidc/internal/config" "forge.cadoles.com/cadoles/goweb-oidc/internal/config"
"github.com/pkg/errors" "github.com/pkg/errors"
"gitlab.com/wpetit/goweb/middleware/container" "gitlab.com/wpetit/goweb/middleware/container"
"gitlab.com/wpetit/goweb/service" "gitlab.com/wpetit/goweb/service"

View File

@ -3,8 +3,8 @@ package route
import ( import (
"net/http" "net/http"
oidc "forge.cadoles.com/wpetit/goweb-oidc" oidc "forge.cadoles.com/cadoles/goweb-oidc"
"forge.cadoles.com/wpetit/goweb-oidc/internal/config" "forge.cadoles.com/cadoles/goweb-oidc/internal/config"
"github.com/pkg/errors" "github.com/pkg/errors"
"gitlab.com/wpetit/goweb/middleware/container" "gitlab.com/wpetit/goweb/middleware/container"
"gitlab.com/wpetit/goweb/service/template" "gitlab.com/wpetit/goweb/service/template"

View File

@ -3,8 +3,8 @@ package route
import ( import (
"net/http" "net/http"
oidc "forge.cadoles.com/wpetit/goweb-oidc" oidc "forge.cadoles.com/cadoles/goweb-oidc"
"forge.cadoles.com/wpetit/goweb-oidc/internal/config" "forge.cadoles.com/cadoles/goweb-oidc/internal/config"
"github.com/pkg/errors" "github.com/pkg/errors"
"gitlab.com/wpetit/goweb/logger" "gitlab.com/wpetit/goweb/logger"
"gitlab.com/wpetit/goweb/middleware/container" "gitlab.com/wpetit/goweb/middleware/container"

View File

@ -3,8 +3,8 @@ package route
import ( import (
"net/http" "net/http"
oidc "forge.cadoles.com/wpetit/goweb-oidc" oidc "forge.cadoles.com/cadoles/goweb-oidc"
"forge.cadoles.com/wpetit/goweb-oidc/internal/config" "forge.cadoles.com/cadoles/goweb-oidc/internal/config"
"gitlab.com/wpetit/goweb/logger" "gitlab.com/wpetit/goweb/logger"
"gitlab.com/wpetit/goweb/middleware/container" "gitlab.com/wpetit/goweb/middleware/container"
) )

View File

@ -1,8 +1,8 @@
package route package route
import ( import (
oidc "forge.cadoles.com/wpetit/goweb-oidc" oidc "forge.cadoles.com/cadoles/goweb-oidc"
"forge.cadoles.com/wpetit/goweb-oidc/internal/config" "forge.cadoles.com/cadoles/goweb-oidc/internal/config"
chi "github.com/go-chi/chi/v5" chi "github.com/go-chi/chi/v5"
"gitlab.com/wpetit/goweb/static" "gitlab.com/wpetit/goweb/static"

View File

@ -4,7 +4,7 @@ import (
"encoding/json" "encoding/json"
"net/http" "net/http"
oidc "forge.cadoles.com/wpetit/goweb-oidc" oidc "forge.cadoles.com/cadoles/goweb-oidc"
"github.com/pkg/errors" "github.com/pkg/errors"
"gitlab.com/wpetit/goweb/middleware/container" "gitlab.com/wpetit/goweb/middleware/container"
"gitlab.com/wpetit/goweb/service/template" "gitlab.com/wpetit/goweb/service/template"