Skip to content

Latest commit

 

History

History
71 lines (68 loc) · 3.12 KB

TODO.md

File metadata and controls

71 lines (68 loc) · 3.12 KB
  1. Get the web server execution to use the venv. Custom apache configuration, or bouncing it through a shell script ?

  2. Figure out a way to have a single request.Session so that we can set a User-Agent of the form:

     EDCD-[A-Za-z]+-[.0-9]+
    

    without having to remember it on every request.

  3. Implement use of Access Token against all available endpoints.

    1. Auth /decode
    2. Auth /me
    3. CAPI profile - DONE
    4. CAPI market - DONE
    5. CAPI shipyard - DONE
    6. CAPI journal - DONE
      1. CAPI journal current - DONE
      2. CAPI journal historic - DONE
    7. CAPI Community Goals - /communitygoals
      1. Need to query this when a CG is active to see the output format and contents.

            activeCommunityGoals: (array of objects)
            [
                            { 
                            id: string
                            title: string
                            expiry: string
                            market_name: string
                            starsystem_name: string
                            activityType: string
                            target_commodity_list: string
                            target_qty: string
                            qty: string
                            objective: string
                            news: string
                            bulletin: string
                            commander_progress: { 
                                            currentQty: int
                                            numContributors: int
                                            commanderContributionQty: int or null
                                            commanderPercentile: int
                                            commanderSubscribed: bool
                                            unixTimeStamp: int
                                            complete: bool
                                            }
                            }
            ] 
        

}``` 1. See also: https://gist.github.com/corenting/b6ac5cf8f446f54856e08b6e287fe835

  1. CL arg to try an expired Access Token anyway, in order to check the server response is as expected.
  2. Find out what the expiry time is on a Refresh Token, and what exactly happens if you try to use it.
  3. Implement automatically firing the whole Authorization mechanism if both Access Token and Refresh Token are expired. This may well entail first merging the oauth2-pkce.py script into the org.miggy.edcapi namespace.
  4. Implement non-PKCE authorization flow and document it.
  5. Make sure the user script(s) are as quiet as possible during normal operation.
  6. Update loop-test.sh to use fd-ed-capi.py
    1. Need to ensure return codes match up
  7. In-code python documenting comments.
  8. Consider a CAPI 'status board'. Perform each of the following on a schedule and signal when we did and what the state was:
    1. Was auth.frontierstore.net reachable, and did it respond properly?
    2. Can't do auth from scratch, as it requires user interaction.
    3. Use of Refresh Token for new Access Token
    4. Each CAPI endpoint