From 3f82ec2f757c62c25a31b461e0a0cddc14886117 Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Sat, 24 May 2014 14:41:21 -0700 Subject: Working app! Copied signin logic from OwnYourGram. New "post" interface for writing a simple text post. Also supports browser geolocation. --- views/auth_callback.php | 68 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 views/auth_callback.php (limited to 'views/auth_callback.php') diff --git a/views/auth_callback.php b/views/auth_callback.php new file mode 100644 index 0000000..44c2daa --- /dev/null +++ b/views/auth_callback.php @@ -0,0 +1,68 @@ +tokenEndpoint): ?> + + auth): ?> + +

Bad response from token endpoint

+

Your token endpoint returned a response that was not understood.

+ + + + auth, 'error')): ?> + +

Error

+

Got an error response from the token endpoint:

+
+

auth['error'] ?>

+ auth, 'error_description') ? ('

'.$this->auth['error_description'].'

') : '' ?> +
+ + + + + auth, array('me','access_token','scope'))): ?> + +

Success!

+ +

All required values were found! You are now signed in.

+

Continue

+ + + + auth, 'access_token')): ?> +

Missing access_token

+

The token endpoint did not return an access token. The access_token parameter is the token the client will use to make requests to the Micropub endpoint.

+ + + auth, 'me')): ?> +

Missing me

+

The token endpoint did not return a "me" parameter. The me parameter lets this client know what user the token is for.

+ + + auth, 'scope')): ?> +

Missing scope

+

The token endpoint did not return a "scope" parameter. The scope parameter lets this client what permission the token represents.

+ + + + + + + + +

Token endpoint response

+ +

Below is the raw response from your token endpoint (tokenEndpoint ?>):

+
+ curl_error ?> + response) ?> +
+ + + + + +

Error

+

Could not find your token endpoint. We found it last time, so double check nothing on your website has changed in the mean time.

+ + + -- cgit v1.2.3