Repository navigation
v3.0.0
Upgrade notes
This is a major release. Hosts on the default :admin namespace and Ruby 3.3 or later need no changes.
- Ruby 3.3 or later is required. Support for Ruby 3.2 is dropped.
Configuration::DEFAULT_LOGIN_PATHandDEFAULT_LOGOUT_PATHare removed. ReadActiveAdmin::Oidc.config.login_pathandlogout_pathinstead.- Hosts whose ActiveAdmin namespace is not
:admin: the login, logout and OmniAuth paths now follow the namespace. Withdefault_namespace = :backoffice, the callback moves from/admin/auth/oidc/callbackto/backoffice/auth/oidc/callback. Register the new callback URL with your identity provider, and updatec.redirect_uriif you set it. To keep the old URLs, setc.login_path,c.logout_pathandc.omniauth_path_prefixto the/adminvalues.
Fixes
- Sign-in works when
config/initializers/devise.rbsetsomniauth_path_prefix. Before, the callback returned a 404. - Namespaces such as
:"admin-panel"and:AdminPanelroute to/admin_panel, as ActiveAdmin does. require "activeadmin-oidc"no longer raisesNoMethodErroron Rails 8.1.- A new
omniauth_route_prefixoption supports Devise mounted inside an engine.
What's Changed
- Derive every mounted path from ActiveAdmin's namespace by @senid231 in #17
- Exclude the root-mounted suite from a bare
rspecrun by @Fivell in #20 - Follow a host-set Devise.omniauth_path_prefix in the strategy too by @Fivell in #21
- Drop EOL Ruby and Rails from CI by @Fivell in #22
- Fix NoMethodError on Rails 8.1 and move the ActiveAdmin 4.0 leg to it by @Fivell in #23
- Replace omniauth_path_prefix_configured? with an adopt method by @senid231 in #24
- Release 3.0.0 by @senid231 in #25
Full Changelog: v2.2.1...v3.0.0