Updated README.md
This commit is contained in:
parent
c7ed6513f0
commit
3e59131386
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue