From a1e0a7abee3c9c24bdd5d8e0a840bdfe689a5ed9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Rynning-T=C3=B8nnesen?= Date: Fri, 1 Jul 2016 11:36:30 +0200 Subject: [PATCH] Update README.md --- README.md | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 350e0e0..87347ef 100644 --- a/README.md +++ b/README.md @@ -17,33 +17,30 @@ To use this general OAuth2 client-class, include it with ]); ``` -```(string) $client_id``` is client id of the OAuth2 application -```(string) $client_secret``` is client secret of the OAuth2 application -```(string) $redirect_uri``` is the specified redirect-uri for the OAuth2 application -```(string) $auth``` is the full url for authorization -```(string) $token``` is the full token url +```(string) $client_id``` is client id of the OAuth2 application +```(string) $client_secret``` is client secret of the OAuth2 application +```(string) $redirect_uri``` is the specified redirect-uri for the OAuth2 application +```(string) $auth``` is the full url for authorization +```(string) $token``` is the full token url Optional - -```(string) $authorization_type``` defaults to Bearer -```(boolean) $session``` specifies whether the state is to be saved in _SESSION storage, defaults to false -```(boolean) $verify``` is whether to verify SSL of host and peer, defaults to true -```(string) $grant_type``` defaults to 'authorization_code' -```(string) $response_type``` defaults to 'code' +```(string) $authorization_type``` defaults to Bearer +```(boolean) $session``` specifies whether the state is to be saved in _SESSION storage, defaults to false +```(boolean) $verify``` is whether to verify SSL of host and peer, defaults to true +```(string) $grant_type``` defaults to 'authorization_code' +```(string) $response_type``` defaults to "code" -To start the redirect phase +To start the redirect phase -```$oauth2->redirect($state);``` - -($state defaults to false) +```$oauth2->redirect($state);``` ($state defaults to false) To get access token -```$oauth2->get_access_token();``` +```$oauth2->get_access_token();``` returns the access_token. -returns the access_token. (Optional value is $state, to check up against _SESSION variables)