lib/gds-sso/controller_methods.rb in gds-sso-0.7.1 vs lib/gds-sso/controller_methods.rb in gds-sso-0.7.2
- old
+ new
@@ -11,10 +11,10 @@
end
def require_signin_permission!
authorise_user!(GDS::SSO::Config.default_scope, 'signin')
rescue PermissionDeniedException
- redirect_to cant_signin_url
+ render "authorisations/cant_signin", layout: "unauthorised", status: :forbidden
end
def authenticate_user!
warden.authenticate!
end