Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 1.01 KB

File metadata and controls

22 lines (18 loc) · 1.01 KB

MAuth Signer Using Apache HttpClient

This is an implementation of Medidata Authentication Client Signer to sign the Http requests

Usage

  1. Configuration

    • MAuth uses Typesafe Config. Create application.conf on your classpath with the following content. The sign_versions option can be set to sign outgoing requests with Comma-separated protocol versions to sign requests. the default is v1. If the both v1 and v2 specified, the client sign requests with both x-mws-xxxxx and mcc-xxxxx headers

app {
   uuid: "aaaa-bbbbb-ccccc-ddddd-eeeee"
   private_key: "avasdfasdfadf"
}
mauth {
    sign_versions: "v1,v2"
}
  1. Signing Requests