feat: move module to forge.cadoles.com/cadoles.goweb-oidc
Cadoles/goweb-oidc/pipeline/head This commit looks good
Details
Cadoles/goweb-oidc/pipeline/head This commit looks good
Details
This commit is contained in:
parent
d4637b26bc
commit
ebfd504cbd
|
@ -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:
|
||||
|
||||
- [Initialisation du service `oidc`](https://forge.cadoles.com/wpetit/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)
|
||||
- [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)
|
||||
- [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/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/cadoles/goweb-oidc/src/branch/master/internal/route/login.go#L18-L21)
|
|
@ -8,8 +8,8 @@ import (
|
|||
"gitlab.com/wpetit/goweb/logger"
|
||||
"gitlab.com/wpetit/goweb/template/html"
|
||||
|
||||
oidc "forge.cadoles.com/wpetit/goweb-oidc"
|
||||
"forge.cadoles.com/wpetit/goweb-oidc/internal/config"
|
||||
oidc "forge.cadoles.com/cadoles/goweb-oidc"
|
||||
"forge.cadoles.com/cadoles/goweb-oidc/internal/config"
|
||||
"github.com/gorilla/sessions"
|
||||
"github.com/pkg/errors"
|
||||
"gitlab.com/wpetit/goweb/service"
|
||||
|
|
|
@ -8,8 +8,8 @@ import (
|
|||
"net/http"
|
||||
"os"
|
||||
|
||||
"forge.cadoles.com/wpetit/goweb-oidc/internal/config"
|
||||
"forge.cadoles.com/wpetit/goweb-oidc/internal/route"
|
||||
"forge.cadoles.com/cadoles/goweb-oidc/internal/config"
|
||||
"forge.cadoles.com/cadoles/goweb-oidc/internal/route"
|
||||
|
||||
"github.com/go-chi/chi/v5"
|
||||
"github.com/go-chi/chi/v5/middleware"
|
||||
|
@ -19,7 +19,7 @@ import (
|
|||
"gitlab.com/wpetit/goweb/logger"
|
||||
)
|
||||
|
||||
//nolint: gochecknoglobals
|
||||
// nolint: gochecknoglobals
|
||||
var (
|
||||
configFile = ""
|
||||
workdir = ""
|
||||
|
@ -34,7 +34,7 @@ var (
|
|||
BuildDate = "unknown"
|
||||
)
|
||||
|
||||
//nolint: gochecknoinits
|
||||
// nolint: gochecknoinits
|
||||
func init() {
|
||||
flag.StringVar(&configFile, "config", configFile, "configuration file")
|
||||
flag.StringVar(&workdir, "workdir", workdir, "working directory")
|
||||
|
|
2
go.mod
2
go.mod
|
@ -1,4 +1,4 @@
|
|||
module forge.cadoles.com/wpetit/goweb-oidc
|
||||
module forge.cadoles.com/cadoles/goweb-oidc
|
||||
|
||||
go 1.14
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ package route
|
|||
import (
|
||||
"net/http"
|
||||
|
||||
"forge.cadoles.com/wpetit/goweb-oidc/internal/config"
|
||||
"forge.cadoles.com/cadoles/goweb-oidc/internal/config"
|
||||
"github.com/pkg/errors"
|
||||
"gitlab.com/wpetit/goweb/middleware/container"
|
||||
"gitlab.com/wpetit/goweb/service"
|
||||
|
|
|
@ -3,8 +3,8 @@ package route
|
|||
import (
|
||||
"net/http"
|
||||
|
||||
oidc "forge.cadoles.com/wpetit/goweb-oidc"
|
||||
"forge.cadoles.com/wpetit/goweb-oidc/internal/config"
|
||||
oidc "forge.cadoles.com/cadoles/goweb-oidc"
|
||||
"forge.cadoles.com/cadoles/goweb-oidc/internal/config"
|
||||
"github.com/pkg/errors"
|
||||
"gitlab.com/wpetit/goweb/middleware/container"
|
||||
"gitlab.com/wpetit/goweb/service/template"
|
||||
|
|
|
@ -3,8 +3,8 @@ package route
|
|||
import (
|
||||
"net/http"
|
||||
|
||||
oidc "forge.cadoles.com/wpetit/goweb-oidc"
|
||||
"forge.cadoles.com/wpetit/goweb-oidc/internal/config"
|
||||
oidc "forge.cadoles.com/cadoles/goweb-oidc"
|
||||
"forge.cadoles.com/cadoles/goweb-oidc/internal/config"
|
||||
"github.com/pkg/errors"
|
||||
"gitlab.com/wpetit/goweb/logger"
|
||||
"gitlab.com/wpetit/goweb/middleware/container"
|
||||
|
|
|
@ -3,8 +3,8 @@ package route
|
|||
import (
|
||||
"net/http"
|
||||
|
||||
oidc "forge.cadoles.com/wpetit/goweb-oidc"
|
||||
"forge.cadoles.com/wpetit/goweb-oidc/internal/config"
|
||||
oidc "forge.cadoles.com/cadoles/goweb-oidc"
|
||||
"forge.cadoles.com/cadoles/goweb-oidc/internal/config"
|
||||
"gitlab.com/wpetit/goweb/logger"
|
||||
"gitlab.com/wpetit/goweb/middleware/container"
|
||||
)
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
package route
|
||||
|
||||
import (
|
||||
oidc "forge.cadoles.com/wpetit/goweb-oidc"
|
||||
"forge.cadoles.com/wpetit/goweb-oidc/internal/config"
|
||||
oidc "forge.cadoles.com/cadoles/goweb-oidc"
|
||||
"forge.cadoles.com/cadoles/goweb-oidc/internal/config"
|
||||
|
||||
chi "github.com/go-chi/chi/v5"
|
||||
"gitlab.com/wpetit/goweb/static"
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"encoding/json"
|
||||
"net/http"
|
||||
|
||||
oidc "forge.cadoles.com/wpetit/goweb-oidc"
|
||||
oidc "forge.cadoles.com/cadoles/goweb-oidc"
|
||||
"github.com/pkg/errors"
|
||||
"gitlab.com/wpetit/goweb/middleware/container"
|
||||
"gitlab.com/wpetit/goweb/service/template"
|
||||
|
|
Loading…
Reference in New Issue