1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-24 15:59:41 +02:00

feat(performance): performance optimizations EE-6042 (#10520)

This commit is contained in:
andres-portainer 2023-10-24 13:55:11 -03:00 committed by GitHub
parent e4e66dac9c
commit ae1726cece
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
71 changed files with 311 additions and 382 deletions

View file

@ -2,7 +2,6 @@ package oauth
import (
"context"
"encoding/json"
"io"
"mime"
"net/http"
@ -14,6 +13,7 @@ import (
"github.com/golang-jwt/jwt/v4"
"github.com/pkg/errors"
"github.com/rs/zerolog/log"
"github.com/segmentio/encoding/json"
"golang.org/x/oauth2"
)

View file

@ -1,19 +1,18 @@
package oauthtest
import (
"encoding/json"
"fmt"
"net/http"
"net/http/httptest"
"strings"
"github.com/gorilla/mux"
portainer "github.com/portainer/portainer/api"
"github.com/gorilla/mux"
"github.com/segmentio/encoding/json"
)
const (
AccessToken = "test-token"
)
const AccessToken = "test-token"
// OAuthRoutes is an OAuth 2.0 compliant handler
func OAuthRoutes(code string, config *portainer.OAuthSettings) http.Handler {