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.
- Support for Ruby 3.2 and 3.3
- Support for Rails 7.1
- Extracted
KeycloakOauth::DuplicationError
into a separate file to please the Zeitwerk loader. - Use
require_relative
for load gem-internal files.
- Extracted
KeycloakOauth::NotFoundError
andKeycloakOauth::AuthorizableError
into separate file. When using Zeitwerk code loader in your main application, it was sometimes unable to find these classes.
- To avoid confusion what kind of token will be requested from Keycloak, we renamed
KeycloakOauth::PostTokenService
toKeycloakOauth::PostAuthorizationCodeService
. - Rails'
default_url_options
are required to be configured.
- New service named
KeycloakOauth::PostRefreshTokenService
to request a new access token with a refresh token. - Expiration of both the refresh and access token will be written to the session. You can retrieve them by calling
session[:access_token_expires_at]
orsession[:refresh_token_expires_at]
in your controller.
- The default redirection url for a successful login has been changed from
/
to theroot_path
of your app.
- Support for Rails 6.1, 7.0 and Ruby 3.1
- Removed support for Ruby < 2.6
- Testing for Ruby 3.0
- Updated
rails
andactiverecord_session_store
for dummy app