Resolved newline issues
This commit is contained in:
parent
02c8f85e4d
commit
7e89d8ca24
@ -12,9 +12,8 @@ import (
|
|||||||
|
|
||||||
"github.com/dexidp/dex/connector"
|
"github.com/dexidp/dex/connector"
|
||||||
"github.com/dexidp/dex/storage/kubernetes/k8sapi"
|
"github.com/dexidp/dex/storage/kubernetes/k8sapi"
|
||||||
"golang.org/x/oauth2"
|
|
||||||
|
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
|
"golang.org/x/oauth2"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestOpen(t *testing.T) {
|
func TestOpen(t *testing.T) {
|
||||||
@ -168,7 +167,6 @@ func TestCallbackIdentity(t *testing.T) {
|
|||||||
func newTestServer(responses map[string]interface{}) *httptest.Server {
|
func newTestServer(responses map[string]interface{}) *httptest.Server {
|
||||||
var s *httptest.Server
|
var s *httptest.Server
|
||||||
s = httptest.NewTLSServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
s = httptest.NewTLSServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
responses["/.well-known/oauth-authorization-server"] = map[string]interface{}{
|
responses["/.well-known/oauth-authorization-server"] = map[string]interface{}{
|
||||||
"issuer": s.URL,
|
"issuer": s.URL,
|
||||||
"authorization_endpoint": fmt.Sprintf("%s/oauth/authorize", s.URL),
|
"authorization_endpoint": fmt.Sprintf("%s/oauth/authorize", s.URL),
|
||||||
|
Reference in New Issue
Block a user