https://github.com/mdsol/go-mauth-client
Version of the Medidata Authentication Library in go
https://github.com/mdsol/go-mauth-client
technology-management
Last synced: 5 months ago
JSON representation
Version of the Medidata Authentication Library in go
- Host: GitHub
- URL: https://github.com/mdsol/go-mauth-client
- Owner: mdsol
- License: mit
- Created: 2016-06-10T11:24:51.000Z (about 10 years ago)
- Default Branch: main
- Last Pushed: 2023-07-11T20:44:52.000Z (almost 3 years ago)
- Last Synced: 2023-07-27T22:21:24.363Z (almost 3 years ago)
- Topics: technology-management
- Language: Go
- Homepage:
- Size: 84 KB
- Stars: 3
- Watchers: 137
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# go-mauth-client
## Introduction
This is a simple client for the Medidata MAuth Authentication Protocol. It can be used to access Platform Services within the Medidata Clinical Cloud.
### What is MAuth?
The MAuth protocol provides a fault-tolerant, service-to-service authentication scheme for Medidata and third-party applications that use web services to communicate. The Authentication Service and integrity algorithm is based on digital signatures encrypted and decrypted with a private/public key pair.
The Authentication Service has two responsibilities. It provides message integrity and provenance validation by verifying a message sender's signature; its other task is to manage public keys. Each public key is associated with an application and is used to authenticate message signatures. The private key corresponding to the public key in the Authentication Service is stored by the application making a signed request; the request is encrypted with this private key. The Authentication Service has no knowledge of the application's private key, only its public key.
## The Command Line Tool
A simple cli tool has been added in the [cmd/go_mauth_client](cmd/go_mauth_client) folder.
It can be installed using:
```bash
$ go install github.com/mdsol/go-mauth-client/cmd/go_mauth_client
```
See [README.md](cmd/go_mauth_client/README.md) for examples of usage.
## Developer Notes
### Examples
Two examples have been provided:
* [medidata_api_example.go](examples/medidata_apis/medidata_api_example.go) - sample code illustrating use for accessing the Medidata API
* [imedidata_client.go](examples/imedidata/imedidata_client.go) - sample code illustrating an iMedidata call