Skip to content
This repository has been archived by the owner on Jan 15, 2020. It is now read-only.

Counter CoP, OAuth2 authorization, submission API changes

Compare
Choose a tag to compare
@sfisher sfisher released this 28 Mar 18:42
· 56 commits to master since this release

Counter (related to Dash)

Dash

  • integrated doorkeeper oauth2 server into our API engine inside Dash
    • Worked around many problems of installing in an isolated engine
    • Enabled assigning ids/secrets by a superuser for an application (still need to do manual work to associate the user to this application, however)
    • Configured and enabled client credentials grant type
    • Token may be obtained from OAuth2 at /oauth/token
  • Added test request testing OAuth bearer key authentication at /api/test
  • Created POST request for adding basic metadata and getting a DOI for identifier
    • Added different flow for DOI generation which previously has happened at time of publication, this happens at time of metadata submission for a new dataset
    • Fixed bug around author affiliations being unreliable in the model
    • Added code to clean up empty values in JSON output
  • Documented new requests in Swagger at api/docs/index.html
  • Updated rubocop to same version across all engines
  • Updated loofah and html sanitizer to mitigate security vulnerabilities