• Stan Hu's avatar
    Fix logging of user in /jwt/auth · f7786e56
    Stan Hu authored
    Previously the `user_id` and `username` would be logged as `null` in
    `production_json.log` for any user that accessed the container registry.
    
    Unlike other descendants of `ApplicationController` that use Devise,
    `JwtController` authenticates users via `@authentication_result`.  We
    now override `auth_user` to get this information in the logs.
    f7786e56
jwt_controller_spec.rb 7.65 KB