Update ESI SSO client ID and expand permission scopes for enhanced functionality

This commit is contained in:
2025-09-09 10:57:37 +02:00
parent 81713d09fd
commit 3ca3bf8810
2 changed files with 41 additions and 5 deletions

View File

@@ -514,7 +514,6 @@ func (s *ESISSO) postWaypointWithToken(tok string, destinationID int64, clearOth
q.Set("datasource", "tranquility")
endpoint := esiBase + "/v2/ui/autopilot/waypoint?" + q.Encode()
fmt.Printf("ESI: POST waypoint dest=%d clear=%v addToBeginning=%v\n", destinationID, clearOthers, addToBeginning)
req, err := http.NewRequest(http.MethodPost, endpoint, nil)
if err != nil {
return err
@@ -529,11 +528,9 @@ func (s *ESISSO) postWaypointWithToken(tok string, destinationID int64, clearOth
}
defer resp.Body.Close()
if resp.StatusCode == http.StatusNoContent || resp.StatusCode == http.StatusOK {
fmt.Println("ESI: waypoint set OK", resp.Status)
return nil
}
b, _ := io.ReadAll(resp.Body)
fmt.Printf("ESI: waypoint failed %s body=%s\n", resp.Status, string(b))
return fmt.Errorf("waypoint failed: %s: %s", resp.Status, string(b))
}