Updated README.md

This commit is contained in:
Kasper Rynning-Tønnesen 2016-07-01 15:25:07 +02:00
parent c7ed6513f0
commit 3e59131386
2 changed files with 12 additions and 13 deletions

View File

@ -61,8 +61,6 @@ class OAuth2 {
$result = curl_exec($this->create_curl($url, false, $params));
$result_obj = json_decode($result, true);
$access_token = $result_obj['access_token'];
$expires_in = $result_obj['expires_in'];
$expires_at = time() + $expires_in;
return $access_token;
}

View File

@ -1,4 +1,6 @@
# General OAuth2-Client
# General Authorization Code Flow OAuth2-Client
This client is made for Authorization Code Flow for now.
To use this general OAuth2 client-class, include it with
```
@ -52,4 +54,3 @@ To get identity
```(string) $user_url``` is the endpoint for fetching info, example: https://auth.dataporten.no/userinfo
returns the identity-object as returned from the OAuth2-provider.