Update README.md
This commit is contained in:
parent
b08d2bb70c
commit
20769085d4
32
README.md
32
README.md
|
@ -5,31 +5,21 @@ To use this general OAuth2 client-class, include it with
|
||||||
$oauth2 = new OAuth2( $client_id, $client_secret, $redirect_uri, $auth, $token, $user, $authorization_type, $session, $verify, $grant_type, $response_type);
|
$oauth2 = new OAuth2( $client_id, $client_secret, $redirect_uri, $auth, $token, $user, $authorization_type, $session, $verify, $grant_type, $response_type);
|
||||||
```
|
```
|
||||||
|
|
||||||
$client_id is client id of the OAuth2 application
|
```$client_id``` is client id of the OAuth2 application
|
||||||
|
```$client_secret``` is client secret of the OAuth2 application
|
||||||
$client_secret is client secret of the OAuth2 application
|
```$redirect_uri``` is the specified redirect-uri for the OAuth2 application
|
||||||
|
```$auth``` is the full url for authorization
|
||||||
$redirect_uri is the specified redirect-uri for the OAuth2 application
|
```$token``` is the full token url
|
||||||
|
```$user``` is the full identity url (example: https://auth.dataporten.no/userinfo)
|
||||||
$auth is the full url for authorization
|
|
||||||
|
|
||||||
$token is the full token url
|
|
||||||
|
|
||||||
$user is the full identity url (example: https://auth.dataporten.no/userinfo)
|
|
||||||
|
|
||||||
|
|
||||||
Optional -
|
Optional -
|
||||||
|
|
||||||
$authorization_type defaults to Bearer
|
```$authorization_type``` defaults to Bearer
|
||||||
|
```$session``` specifies whether the state is to be saved in _SESSION storage, defaults to false
|
||||||
$session specifies whether the state is to be saved in _SESSION storage, defaults to false
|
```$verify``` is whether to verify SSL of host and peer, defaults to false
|
||||||
|
```$grant_type``` defaults to 'authorization_code'
|
||||||
$verify is whether to verify SSL of host and peer, defaults to false
|
```$response_type``` defaults to 'code'
|
||||||
|
|
||||||
$grant_type defaults to 'authorization_code'
|
|
||||||
|
|
||||||
$response_type defaults to 'code'
|
|
||||||
|
|
||||||
|
|
||||||
To start the redirect phase
|
To start the redirect phase
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue