Better error messages in the most common cases of users attempting to access things they shouldn't. Better emails too.
admin area edit template
delete folder
Fix for shibboleth errors

Fixes for the following errors:

——

A NoMethodError occurred in omniauth_callbacks#shibboleth:

undefined method `confirmed_at' for nil:NilClass
app/controllers/users/omniauth_callback_controller.rb:16:in
`shibboleth'

——

An ActionView::MissingTemplate occurred in
omniauth_callbacks#shibboleth:

Missing template users/omniauth_callbacks/shibboleth,
devise/omniauth_callbacks/shibboleth, devise/shibboleth,
application/shibboleth with {:locale=>[:en], :formats=>[:html],
:handlers=>[:erb, :builder, :arb]}

——

A NoMethodError occurred in omniauth_shibboleth_request#redirect:

undefined method `wayfless_entity' for nil:NilClass
app/controllers/users/omniauth_shibboleth_request_controller.rb:6:in
`redirect'

——

Missing template error corrected by adding catch-all redirect (to root
path) at the end of the method. Undefined method for nil:NilClass
errors corrected with checks that relevant entities are not nil.
Merge pull request #58 from DigitalCurationCentre/Shibboleth-bugs

Fix for shibboleth errors
Fix for multiple redirect error in last commit
Merge pull request #59 from DigitalCurationCentre/Shibboleth-bugs

Fix for multiple redirect error in last commit
Checking shibboleth_id isn't an empty string

Deleting shibboleth_id via activeadmin leaves and empty string rather
than null. We need to check for that.
Merge pull request #60 from DigitalCurationCentre/Shibboleth-bugs

Checking shibboleth_id isn't an empty string
Avoiding conflict nonsense
Merge pull request #62 from DigitalCurationCentre/Shibboleth-bugs

Avoiding conflict nonsense
Fix for Shibboleth "visit IdP twice" bug

Authentication was occurring the first time the user selected their
institution, but they were then being redirected back to the IdP by the
“sign_in_and_redirect s_user, event: :authentication” line. The second
time they selected their institution, they were already authenticated
and were simply redirected. This fixes that, sending the user to the
root path after logging in via Shibboleth or to the edit profile page
after linking their account.
Merge pull request #63 from DigitalCurationCentre/Shibboleth-bugs

Fix for Shibboleth "visit IdP twice" bug
merge with v4.0.5 fixes #1 and fixes #2