workflows: log model relationship addition

* Adds SQLAlchemy relationship between Workflows and the log.

* Fixes issue in __repr__ for log models.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
pidstore: template filters

* Add template filters for checking existing of a persistent identifier.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
oauthclient: signup support

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
utils: no CRSF protection in testing

<* Removes CRSF form protection when during tests.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
formatter: bfe_authors unicode error fix

* Fixes unicode cascading in bfe_authors, due to bfo.lang being
  in unicode.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
legacy: not found error downgrade

* Downgrades "404: Not found" from error to warning in the logger.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
deposit: minor text updates

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
accounts: template fixes

* Fixes minor issue in template.

* Adds template block to allow override in overlays.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
formatter: DOI inclusion in BibTeX export

* Includes DOI in BibTeX export.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
communities: upload priority removal

* Removes bibupload high priority on accept/reject actions.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
oauthclient: github/orcid sign-in/up support WIP

* Adds support for GitHub and ORCID sign-in/up.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
WebSearch: webcoll fix

* Fixes reliability with parsing last updated cache file.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
oauth2server: scopes registry WIP

* Adds registry for OAuth 2.0 scopes.

* Adds support for selecting scopes when creating personal access
  tokens.

* Fixes scopes registration in deposit and webhooks modules according to
  new registry.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
deposit: method name fix

* Fixes copy/pasted method name.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
login: fix permission issue for guest user

* Fixes a permission issue where a guest user did not have a list of
  permitted restricted collections calculated, causing issue with
  e.g. facets when viewing restricted collections (e.g. restricted to
  role anyuser).
communities: hide search (ZENODO only)
formatter: format element robustness fix

* Fixes issue when certain variables where when None would cause a TypeError
  exception.

* Fixes PEP8 and PEP257 issues in file.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
logging: celery logging to sentry fix

* Adds support for logging to Sentry from Celery tasks.

* Adds support for modifying Sentry transport for Celery only.

* Fixes legacy issue with use of invenio.config.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
oauth2server: authorization flow bug fixes

* Adds redirect URI field to application form.

* Adds validation and setters of redirect uris on model.

* Fixes issue in auth flow when validating scopes.

* Fixes template and context issues in 'Authorize application' view.

* Disables https redirect uri checking when in debug mode.

* NOTE Fixes auth flow issue by changing default value for
  Client.is_confidential. Upgrade included to update existing
  applications.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
oauthclient: error handling fix

* Fixes use of wrong exception type.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>