Module: EnforcesStepUpAuthenticationForNamespace

Extended by:
ActiveSupport::Concern
Included in:
Groups::ApplicationController, Projects::ApplicationController
Defined in:
app/controllers/concerns/enforces_step_up_authentication_for_namespace.rb

Overview

Enforces step-up authentication requirements for namespace access

This controller concern ensures users complete step-up authentication before accessing group/namespace resources that require additional authentication. Include this module in group and project controllers to enforce the authentication check.

Examples:

class Groups::ApplicationController < ApplicationController
  include EnforcesStepUpAuthenticationForNamespace

  before_action :enforce_step_up_auth_for_group

  private

  def enforce_step_up_auth_for_group
    enforce_step_up_auth_for(@group) if @group
  end
end