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

Add the JWT auths middleware and sample API #1627

Merged
merged 8 commits into from
Jul 15, 2024

Commits on Jul 15, 2024

  1. Add the JWT auths middleware and sample API

    * Add JWT auth middleware and related functions
    * Add a sample API
    * Update `setup.env`
    * Update `.gitignore`
    * Add a `jwt_auth.yaml` template
    yunkon-kim committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    4e7d93d View commit details
    Browse the repository at this point in the history
  2. Replace goutil.Contains with HasRole

    * Remove `github.com/gookit/goutil` pkg
    yunkon-kim committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    45d3ca1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    15e135e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    91d67ad View commit details
    Browse the repository at this point in the history
  5. Fix go version to 1.21.6

    yunkon-kim committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    7e5f447 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d303974 View commit details
    Browse the repository at this point in the history
  7. Restore .gitignore and go version specified in go.work

    * Minor replace `ENABLE_AUTH` with `AUTH_ENABLED` in `docker-compose.yaml`
    yunkon-kim committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    fb2c779 View commit details
    Browse the repository at this point in the history
  8. Update Dockerfile due to sqlite3

    * Encounter a build error due to Alpine Linux using `glibc`-specific functions 'pread64', 'pwrite64', and type 'off64_t'
    * Replace with golang 1.21.6-bookworm (Debian 12.6)
    * Install necessary packages for SQLite support and build requirements
    yunkon-kim committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    67bc0d3 View commit details
    Browse the repository at this point in the history