[][src]Module pbd::dua::middleware

Middleware for ensuring Data Usage Agreements are present and valid

Modules

actix

The DUA Middleware is a simple way to ensure that web services that require Data Usage Agreements are provided in the Request as a http header.

Constants

VALIDATION_DEFAULT

Default validation level is VALIDATION_LOW

VALIDATION_HIGH

Check to see if the Data-Usage-Agreement header is set, has a valid format, andthat the location of the agreements are valid.

VALIDATION_LOW

Check to see if the Data-Usage-Agreement header is set and has a valid format, but doesn't check to see if the location of the agreements are valid.

VALIDATION_NONE

Turns off validation so that only the the Data-Usage-Agreement header doesn't need to be set