From 484154a48dc728fecbe8493ce7be668256021a51 Mon Sep 17 00:00:00 2001 From: mr Date: Tue, 10 Feb 2026 10:13:33 +0100 Subject: [PATCH] auth --- infrastructure/auth_connector/hydra_connector.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/infrastructure/auth_connector/hydra_connector.go b/infrastructure/auth_connector/hydra_connector.go index 772922e..80792f4 100644 --- a/infrastructure/auth_connector/hydra_connector.go +++ b/infrastructure/auth_connector/hydra_connector.go @@ -196,7 +196,7 @@ func (a HydraConnector) Login(clientID string, username string, cookies ...*http json.Unmarshal(b, &m) pp := oclib.NewRequest(oclib.LibDataEnum(oclib.PEER), "", "", []string{}, nil).Search(nil, strconv.Itoa(peer.SELF.EnumIndex()), false) if len(pp.Data) == 0 || pp.Code >= 300 || pp.Err != "" { - fmt.Println(pp.Data, pp.Code, pp.Err) + fmt.Println(pp.Data, pp.Code, pp.Err, strconv.Itoa(peer.SELF.EnumIndex())) return nil, errors.New("peer not found") } now := time.Now().UTC() @@ -254,6 +254,7 @@ func (a HydraConnector) Introspect(token string, cookie ...*http.Cookie) (bool, } var introspect Token err = json.Unmarshal(b, &introspect) + fmt.Println(introspect.Active, token) if err != nil { return false, err }