Skip to content

Latest commit

 

History

History
201 lines (125 loc) · 6.07 KB

File metadata and controls

201 lines (125 loc) · 6.07 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

Added

  • Rails 8 testing support (#80)

Fixed

  • Reinstated static code analysis checks in CI (#73)

Removed

Added

  • Add optional on_login_success callback (#90)

Fixed

  • Return boolean from AccountTypes#student_account? (#91)

Removed

Fixed

  • Refresh access tokens before expiry (#89)

Added

  • Allow OmniAuth setup phase to be configured (#76)
  • Add RpiAuth::Models::Roles#parsed_roles (extracted from experience-cs) (#87)
  • Add RpiAuth::Models::AccountTypes#student_account? (extracted from experience-cs) (#87)

Fixed

  • Fix requiring of oauth2 to avoid NoMethodError: undefined method 'config' for module OAuth2 (#86)

Added

  • Add access token-related functionality including auto-refresh (#83)

Fixed

  • Fix use of User#expires_at in SpecHelpers#stub_auth_for (#82)

Added

  • Support for Ruby 3.3 (#78)

Fixed

  • Load error when using Rake (#77)
  • Don't use cached user if session has been reset (#79)

Removed

  • Support for Ruby 2.7 (#78)

Added

  • Test controller/view to allow apps to log in without having to interact with the RPF Global Nav component. (#70)

Added

Removed

Added

  • Add country attribute to Authenticable (#60)

Added

  • Allow for customisation of returnTo param on log out (#56)
  • Allow success_redirect to be configured as a block that is executed in the context of the AuthController (#57)

Changed

  • Altered default value of the issuer to track the authorization_endpoint rather than the token_endpoint (#54)

Fixed

  • Ensure redirect_uri is set in the OpenID Connect configuration (#53)

Changed

Added

  • Added dummy route for /auth/rpi to add path helper rpi_auth_login (#44)
  • Request and routing specs inside the "dummy" testing app (#44)

Changed

  • Refactored RpiAuth::AuthenticationHelper into a concern RpiAuth::Controllers::CurrentUser (#44)
  • Refactored RpiAuth::Models::Authenticatable to fix "include"/"extend" issues (#44)
  • Refactored RpiAuth::AuthController#callback to reduce its complexity (#44)
  • Refactored how auth bypass is enabled (#44)
  • OmniAuth origin parameter name set as returnTo (#47)

Updated

  • Bump rack from 2.2.4 to 2.2.7 (#49)
  • Bump globalid from 1.0.0 to 1.1.0 (#48)

Added

  • The brand parameter can now optionally be set (for use by the Profile application)

Added

  • Make RpiAuth::Models::Authenticatable extendable to support additional methods and attributes in the user_model.

Added

  • Removed default setting of success_redirect = '/' in RpiAuth config

Added

  • omniauth-rpi gem updated to fix nil user ID in returned user object
  • Defaults to setting the user_id param on the model rather than id (so that the application can use an internal ID structure for the user model).
  • Updates Omniauth-rpi to latest version (fixing a bug where the returbed uid was empty)

Added

  • Rails 7 / Ruby 3.1 support (these are the only officially supported versions)
  • omniauth-rpi strategy to auth via Hydra1
  • include omniauth rails csrf protection
  • configuration to allow setting endpoints and credentials for auth
  • rails model concern to allow host app to add auth behaviour to a model
  • callback, logout and failure routes to handle auth