-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomposer.json
More file actions
32 lines (32 loc) · 3.24 KB
/
composer.json
File metadata and controls
32 lines (32 loc) · 3.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
"name": "apimatic/idfysignature",
"type": "library",
"description": "# Introduction ## Last update Last build date for this API: 27.10.2017 # Getting started ## Get an account To use the API, you need an API account at Idfy You can get a free test account by going to our onboarding site and filling out the form there: [https://onboard.signere.no](https://onboard.signere.no) ## Support We’re here to help. Get in touch and we’ll get back to you as soon as we can. [Contact us]([email protected]). # Statuspage If you want to know the status of our services or subscribe to notifications go to our Statuspage: [http://signere.statuspage.io/](http://signere.statuspage.io/) # API Authentication This API uses OAuth2 for authentication the requests. OAuth2 - an open protocol to allow secure authorization in a simple and standard method from web, mobile and desktop applications. Be sure to use client_credentials as grant type when connecting to this API. <b>Simple step by step guide to receive required access token </b><br/><br/> 1) Get access token <br/><br/> http POST to https://oauth2test.signere.com/connect/token for test or https://oauth.signere.no/connect/token for prod <br/><br/> • Request Headers: <br/> Content-Type: application/x-www-form-urlencoded <br/> Authorization: Basic auth with ClientId as username, and ClientSecret as password<br/> <i>Pseudo code: Authorization: "[ClientId]:[Secret]".ToBase64String() (utf-8) </i> <br/> <br> • Request Body:<br/> grant_type: client_credentials<br/> scope: [insert scope(s) here] (Contact us if you dont have access to this scope) <br/> <br> 2) Use access token to access our API<br/><br/> In the response you will receive an item containing the id token you should use to connect to our API's named access_token.<br/> • This token can then be added to the header in the requests to this API:<br/> Authorization: Bearer [access_token] <br><br> We have created a guide to create Oauth2 tokens for different languages here: [https://sdk.signere.com/oauthtoken.html](https://sdk.signere.com/oauthtoken.html) <br><br><i>Hint: The access token has a limited lifetime, check how long it will live in the response. Then you can save it to cache and reuse it (our .NET nuget client does this for you)</i><br><br> Read more aboute OAuth2 here: [https://www.digitalocean.com/community/tutorials/an-introduction-to-oauth-2](https://www.digitalocean.com/community/tutorials/an-introduction-to-oauth-2) <!-- ReDoc-Inject: <security-definitions> --> ",
"keywords": ["IdFy.Signature","API","SDK"],
"homepage": "https://apimatic.io",
"license": "MIT",
"authors": [
{
"name": "APIMatic SDK Generator",
"email": "[email protected]",
"homepage": "https://apimatic.io",
"role": "API Tool"
}
],
"require": {
"php": ">=5.4.0",
"ext-curl": "*",
"ext-json": "*",
"ext-mbstring": "*",
"mashape/unirest-php": "~3.0.1",
"apimatic/jsonmapper": "~1.2.0"
},
"require-dev": {
"squizlabs/php_codesniffer": "^2.7"
},
"autoload": {
"psr-4": {
"IdfySignatureLib\\": "src/"
}
}
}