Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/akamai/akamaiopen-edgegrid-c-sharp
https://github.com/akamai/akamaiopen-edgegrid-c-sharp
akamai authentication open
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/akamai/akamaiopen-edgegrid-c-sharp
- Owner: akamai
- License: apache-2.0
- Created: 2014-10-02T15:43:22.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2020-06-13T00:01:56.000Z (over 4 years ago)
- Last Synced: 2024-04-15T16:22:07.700Z (10 months ago)
- Topics: akamai, authentication, open
- Language: C#
- Size: 36.1 KB
- Stars: 14
- Watchers: 13
- Forks: 32
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# EdgeGridSigner (for .NET/c#)
This library assists in the interaction with Akamai's {Open} API found at http://developer.akamai.com.
The API Spec can be found at: https://developer.akamai.com/api## Project organization
* /EdgeGridAuth - core auth signere project
* /EdgeGridAuthTest - MSTest unit tests
* /OpenAPI - generic openapi.exe tool to demonstrate using the signer
* /Akamai.EdgeGrid.Auth.sln - root VisualStudio solution## Install
* Open the Akamai.EdgeGrid.Auth.sln in Visual Studio; Rebuild All
* OR ```MSBuild.exe Akamai.EdgeGrid.Auth.sln /t:rebuild```
* Copy the Akamai.EdgeGrid.Auth.dll to your application or solution.## Getting Started
* Create an instance of the `EdgeGridV1Signer` and call either Sign (if you are managing the http communication yourself
* or call Execute() to utilize built in safety checksFor example:
```
using Akamai.EdgeGrid.Auth;var signer = new EdgeGridV1Signer();
var credential = new ClientCredential(clientToken, accessToken, secret);//TODO: create httpRequest via WebRequest.Create(uri);
signer.Sign(httpRequest, credential);
```alternatively, you can use the execute() method to manage the connection and perform verification checks
```
using Akamai.EdgeGrid.Auth;var signer = new EdgeGridV1Signer();
var credential = new ClientCredential(clientToken, accessToken, secret);//TODO: create httpRequest via WebRequest.Create(uri);
signer.Execute(httpRequest, credential);
```## Sample application (openapi.exe)
* A sample application has been created that can take command line parameters.```openapi.exe
-a akab-access1234
-c akab-client1234
-s secret1234
https://akab-url123.luna.akamaiapis.net/diagnostic-tools/v1/locations
```