Adds config option that allows apps to change the default behaviour of intercepting 401 requests, by including an initialiser: GDS::SSO.config { |config| config.intercept_401_responses = false }.
Added AuthorisedUserConstraint class so that consumer apps can easily add permission based constraints.
Adds deprecation warning for GDS::SSO::ControllerMethods::PermissionDeniedException. If your app uses this you can replace it with GDS::SSO::PermissionDeniedError.
Commits
e226038 Merge pull request #304 from alphagov/bump-version-19.1.0
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps gds-sso from 19.0.0 to 19.1.0.
Changelog
Sourced from gds-sso's changelog.
Commits
e226038
Merge pull request #304 from alphagov/bump-version-19.1.0261ec3a
Bump version to 19.1.0a9b93d2
Merge pull request #300 from alphagov/add-constraints-and-config-options077e35e
Update changelogf407c5e
Add authorise user constraint system spec1228da6
Re-use authorisation logic in the controller_methods class2fa18d8
Extract the user authorisation logic into a separate class40afea5
Add PermissionDeniedError error class under GDS::SSO namespace41fc5ff
Adds authorised user constraint1d03541
Add config for warden to not intercept 401 requestsDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show