Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: define API client wrapping grants flow #2

Closed
wants to merge 14 commits into from

Commits on Aug 19, 2023

  1. feat: initial commit

    * devcontainer configuration
    * stub out CLI app with sub-commands
    * pytest for testing, run in CI
    thekaveman committed Aug 19, 2023
    Configuration menu
    Copy the full SHA
    64f0a8a View commit details
    Browse the repository at this point in the history

Commits on Aug 24, 2023

  1. feat(config): get prior config path or default

    last used path is stored in a separate file
    thekaveman committed Aug 24, 2023
    Configuration menu
    Copy the full SHA
    e9341ae View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    07fb19d View commit details
    Browse the repository at this point in the history
  3. feat(config): command gets/sets file

    replaces info command as new default
    thekaveman committed Aug 24, 2023
    Configuration menu
    Copy the full SHA
    318a1e3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    eec5ac1 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    cf86f5a View commit details
    Browse the repository at this point in the history
  6. feat(config): result indicates if env, participant initialized

    participant should have all auth keys for the env
    thekaveman committed Aug 24, 2023
    Configuration menu
    Copy the full SHA
    f4d4586 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    91f15b7 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    1f6618c View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    6847afa View commit details
    Browse the repository at this point in the history
  10. chore(config): remove unneeded reset arg

    users can delete their config or target a new file
    thekaveman committed Aug 24, 2023
    Configuration menu
    Copy the full SHA
    668a641 View commit details
    Browse the repository at this point in the history
  11. feat(api): client for client_credentials grant flow

    optionally reuse an existing token
    thekaveman committed Aug 24, 2023
    Configuration menu
    Copy the full SHA
    532ea66 View commit details
    Browse the repository at this point in the history
  12. refactor(api): use requests directly to send json body

    authlib sends a form-encoded body in POST with no way to override
    
    Littlepay requires a JSON-encoded body, implement token refresh by hand
    thekaveman committed Aug 24, 2023
    Configuration menu
    Copy the full SHA
    cb3ceef View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    7e2ab8f View commit details
    Browse the repository at this point in the history