lib/gds-sso/controller_methods.rb in gds-sso-13.6.0 vs lib/gds-sso/controller_methods.rb in gds-sso-14.0.0
- old
+ new
@@ -41,16 +41,9 @@
raise ArgumentError, "Must be either `any_of` or `all_of`"
end
end
end
- def require_signin_permission!
- ActiveSupport::Deprecation.warn("require_signin_permission! is deprecated and will be removed in a future version. The signon application checks for signin permission during oauth and it is no longer optional. Note that your application will still need to call authorise_user! if it doesn't already.", caller)
- authorise_user!('signin')
- rescue PermissionDeniedException
- render "authorisations/cant_signin", layout: "unauthorised", status: :forbidden
- end
-
def authenticate_user!
warden.authenticate!
end
def user_remotely_signed_out?