jonnybarnes.uk/app/Http/Controllers/MicropubClientController.php

551 lines
19 KiB
PHP
Raw Normal View History

2016-05-19 15:01:28 +01:00
<?php
namespace App\Http\Controllers;
Squashed commit of the following: commit 1eecb177b6d5aed8fd7ced14ba5a3fb8d528521b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:19:29 2017 +0100 Fix some Style issues commit 490ca7b8e90b08ad1e59714e09ba49a853cb753e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:06:13 2017 +0100 Run check on POST as well GET methods commit fb588798ce4e6548a0e0be8ec00673b24a41fe40 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:04:47 2017 +0100 Check for exceptions when validating token commit da2ce1a2893c03ae058c07361d860f4e509ac0ee Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:57:27 2017 +0100 Go back to doing all dusk tests commit c34fbf519a0cc528c49e8d5d9628a8891540c294 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:53:17 2017 +0100 Don’t check for error message now commit bd48859f7faf279296c0a15f2f6b18f83a951ebd Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:49:23 2017 +0100 Escape the facade call with backslash commit fcb405d8caf0d23cb70abb67da35cc68e2e86e4f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:43:19 2017 +0100 Regenerate the token within dusk commit 8732f100a075742802447e65a2ba56b7cc69149a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:36:39 2017 +0100 Slight refactor of token verification commit cb0ec39bba5765d55ad024fe3d73ad81877034da Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:29:46 2017 +0100 Stupid forgetting to root the namespace commit 1f2b309d7e77ff195ac8a4aa2f755044d15b4b92 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:22:54 2017 +0100 Try throwing my own exception commit 41dab30389cd04746051b8552e605eb3693ad0f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:12:18 2017 +0100 Checked headers commit 5eb12543adf999c4887a1e63b8d174fb7321202b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:08:37 2017 +0100 Don’t catch exceptions commit 71dbf8d08a7eed9f3795f06811431b7a3c2ddd6c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:00:22 2017 +0100 Log headers for request commit 1109a394456dd07375ccfab5a8436a902f3b27ce Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:54:19 2017 +0100 Add laravels own logs to the artifacts commit f6cd9ee81385bf4366e0e59fc6c34c9b56b6e52c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:38:18 2017 +0100 Log error commit dadf3b3150c74d2199a87a529151d55fc1e67394 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:33:14 2017 +0100 Look for different error message commit 9df2d1b831e6c65283fb5438967f4517752c31ac Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:24:15 2017 +0100 Look for different error message commit 090736735fe3cc5fb4076b77730f7e39bc92d80c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:14:14 2017 +0100 Just checking error message commit 6a766b1bc4af3dd0e335b3f57287086a6e528340 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:08:16 2017 +0100 Look for error message commit a399af496a440e30a0c0a1d4050121b3e491e968 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:00:29 2017 +0100 Simpler setup of php error log commit 3472c48ed50466c2d150e727cb6c1e43b1298d4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:45:11 2017 +0100 Set the php error log commit 978c17f33e2d9c3dd5166744aef924bf21483737 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:37:04 2017 +0100 Set the php-fpm error log commit 0e3407a4781f83bf3c516578a4594eff92b9d4d8 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:18:45 2017 +0100 Save a token for the user commit 951fe7966e18ac9e38526b6dfdc4a75fd4d68a0c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:56:49 2017 +0100 Use the right phrase commit faedc802a46c35b3b9264348ebbd895f4d2b3895 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:41:03 2017 +0100 Easier phrase to find in log commit 71b3c905bb4be0943254e51604af1293cc63cd0f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:35:07 2017 +0100 Check we are logged in commit fd6e3c79f13b9aada395a53b367e316936787298 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:20:14 2017 +0100 Cleanup output commit 231ac5868070f232f5bd455f0d6070621da9ae91 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:00:36 2017 +0100 Try pausing test before running second check commit 754cbafacdb8dd46db2eee699b8e23009c7d0bf5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 20 13:15:10 2017 +0100 Temporary fix for TLS issues on travis-ci and sensiolab’s security checker commit 8e03bba917ca9ba951bac5197e0008ae7188e19a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:24:51 2017 +0100 Use less strict check on no auth endpoint being found commit 91ee495ae1302f269febdd0e14ecbe81222b1014 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:23:44 2017 +0100 Use newer scope values in token commit 989a242b4ff271f4ac6ee0873dc2924506c0efcf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:30:53 2017 +0100 Missed some array syntax commit 92d11c9a62c2a122b4fef62da8af6bf4be23288d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:21:43 2017 +0100 Fix some styleci issues commit 3a3aa8daca981561594cf3fb542c3e240b174013 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:50:31 2017 +0100 Allow client to send request with JSON syntax, cleanup a but of other code commit dcc3baf2dc554175fdd1de408cb4f7170a6540d4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:47:51 2017 +0100 composer update commit b89dbb6b7a4940b5eed30727f0bd67bc382d98bc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 14 09:50:39 2017 +0100 wip commit 87eb63dc9570f6822324d665bc1658cfcb446554 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 18:44:15 2017 +0100 Allow the syntax for the endpoint to be set in the config page commit 9595a0b68e4b51d77c18e63f9940026aa1325475 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 17:17:34 2017 +0100 Use better scope values in command commit 08e2223a8d56984df826c1cd876f58b00cce8faf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:53:44 2017 +0100 Get media uploads working again commit 4c0d6861324c23afe4145c4ff9a46d8a1ecc10e9 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:09:16 2017 +0100 Show syndication targets properlu in client form and config page commit 63939316a0818c8dfa8cba9919b231c2fdad5821 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:08:40 2017 +0100 Update prism, recompress assets commit 74902237cb227e05386135fb0e2d5330b65e1c4e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:58:41 2017 +0100 Better presentation of syndication targets commit 345cda342051af406d6616a9162a75af625a64e0 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:47:12 2017 +0100 yarn upgrade commit 17de68cc8f26cc472b009bf42942778fac75c890 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:42:49 2017 +0100 composer update commit 7da78294dfdda8c68fc411ab03db65f101c7fc4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:34:56 2017 +0100 Move to using indieauth-client-php client directly, add code to get new tokens commit 0020596b52c1590936d12ec9c458b7e70a06bc8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:31:40 2017 +0100 Add routes for retreiving a new token commit ee0a6763f037629e2a97fa8536c84cbffbbbd7e2 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:30:33 2017 +0100 Show syndication targets as an unformated json string commit 765d032fa883db834a005f61dc553b3b0ef9ee8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:29:21 2017 +0100 Add a migratin for the indieweb users commit 3a5c458f132cf6c308c2e83eb57c61ae64cc2b48 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:28:51 2017 +0100 Add a normlize_url helper function commit fb71bd6418e7903b7d50a90dd600a82a8af03d38 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:27:41 2017 +0100 Add a token to the users table commit 56df9e8aa453394f8b83e8f6a28cc41c66d172f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:18:06 2017 +0100 Set default values for config screen commit 0df8217a82cac91c3129acc492b73d6e8cb69b44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:17:14 2017 +0100 Use the helper function to normalize URLs commit d5f882972ec43e766ae7b9288b1ab3645dd471cf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:15:41 2017 +0100 In a dev environment automatically log in as the pre-created user commit 2c3379d0e560226a4db181e7d45ce02b575990ae Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:14:13 2017 +0100 Add a default user of me commit 5c955803a8218c477e2f2b126811e6bed5f20379 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:13:08 2017 +0100 Add a helpers file, currently only has a function to normalize URLs commit ae052d305c835952c83602d305cfdb08d5be975e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Mar 31 16:08:30 2017 +0100 Allow a user to register/login with his domain commit 638ab8085f18c1bdf9c036c0272a8e88079013f5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Mar 28 16:51:42 2017 +0100 Work on allowing people to “register” for the client
2017-04-21 16:38:39 +01:00
use App\IndieWebUser;
2016-05-19 15:01:28 +01:00
use IndieAuth\Client as IndieClient;
use GuzzleHttp\Client as GuzzleClient;
use Illuminate\Http\{Request, Response};
use GuzzleHttp\Exception\{ClientException, ServerException};
2016-05-19 15:01:28 +01:00
class MicropubClientController extends Controller
{
/**
* Inject the dependencies.
*/
public function __construct(
IndieClient $indieClient,
GuzzleClient $guzzleClient
2016-05-19 15:01:28 +01:00
) {
$this->indieClient = $indieClient;
$this->guzzleClient = $guzzleClient;
2016-05-19 15:01:28 +01:00
}
/**
* Display the new notes form.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\View\Factory view
*/
public function create(Request $request)
2016-05-19 15:01:28 +01:00
{
2017-05-18 16:19:37 +01:00
//initiate varaibles
$indiewebUser = null;
$syndication = null;
$mediaEndpoint = null;
$mediaURLs = null;
2016-05-19 15:01:28 +01:00
$url = $request->session()->get('me');
Squashed commit of the following: commit 1eecb177b6d5aed8fd7ced14ba5a3fb8d528521b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:19:29 2017 +0100 Fix some Style issues commit 490ca7b8e90b08ad1e59714e09ba49a853cb753e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:06:13 2017 +0100 Run check on POST as well GET methods commit fb588798ce4e6548a0e0be8ec00673b24a41fe40 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:04:47 2017 +0100 Check for exceptions when validating token commit da2ce1a2893c03ae058c07361d860f4e509ac0ee Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:57:27 2017 +0100 Go back to doing all dusk tests commit c34fbf519a0cc528c49e8d5d9628a8891540c294 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:53:17 2017 +0100 Don’t check for error message now commit bd48859f7faf279296c0a15f2f6b18f83a951ebd Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:49:23 2017 +0100 Escape the facade call with backslash commit fcb405d8caf0d23cb70abb67da35cc68e2e86e4f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:43:19 2017 +0100 Regenerate the token within dusk commit 8732f100a075742802447e65a2ba56b7cc69149a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:36:39 2017 +0100 Slight refactor of token verification commit cb0ec39bba5765d55ad024fe3d73ad81877034da Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:29:46 2017 +0100 Stupid forgetting to root the namespace commit 1f2b309d7e77ff195ac8a4aa2f755044d15b4b92 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:22:54 2017 +0100 Try throwing my own exception commit 41dab30389cd04746051b8552e605eb3693ad0f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:12:18 2017 +0100 Checked headers commit 5eb12543adf999c4887a1e63b8d174fb7321202b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:08:37 2017 +0100 Don’t catch exceptions commit 71dbf8d08a7eed9f3795f06811431b7a3c2ddd6c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:00:22 2017 +0100 Log headers for request commit 1109a394456dd07375ccfab5a8436a902f3b27ce Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:54:19 2017 +0100 Add laravels own logs to the artifacts commit f6cd9ee81385bf4366e0e59fc6c34c9b56b6e52c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:38:18 2017 +0100 Log error commit dadf3b3150c74d2199a87a529151d55fc1e67394 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:33:14 2017 +0100 Look for different error message commit 9df2d1b831e6c65283fb5438967f4517752c31ac Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:24:15 2017 +0100 Look for different error message commit 090736735fe3cc5fb4076b77730f7e39bc92d80c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:14:14 2017 +0100 Just checking error message commit 6a766b1bc4af3dd0e335b3f57287086a6e528340 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:08:16 2017 +0100 Look for error message commit a399af496a440e30a0c0a1d4050121b3e491e968 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:00:29 2017 +0100 Simpler setup of php error log commit 3472c48ed50466c2d150e727cb6c1e43b1298d4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:45:11 2017 +0100 Set the php error log commit 978c17f33e2d9c3dd5166744aef924bf21483737 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:37:04 2017 +0100 Set the php-fpm error log commit 0e3407a4781f83bf3c516578a4594eff92b9d4d8 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:18:45 2017 +0100 Save a token for the user commit 951fe7966e18ac9e38526b6dfdc4a75fd4d68a0c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:56:49 2017 +0100 Use the right phrase commit faedc802a46c35b3b9264348ebbd895f4d2b3895 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:41:03 2017 +0100 Easier phrase to find in log commit 71b3c905bb4be0943254e51604af1293cc63cd0f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:35:07 2017 +0100 Check we are logged in commit fd6e3c79f13b9aada395a53b367e316936787298 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:20:14 2017 +0100 Cleanup output commit 231ac5868070f232f5bd455f0d6070621da9ae91 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:00:36 2017 +0100 Try pausing test before running second check commit 754cbafacdb8dd46db2eee699b8e23009c7d0bf5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 20 13:15:10 2017 +0100 Temporary fix for TLS issues on travis-ci and sensiolab’s security checker commit 8e03bba917ca9ba951bac5197e0008ae7188e19a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:24:51 2017 +0100 Use less strict check on no auth endpoint being found commit 91ee495ae1302f269febdd0e14ecbe81222b1014 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:23:44 2017 +0100 Use newer scope values in token commit 989a242b4ff271f4ac6ee0873dc2924506c0efcf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:30:53 2017 +0100 Missed some array syntax commit 92d11c9a62c2a122b4fef62da8af6bf4be23288d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:21:43 2017 +0100 Fix some styleci issues commit 3a3aa8daca981561594cf3fb542c3e240b174013 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:50:31 2017 +0100 Allow client to send request with JSON syntax, cleanup a but of other code commit dcc3baf2dc554175fdd1de408cb4f7170a6540d4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:47:51 2017 +0100 composer update commit b89dbb6b7a4940b5eed30727f0bd67bc382d98bc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 14 09:50:39 2017 +0100 wip commit 87eb63dc9570f6822324d665bc1658cfcb446554 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 18:44:15 2017 +0100 Allow the syntax for the endpoint to be set in the config page commit 9595a0b68e4b51d77c18e63f9940026aa1325475 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 17:17:34 2017 +0100 Use better scope values in command commit 08e2223a8d56984df826c1cd876f58b00cce8faf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:53:44 2017 +0100 Get media uploads working again commit 4c0d6861324c23afe4145c4ff9a46d8a1ecc10e9 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:09:16 2017 +0100 Show syndication targets properlu in client form and config page commit 63939316a0818c8dfa8cba9919b231c2fdad5821 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:08:40 2017 +0100 Update prism, recompress assets commit 74902237cb227e05386135fb0e2d5330b65e1c4e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:58:41 2017 +0100 Better presentation of syndication targets commit 345cda342051af406d6616a9162a75af625a64e0 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:47:12 2017 +0100 yarn upgrade commit 17de68cc8f26cc472b009bf42942778fac75c890 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:42:49 2017 +0100 composer update commit 7da78294dfdda8c68fc411ab03db65f101c7fc4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:34:56 2017 +0100 Move to using indieauth-client-php client directly, add code to get new tokens commit 0020596b52c1590936d12ec9c458b7e70a06bc8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:31:40 2017 +0100 Add routes for retreiving a new token commit ee0a6763f037629e2a97fa8536c84cbffbbbd7e2 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:30:33 2017 +0100 Show syndication targets as an unformated json string commit 765d032fa883db834a005f61dc553b3b0ef9ee8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:29:21 2017 +0100 Add a migratin for the indieweb users commit 3a5c458f132cf6c308c2e83eb57c61ae64cc2b48 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:28:51 2017 +0100 Add a normlize_url helper function commit fb71bd6418e7903b7d50a90dd600a82a8af03d38 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:27:41 2017 +0100 Add a token to the users table commit 56df9e8aa453394f8b83e8f6a28cc41c66d172f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:18:06 2017 +0100 Set default values for config screen commit 0df8217a82cac91c3129acc492b73d6e8cb69b44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:17:14 2017 +0100 Use the helper function to normalize URLs commit d5f882972ec43e766ae7b9288b1ab3645dd471cf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:15:41 2017 +0100 In a dev environment automatically log in as the pre-created user commit 2c3379d0e560226a4db181e7d45ce02b575990ae Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:14:13 2017 +0100 Add a default user of me commit 5c955803a8218c477e2f2b126811e6bed5f20379 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:13:08 2017 +0100 Add a helpers file, currently only has a function to normalize URLs commit ae052d305c835952c83602d305cfdb08d5be975e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Mar 31 16:08:30 2017 +0100 Allow a user to register/login with his domain commit 638ab8085f18c1bdf9c036c0272a8e88079013f5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Mar 28 16:51:42 2017 +0100 Work on allowing people to “register” for the client
2017-04-21 16:38:39 +01:00
if ($url) {
$indiewebUser = IndieWebUser::where('me', $url)->first();
}
if ($indiewebUser) {
$syndication = $this->parseSyndicationTargets($indiewebUser->syndication);
$mediaEndpoint = $indiewebUser->mediaEndpoint ?? null;
$mediaURLs = $request->session()->get('media-links');
}
2016-05-19 15:01:28 +01:00
return view('micropub.create', compact('url', 'syndication', 'mediaEndpoint', 'mediaURLs'));
}
/**
* Process an upload to the media endpoint.
*
* @param Illuminate\Http\Request $request
* @return Illuminate\Http\Response
*/
public function processMedia(Request $request)
{
if ($request->hasFile('files') == false) {
return back()->with('error', 'No files uploaded');
}
Squashed commit of the following: commit 1eecb177b6d5aed8fd7ced14ba5a3fb8d528521b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:19:29 2017 +0100 Fix some Style issues commit 490ca7b8e90b08ad1e59714e09ba49a853cb753e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:06:13 2017 +0100 Run check on POST as well GET methods commit fb588798ce4e6548a0e0be8ec00673b24a41fe40 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:04:47 2017 +0100 Check for exceptions when validating token commit da2ce1a2893c03ae058c07361d860f4e509ac0ee Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:57:27 2017 +0100 Go back to doing all dusk tests commit c34fbf519a0cc528c49e8d5d9628a8891540c294 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:53:17 2017 +0100 Don’t check for error message now commit bd48859f7faf279296c0a15f2f6b18f83a951ebd Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:49:23 2017 +0100 Escape the facade call with backslash commit fcb405d8caf0d23cb70abb67da35cc68e2e86e4f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:43:19 2017 +0100 Regenerate the token within dusk commit 8732f100a075742802447e65a2ba56b7cc69149a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:36:39 2017 +0100 Slight refactor of token verification commit cb0ec39bba5765d55ad024fe3d73ad81877034da Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:29:46 2017 +0100 Stupid forgetting to root the namespace commit 1f2b309d7e77ff195ac8a4aa2f755044d15b4b92 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:22:54 2017 +0100 Try throwing my own exception commit 41dab30389cd04746051b8552e605eb3693ad0f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:12:18 2017 +0100 Checked headers commit 5eb12543adf999c4887a1e63b8d174fb7321202b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:08:37 2017 +0100 Don’t catch exceptions commit 71dbf8d08a7eed9f3795f06811431b7a3c2ddd6c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:00:22 2017 +0100 Log headers for request commit 1109a394456dd07375ccfab5a8436a902f3b27ce Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:54:19 2017 +0100 Add laravels own logs to the artifacts commit f6cd9ee81385bf4366e0e59fc6c34c9b56b6e52c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:38:18 2017 +0100 Log error commit dadf3b3150c74d2199a87a529151d55fc1e67394 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:33:14 2017 +0100 Look for different error message commit 9df2d1b831e6c65283fb5438967f4517752c31ac Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:24:15 2017 +0100 Look for different error message commit 090736735fe3cc5fb4076b77730f7e39bc92d80c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:14:14 2017 +0100 Just checking error message commit 6a766b1bc4af3dd0e335b3f57287086a6e528340 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:08:16 2017 +0100 Look for error message commit a399af496a440e30a0c0a1d4050121b3e491e968 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:00:29 2017 +0100 Simpler setup of php error log commit 3472c48ed50466c2d150e727cb6c1e43b1298d4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:45:11 2017 +0100 Set the php error log commit 978c17f33e2d9c3dd5166744aef924bf21483737 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:37:04 2017 +0100 Set the php-fpm error log commit 0e3407a4781f83bf3c516578a4594eff92b9d4d8 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:18:45 2017 +0100 Save a token for the user commit 951fe7966e18ac9e38526b6dfdc4a75fd4d68a0c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:56:49 2017 +0100 Use the right phrase commit faedc802a46c35b3b9264348ebbd895f4d2b3895 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:41:03 2017 +0100 Easier phrase to find in log commit 71b3c905bb4be0943254e51604af1293cc63cd0f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:35:07 2017 +0100 Check we are logged in commit fd6e3c79f13b9aada395a53b367e316936787298 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:20:14 2017 +0100 Cleanup output commit 231ac5868070f232f5bd455f0d6070621da9ae91 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:00:36 2017 +0100 Try pausing test before running second check commit 754cbafacdb8dd46db2eee699b8e23009c7d0bf5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 20 13:15:10 2017 +0100 Temporary fix for TLS issues on travis-ci and sensiolab’s security checker commit 8e03bba917ca9ba951bac5197e0008ae7188e19a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:24:51 2017 +0100 Use less strict check on no auth endpoint being found commit 91ee495ae1302f269febdd0e14ecbe81222b1014 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:23:44 2017 +0100 Use newer scope values in token commit 989a242b4ff271f4ac6ee0873dc2924506c0efcf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:30:53 2017 +0100 Missed some array syntax commit 92d11c9a62c2a122b4fef62da8af6bf4be23288d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:21:43 2017 +0100 Fix some styleci issues commit 3a3aa8daca981561594cf3fb542c3e240b174013 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:50:31 2017 +0100 Allow client to send request with JSON syntax, cleanup a but of other code commit dcc3baf2dc554175fdd1de408cb4f7170a6540d4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:47:51 2017 +0100 composer update commit b89dbb6b7a4940b5eed30727f0bd67bc382d98bc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 14 09:50:39 2017 +0100 wip commit 87eb63dc9570f6822324d665bc1658cfcb446554 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 18:44:15 2017 +0100 Allow the syntax for the endpoint to be set in the config page commit 9595a0b68e4b51d77c18e63f9940026aa1325475 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 17:17:34 2017 +0100 Use better scope values in command commit 08e2223a8d56984df826c1cd876f58b00cce8faf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:53:44 2017 +0100 Get media uploads working again commit 4c0d6861324c23afe4145c4ff9a46d8a1ecc10e9 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:09:16 2017 +0100 Show syndication targets properlu in client form and config page commit 63939316a0818c8dfa8cba9919b231c2fdad5821 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:08:40 2017 +0100 Update prism, recompress assets commit 74902237cb227e05386135fb0e2d5330b65e1c4e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:58:41 2017 +0100 Better presentation of syndication targets commit 345cda342051af406d6616a9162a75af625a64e0 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:47:12 2017 +0100 yarn upgrade commit 17de68cc8f26cc472b009bf42942778fac75c890 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:42:49 2017 +0100 composer update commit 7da78294dfdda8c68fc411ab03db65f101c7fc4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:34:56 2017 +0100 Move to using indieauth-client-php client directly, add code to get new tokens commit 0020596b52c1590936d12ec9c458b7e70a06bc8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:31:40 2017 +0100 Add routes for retreiving a new token commit ee0a6763f037629e2a97fa8536c84cbffbbbd7e2 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:30:33 2017 +0100 Show syndication targets as an unformated json string commit 765d032fa883db834a005f61dc553b3b0ef9ee8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:29:21 2017 +0100 Add a migratin for the indieweb users commit 3a5c458f132cf6c308c2e83eb57c61ae64cc2b48 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:28:51 2017 +0100 Add a normlize_url helper function commit fb71bd6418e7903b7d50a90dd600a82a8af03d38 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:27:41 2017 +0100 Add a token to the users table commit 56df9e8aa453394f8b83e8f6a28cc41c66d172f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:18:06 2017 +0100 Set default values for config screen commit 0df8217a82cac91c3129acc492b73d6e8cb69b44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:17:14 2017 +0100 Use the helper function to normalize URLs commit d5f882972ec43e766ae7b9288b1ab3645dd471cf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:15:41 2017 +0100 In a dev environment automatically log in as the pre-created user commit 2c3379d0e560226a4db181e7d45ce02b575990ae Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:14:13 2017 +0100 Add a default user of me commit 5c955803a8218c477e2f2b126811e6bed5f20379 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:13:08 2017 +0100 Add a helpers file, currently only has a function to normalize URLs commit ae052d305c835952c83602d305cfdb08d5be975e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Mar 31 16:08:30 2017 +0100 Allow a user to register/login with his domain commit 638ab8085f18c1bdf9c036c0272a8e88079013f5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Mar 28 16:51:42 2017 +0100 Work on allowing people to “register” for the client
2017-04-21 16:38:39 +01:00
$user = IndieWebUser::where('me', $request->session()->get('me'))->firstOrFail();
if ($user->mediaEndpoint == null || $user->token == null) {
return back()->with('error', 'No user token or known endpoint');
}
$mediaURLs = [];
foreach ($request->file('files') as $file) {
try {
Squashed commit of the following: commit 1eecb177b6d5aed8fd7ced14ba5a3fb8d528521b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:19:29 2017 +0100 Fix some Style issues commit 490ca7b8e90b08ad1e59714e09ba49a853cb753e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:06:13 2017 +0100 Run check on POST as well GET methods commit fb588798ce4e6548a0e0be8ec00673b24a41fe40 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:04:47 2017 +0100 Check for exceptions when validating token commit da2ce1a2893c03ae058c07361d860f4e509ac0ee Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:57:27 2017 +0100 Go back to doing all dusk tests commit c34fbf519a0cc528c49e8d5d9628a8891540c294 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:53:17 2017 +0100 Don’t check for error message now commit bd48859f7faf279296c0a15f2f6b18f83a951ebd Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:49:23 2017 +0100 Escape the facade call with backslash commit fcb405d8caf0d23cb70abb67da35cc68e2e86e4f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:43:19 2017 +0100 Regenerate the token within dusk commit 8732f100a075742802447e65a2ba56b7cc69149a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:36:39 2017 +0100 Slight refactor of token verification commit cb0ec39bba5765d55ad024fe3d73ad81877034da Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:29:46 2017 +0100 Stupid forgetting to root the namespace commit 1f2b309d7e77ff195ac8a4aa2f755044d15b4b92 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:22:54 2017 +0100 Try throwing my own exception commit 41dab30389cd04746051b8552e605eb3693ad0f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:12:18 2017 +0100 Checked headers commit 5eb12543adf999c4887a1e63b8d174fb7321202b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:08:37 2017 +0100 Don’t catch exceptions commit 71dbf8d08a7eed9f3795f06811431b7a3c2ddd6c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:00:22 2017 +0100 Log headers for request commit 1109a394456dd07375ccfab5a8436a902f3b27ce Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:54:19 2017 +0100 Add laravels own logs to the artifacts commit f6cd9ee81385bf4366e0e59fc6c34c9b56b6e52c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:38:18 2017 +0100 Log error commit dadf3b3150c74d2199a87a529151d55fc1e67394 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:33:14 2017 +0100 Look for different error message commit 9df2d1b831e6c65283fb5438967f4517752c31ac Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:24:15 2017 +0100 Look for different error message commit 090736735fe3cc5fb4076b77730f7e39bc92d80c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:14:14 2017 +0100 Just checking error message commit 6a766b1bc4af3dd0e335b3f57287086a6e528340 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:08:16 2017 +0100 Look for error message commit a399af496a440e30a0c0a1d4050121b3e491e968 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:00:29 2017 +0100 Simpler setup of php error log commit 3472c48ed50466c2d150e727cb6c1e43b1298d4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:45:11 2017 +0100 Set the php error log commit 978c17f33e2d9c3dd5166744aef924bf21483737 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:37:04 2017 +0100 Set the php-fpm error log commit 0e3407a4781f83bf3c516578a4594eff92b9d4d8 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:18:45 2017 +0100 Save a token for the user commit 951fe7966e18ac9e38526b6dfdc4a75fd4d68a0c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:56:49 2017 +0100 Use the right phrase commit faedc802a46c35b3b9264348ebbd895f4d2b3895 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:41:03 2017 +0100 Easier phrase to find in log commit 71b3c905bb4be0943254e51604af1293cc63cd0f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:35:07 2017 +0100 Check we are logged in commit fd6e3c79f13b9aada395a53b367e316936787298 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:20:14 2017 +0100 Cleanup output commit 231ac5868070f232f5bd455f0d6070621da9ae91 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:00:36 2017 +0100 Try pausing test before running second check commit 754cbafacdb8dd46db2eee699b8e23009c7d0bf5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 20 13:15:10 2017 +0100 Temporary fix for TLS issues on travis-ci and sensiolab’s security checker commit 8e03bba917ca9ba951bac5197e0008ae7188e19a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:24:51 2017 +0100 Use less strict check on no auth endpoint being found commit 91ee495ae1302f269febdd0e14ecbe81222b1014 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:23:44 2017 +0100 Use newer scope values in token commit 989a242b4ff271f4ac6ee0873dc2924506c0efcf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:30:53 2017 +0100 Missed some array syntax commit 92d11c9a62c2a122b4fef62da8af6bf4be23288d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:21:43 2017 +0100 Fix some styleci issues commit 3a3aa8daca981561594cf3fb542c3e240b174013 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:50:31 2017 +0100 Allow client to send request with JSON syntax, cleanup a but of other code commit dcc3baf2dc554175fdd1de408cb4f7170a6540d4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:47:51 2017 +0100 composer update commit b89dbb6b7a4940b5eed30727f0bd67bc382d98bc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 14 09:50:39 2017 +0100 wip commit 87eb63dc9570f6822324d665bc1658cfcb446554 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 18:44:15 2017 +0100 Allow the syntax for the endpoint to be set in the config page commit 9595a0b68e4b51d77c18e63f9940026aa1325475 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 17:17:34 2017 +0100 Use better scope values in command commit 08e2223a8d56984df826c1cd876f58b00cce8faf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:53:44 2017 +0100 Get media uploads working again commit 4c0d6861324c23afe4145c4ff9a46d8a1ecc10e9 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:09:16 2017 +0100 Show syndication targets properlu in client form and config page commit 63939316a0818c8dfa8cba9919b231c2fdad5821 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:08:40 2017 +0100 Update prism, recompress assets commit 74902237cb227e05386135fb0e2d5330b65e1c4e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:58:41 2017 +0100 Better presentation of syndication targets commit 345cda342051af406d6616a9162a75af625a64e0 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:47:12 2017 +0100 yarn upgrade commit 17de68cc8f26cc472b009bf42942778fac75c890 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:42:49 2017 +0100 composer update commit 7da78294dfdda8c68fc411ab03db65f101c7fc4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:34:56 2017 +0100 Move to using indieauth-client-php client directly, add code to get new tokens commit 0020596b52c1590936d12ec9c458b7e70a06bc8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:31:40 2017 +0100 Add routes for retreiving a new token commit ee0a6763f037629e2a97fa8536c84cbffbbbd7e2 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:30:33 2017 +0100 Show syndication targets as an unformated json string commit 765d032fa883db834a005f61dc553b3b0ef9ee8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:29:21 2017 +0100 Add a migratin for the indieweb users commit 3a5c458f132cf6c308c2e83eb57c61ae64cc2b48 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:28:51 2017 +0100 Add a normlize_url helper function commit fb71bd6418e7903b7d50a90dd600a82a8af03d38 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:27:41 2017 +0100 Add a token to the users table commit 56df9e8aa453394f8b83e8f6a28cc41c66d172f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:18:06 2017 +0100 Set default values for config screen commit 0df8217a82cac91c3129acc492b73d6e8cb69b44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:17:14 2017 +0100 Use the helper function to normalize URLs commit d5f882972ec43e766ae7b9288b1ab3645dd471cf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:15:41 2017 +0100 In a dev environment automatically log in as the pre-created user commit 2c3379d0e560226a4db181e7d45ce02b575990ae Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:14:13 2017 +0100 Add a default user of me commit 5c955803a8218c477e2f2b126811e6bed5f20379 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:13:08 2017 +0100 Add a helpers file, currently only has a function to normalize URLs commit ae052d305c835952c83602d305cfdb08d5be975e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Mar 31 16:08:30 2017 +0100 Allow a user to register/login with his domain commit 638ab8085f18c1bdf9c036c0272a8e88079013f5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Mar 28 16:51:42 2017 +0100 Work on allowing people to “register” for the client
2017-04-21 16:38:39 +01:00
$response = $this->guzzleClient->request('POST', $user->mediaEndpoint, [
'headers' => [
Squashed commit of the following: commit 1eecb177b6d5aed8fd7ced14ba5a3fb8d528521b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:19:29 2017 +0100 Fix some Style issues commit 490ca7b8e90b08ad1e59714e09ba49a853cb753e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:06:13 2017 +0100 Run check on POST as well GET methods commit fb588798ce4e6548a0e0be8ec00673b24a41fe40 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:04:47 2017 +0100 Check for exceptions when validating token commit da2ce1a2893c03ae058c07361d860f4e509ac0ee Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:57:27 2017 +0100 Go back to doing all dusk tests commit c34fbf519a0cc528c49e8d5d9628a8891540c294 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:53:17 2017 +0100 Don’t check for error message now commit bd48859f7faf279296c0a15f2f6b18f83a951ebd Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:49:23 2017 +0100 Escape the facade call with backslash commit fcb405d8caf0d23cb70abb67da35cc68e2e86e4f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:43:19 2017 +0100 Regenerate the token within dusk commit 8732f100a075742802447e65a2ba56b7cc69149a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:36:39 2017 +0100 Slight refactor of token verification commit cb0ec39bba5765d55ad024fe3d73ad81877034da Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:29:46 2017 +0100 Stupid forgetting to root the namespace commit 1f2b309d7e77ff195ac8a4aa2f755044d15b4b92 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:22:54 2017 +0100 Try throwing my own exception commit 41dab30389cd04746051b8552e605eb3693ad0f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:12:18 2017 +0100 Checked headers commit 5eb12543adf999c4887a1e63b8d174fb7321202b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:08:37 2017 +0100 Don’t catch exceptions commit 71dbf8d08a7eed9f3795f06811431b7a3c2ddd6c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:00:22 2017 +0100 Log headers for request commit 1109a394456dd07375ccfab5a8436a902f3b27ce Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:54:19 2017 +0100 Add laravels own logs to the artifacts commit f6cd9ee81385bf4366e0e59fc6c34c9b56b6e52c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:38:18 2017 +0100 Log error commit dadf3b3150c74d2199a87a529151d55fc1e67394 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:33:14 2017 +0100 Look for different error message commit 9df2d1b831e6c65283fb5438967f4517752c31ac Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:24:15 2017 +0100 Look for different error message commit 090736735fe3cc5fb4076b77730f7e39bc92d80c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:14:14 2017 +0100 Just checking error message commit 6a766b1bc4af3dd0e335b3f57287086a6e528340 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:08:16 2017 +0100 Look for error message commit a399af496a440e30a0c0a1d4050121b3e491e968 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:00:29 2017 +0100 Simpler setup of php error log commit 3472c48ed50466c2d150e727cb6c1e43b1298d4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:45:11 2017 +0100 Set the php error log commit 978c17f33e2d9c3dd5166744aef924bf21483737 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:37:04 2017 +0100 Set the php-fpm error log commit 0e3407a4781f83bf3c516578a4594eff92b9d4d8 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:18:45 2017 +0100 Save a token for the user commit 951fe7966e18ac9e38526b6dfdc4a75fd4d68a0c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:56:49 2017 +0100 Use the right phrase commit faedc802a46c35b3b9264348ebbd895f4d2b3895 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:41:03 2017 +0100 Easier phrase to find in log commit 71b3c905bb4be0943254e51604af1293cc63cd0f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:35:07 2017 +0100 Check we are logged in commit fd6e3c79f13b9aada395a53b367e316936787298 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:20:14 2017 +0100 Cleanup output commit 231ac5868070f232f5bd455f0d6070621da9ae91 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:00:36 2017 +0100 Try pausing test before running second check commit 754cbafacdb8dd46db2eee699b8e23009c7d0bf5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 20 13:15:10 2017 +0100 Temporary fix for TLS issues on travis-ci and sensiolab’s security checker commit 8e03bba917ca9ba951bac5197e0008ae7188e19a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:24:51 2017 +0100 Use less strict check on no auth endpoint being found commit 91ee495ae1302f269febdd0e14ecbe81222b1014 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:23:44 2017 +0100 Use newer scope values in token commit 989a242b4ff271f4ac6ee0873dc2924506c0efcf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:30:53 2017 +0100 Missed some array syntax commit 92d11c9a62c2a122b4fef62da8af6bf4be23288d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:21:43 2017 +0100 Fix some styleci issues commit 3a3aa8daca981561594cf3fb542c3e240b174013 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:50:31 2017 +0100 Allow client to send request with JSON syntax, cleanup a but of other code commit dcc3baf2dc554175fdd1de408cb4f7170a6540d4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:47:51 2017 +0100 composer update commit b89dbb6b7a4940b5eed30727f0bd67bc382d98bc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 14 09:50:39 2017 +0100 wip commit 87eb63dc9570f6822324d665bc1658cfcb446554 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 18:44:15 2017 +0100 Allow the syntax for the endpoint to be set in the config page commit 9595a0b68e4b51d77c18e63f9940026aa1325475 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 17:17:34 2017 +0100 Use better scope values in command commit 08e2223a8d56984df826c1cd876f58b00cce8faf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:53:44 2017 +0100 Get media uploads working again commit 4c0d6861324c23afe4145c4ff9a46d8a1ecc10e9 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:09:16 2017 +0100 Show syndication targets properlu in client form and config page commit 63939316a0818c8dfa8cba9919b231c2fdad5821 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:08:40 2017 +0100 Update prism, recompress assets commit 74902237cb227e05386135fb0e2d5330b65e1c4e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:58:41 2017 +0100 Better presentation of syndication targets commit 345cda342051af406d6616a9162a75af625a64e0 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:47:12 2017 +0100 yarn upgrade commit 17de68cc8f26cc472b009bf42942778fac75c890 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:42:49 2017 +0100 composer update commit 7da78294dfdda8c68fc411ab03db65f101c7fc4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:34:56 2017 +0100 Move to using indieauth-client-php client directly, add code to get new tokens commit 0020596b52c1590936d12ec9c458b7e70a06bc8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:31:40 2017 +0100 Add routes for retreiving a new token commit ee0a6763f037629e2a97fa8536c84cbffbbbd7e2 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:30:33 2017 +0100 Show syndication targets as an unformated json string commit 765d032fa883db834a005f61dc553b3b0ef9ee8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:29:21 2017 +0100 Add a migratin for the indieweb users commit 3a5c458f132cf6c308c2e83eb57c61ae64cc2b48 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:28:51 2017 +0100 Add a normlize_url helper function commit fb71bd6418e7903b7d50a90dd600a82a8af03d38 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:27:41 2017 +0100 Add a token to the users table commit 56df9e8aa453394f8b83e8f6a28cc41c66d172f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:18:06 2017 +0100 Set default values for config screen commit 0df8217a82cac91c3129acc492b73d6e8cb69b44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:17:14 2017 +0100 Use the helper function to normalize URLs commit d5f882972ec43e766ae7b9288b1ab3645dd471cf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:15:41 2017 +0100 In a dev environment automatically log in as the pre-created user commit 2c3379d0e560226a4db181e7d45ce02b575990ae Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:14:13 2017 +0100 Add a default user of me commit 5c955803a8218c477e2f2b126811e6bed5f20379 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:13:08 2017 +0100 Add a helpers file, currently only has a function to normalize URLs commit ae052d305c835952c83602d305cfdb08d5be975e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Mar 31 16:08:30 2017 +0100 Allow a user to register/login with his domain commit 638ab8085f18c1bdf9c036c0272a8e88079013f5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Mar 28 16:51:42 2017 +0100 Work on allowing people to “register” for the client
2017-04-21 16:38:39 +01:00
'Authorization' => 'Bearer ' . $user->token,
],
'multipart' => [
[
'name' => 'file',
'contents' => fopen($file->path(), 'r'),
'filename' => $file->getClientOriginalName(),
],
],
]);
} catch (ClientException | ServerException $e) {
continue;
}
$mediaURLs[] = $response->getHeader('Location')[0];
}
$storedMediaURLs = $request->session()->get('media-links') ?? [];
$mediaURLsToSave = array_merge($storedMediaURLs, $mediaURLs);
$request->session()->put('media-links', $mediaURLsToSave);
return redirect()->route('micropub-client');
}
public function clearLinks(Request $request)
{
$request->session()->forget('media-links');
return redirect(route('micropub-client'));
2016-05-19 15:01:28 +01:00
}
/**
* Post the notes content to the relavent micropub API endpoint.
*
* @todo make sure this works with multiple syndication targets
*
* @param \Illuminate\Http\Request $request
* @return mixed
*/
public function store(Request $request)
2016-05-19 15:01:28 +01:00
{
Squashed commit of the following: commit 1eecb177b6d5aed8fd7ced14ba5a3fb8d528521b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:19:29 2017 +0100 Fix some Style issues commit 490ca7b8e90b08ad1e59714e09ba49a853cb753e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:06:13 2017 +0100 Run check on POST as well GET methods commit fb588798ce4e6548a0e0be8ec00673b24a41fe40 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:04:47 2017 +0100 Check for exceptions when validating token commit da2ce1a2893c03ae058c07361d860f4e509ac0ee Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:57:27 2017 +0100 Go back to doing all dusk tests commit c34fbf519a0cc528c49e8d5d9628a8891540c294 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:53:17 2017 +0100 Don’t check for error message now commit bd48859f7faf279296c0a15f2f6b18f83a951ebd Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:49:23 2017 +0100 Escape the facade call with backslash commit fcb405d8caf0d23cb70abb67da35cc68e2e86e4f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:43:19 2017 +0100 Regenerate the token within dusk commit 8732f100a075742802447e65a2ba56b7cc69149a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:36:39 2017 +0100 Slight refactor of token verification commit cb0ec39bba5765d55ad024fe3d73ad81877034da Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:29:46 2017 +0100 Stupid forgetting to root the namespace commit 1f2b309d7e77ff195ac8a4aa2f755044d15b4b92 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:22:54 2017 +0100 Try throwing my own exception commit 41dab30389cd04746051b8552e605eb3693ad0f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:12:18 2017 +0100 Checked headers commit 5eb12543adf999c4887a1e63b8d174fb7321202b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:08:37 2017 +0100 Don’t catch exceptions commit 71dbf8d08a7eed9f3795f06811431b7a3c2ddd6c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:00:22 2017 +0100 Log headers for request commit 1109a394456dd07375ccfab5a8436a902f3b27ce Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:54:19 2017 +0100 Add laravels own logs to the artifacts commit f6cd9ee81385bf4366e0e59fc6c34c9b56b6e52c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:38:18 2017 +0100 Log error commit dadf3b3150c74d2199a87a529151d55fc1e67394 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:33:14 2017 +0100 Look for different error message commit 9df2d1b831e6c65283fb5438967f4517752c31ac Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:24:15 2017 +0100 Look for different error message commit 090736735fe3cc5fb4076b77730f7e39bc92d80c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:14:14 2017 +0100 Just checking error message commit 6a766b1bc4af3dd0e335b3f57287086a6e528340 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:08:16 2017 +0100 Look for error message commit a399af496a440e30a0c0a1d4050121b3e491e968 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:00:29 2017 +0100 Simpler setup of php error log commit 3472c48ed50466c2d150e727cb6c1e43b1298d4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:45:11 2017 +0100 Set the php error log commit 978c17f33e2d9c3dd5166744aef924bf21483737 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:37:04 2017 +0100 Set the php-fpm error log commit 0e3407a4781f83bf3c516578a4594eff92b9d4d8 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:18:45 2017 +0100 Save a token for the user commit 951fe7966e18ac9e38526b6dfdc4a75fd4d68a0c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:56:49 2017 +0100 Use the right phrase commit faedc802a46c35b3b9264348ebbd895f4d2b3895 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:41:03 2017 +0100 Easier phrase to find in log commit 71b3c905bb4be0943254e51604af1293cc63cd0f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:35:07 2017 +0100 Check we are logged in commit fd6e3c79f13b9aada395a53b367e316936787298 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:20:14 2017 +0100 Cleanup output commit 231ac5868070f232f5bd455f0d6070621da9ae91 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:00:36 2017 +0100 Try pausing test before running second check commit 754cbafacdb8dd46db2eee699b8e23009c7d0bf5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 20 13:15:10 2017 +0100 Temporary fix for TLS issues on travis-ci and sensiolab’s security checker commit 8e03bba917ca9ba951bac5197e0008ae7188e19a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:24:51 2017 +0100 Use less strict check on no auth endpoint being found commit 91ee495ae1302f269febdd0e14ecbe81222b1014 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:23:44 2017 +0100 Use newer scope values in token commit 989a242b4ff271f4ac6ee0873dc2924506c0efcf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:30:53 2017 +0100 Missed some array syntax commit 92d11c9a62c2a122b4fef62da8af6bf4be23288d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:21:43 2017 +0100 Fix some styleci issues commit 3a3aa8daca981561594cf3fb542c3e240b174013 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:50:31 2017 +0100 Allow client to send request with JSON syntax, cleanup a but of other code commit dcc3baf2dc554175fdd1de408cb4f7170a6540d4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:47:51 2017 +0100 composer update commit b89dbb6b7a4940b5eed30727f0bd67bc382d98bc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 14 09:50:39 2017 +0100 wip commit 87eb63dc9570f6822324d665bc1658cfcb446554 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 18:44:15 2017 +0100 Allow the syntax for the endpoint to be set in the config page commit 9595a0b68e4b51d77c18e63f9940026aa1325475 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 17:17:34 2017 +0100 Use better scope values in command commit 08e2223a8d56984df826c1cd876f58b00cce8faf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:53:44 2017 +0100 Get media uploads working again commit 4c0d6861324c23afe4145c4ff9a46d8a1ecc10e9 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:09:16 2017 +0100 Show syndication targets properlu in client form and config page commit 63939316a0818c8dfa8cba9919b231c2fdad5821 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:08:40 2017 +0100 Update prism, recompress assets commit 74902237cb227e05386135fb0e2d5330b65e1c4e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:58:41 2017 +0100 Better presentation of syndication targets commit 345cda342051af406d6616a9162a75af625a64e0 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:47:12 2017 +0100 yarn upgrade commit 17de68cc8f26cc472b009bf42942778fac75c890 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:42:49 2017 +0100 composer update commit 7da78294dfdda8c68fc411ab03db65f101c7fc4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:34:56 2017 +0100 Move to using indieauth-client-php client directly, add code to get new tokens commit 0020596b52c1590936d12ec9c458b7e70a06bc8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:31:40 2017 +0100 Add routes for retreiving a new token commit ee0a6763f037629e2a97fa8536c84cbffbbbd7e2 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:30:33 2017 +0100 Show syndication targets as an unformated json string commit 765d032fa883db834a005f61dc553b3b0ef9ee8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:29:21 2017 +0100 Add a migratin for the indieweb users commit 3a5c458f132cf6c308c2e83eb57c61ae64cc2b48 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:28:51 2017 +0100 Add a normlize_url helper function commit fb71bd6418e7903b7d50a90dd600a82a8af03d38 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:27:41 2017 +0100 Add a token to the users table commit 56df9e8aa453394f8b83e8f6a28cc41c66d172f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:18:06 2017 +0100 Set default values for config screen commit 0df8217a82cac91c3129acc492b73d6e8cb69b44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:17:14 2017 +0100 Use the helper function to normalize URLs commit d5f882972ec43e766ae7b9288b1ab3645dd471cf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:15:41 2017 +0100 In a dev environment automatically log in as the pre-created user commit 2c3379d0e560226a4db181e7d45ce02b575990ae Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:14:13 2017 +0100 Add a default user of me commit 5c955803a8218c477e2f2b126811e6bed5f20379 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:13:08 2017 +0100 Add a helpers file, currently only has a function to normalize URLs commit ae052d305c835952c83602d305cfdb08d5be975e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Mar 31 16:08:30 2017 +0100 Allow a user to register/login with his domain commit 638ab8085f18c1bdf9c036c0272a8e88079013f5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Mar 28 16:51:42 2017 +0100 Work on allowing people to “register” for the client
2017-04-21 16:38:39 +01:00
$url = normalize_url($request->session()->get('me'));
$user = IndieWebUser::where('me', $url)->firstOrFail();
2016-05-19 15:01:28 +01:00
Squashed commit of the following: commit 1eecb177b6d5aed8fd7ced14ba5a3fb8d528521b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:19:29 2017 +0100 Fix some Style issues commit 490ca7b8e90b08ad1e59714e09ba49a853cb753e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:06:13 2017 +0100 Run check on POST as well GET methods commit fb588798ce4e6548a0e0be8ec00673b24a41fe40 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:04:47 2017 +0100 Check for exceptions when validating token commit da2ce1a2893c03ae058c07361d860f4e509ac0ee Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:57:27 2017 +0100 Go back to doing all dusk tests commit c34fbf519a0cc528c49e8d5d9628a8891540c294 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:53:17 2017 +0100 Don’t check for error message now commit bd48859f7faf279296c0a15f2f6b18f83a951ebd Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:49:23 2017 +0100 Escape the facade call with backslash commit fcb405d8caf0d23cb70abb67da35cc68e2e86e4f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:43:19 2017 +0100 Regenerate the token within dusk commit 8732f100a075742802447e65a2ba56b7cc69149a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:36:39 2017 +0100 Slight refactor of token verification commit cb0ec39bba5765d55ad024fe3d73ad81877034da Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:29:46 2017 +0100 Stupid forgetting to root the namespace commit 1f2b309d7e77ff195ac8a4aa2f755044d15b4b92 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:22:54 2017 +0100 Try throwing my own exception commit 41dab30389cd04746051b8552e605eb3693ad0f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:12:18 2017 +0100 Checked headers commit 5eb12543adf999c4887a1e63b8d174fb7321202b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:08:37 2017 +0100 Don’t catch exceptions commit 71dbf8d08a7eed9f3795f06811431b7a3c2ddd6c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:00:22 2017 +0100 Log headers for request commit 1109a394456dd07375ccfab5a8436a902f3b27ce Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:54:19 2017 +0100 Add laravels own logs to the artifacts commit f6cd9ee81385bf4366e0e59fc6c34c9b56b6e52c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:38:18 2017 +0100 Log error commit dadf3b3150c74d2199a87a529151d55fc1e67394 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:33:14 2017 +0100 Look for different error message commit 9df2d1b831e6c65283fb5438967f4517752c31ac Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:24:15 2017 +0100 Look for different error message commit 090736735fe3cc5fb4076b77730f7e39bc92d80c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:14:14 2017 +0100 Just checking error message commit 6a766b1bc4af3dd0e335b3f57287086a6e528340 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:08:16 2017 +0100 Look for error message commit a399af496a440e30a0c0a1d4050121b3e491e968 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:00:29 2017 +0100 Simpler setup of php error log commit 3472c48ed50466c2d150e727cb6c1e43b1298d4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:45:11 2017 +0100 Set the php error log commit 978c17f33e2d9c3dd5166744aef924bf21483737 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:37:04 2017 +0100 Set the php-fpm error log commit 0e3407a4781f83bf3c516578a4594eff92b9d4d8 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:18:45 2017 +0100 Save a token for the user commit 951fe7966e18ac9e38526b6dfdc4a75fd4d68a0c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:56:49 2017 +0100 Use the right phrase commit faedc802a46c35b3b9264348ebbd895f4d2b3895 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:41:03 2017 +0100 Easier phrase to find in log commit 71b3c905bb4be0943254e51604af1293cc63cd0f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:35:07 2017 +0100 Check we are logged in commit fd6e3c79f13b9aada395a53b367e316936787298 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:20:14 2017 +0100 Cleanup output commit 231ac5868070f232f5bd455f0d6070621da9ae91 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:00:36 2017 +0100 Try pausing test before running second check commit 754cbafacdb8dd46db2eee699b8e23009c7d0bf5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 20 13:15:10 2017 +0100 Temporary fix for TLS issues on travis-ci and sensiolab’s security checker commit 8e03bba917ca9ba951bac5197e0008ae7188e19a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:24:51 2017 +0100 Use less strict check on no auth endpoint being found commit 91ee495ae1302f269febdd0e14ecbe81222b1014 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:23:44 2017 +0100 Use newer scope values in token commit 989a242b4ff271f4ac6ee0873dc2924506c0efcf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:30:53 2017 +0100 Missed some array syntax commit 92d11c9a62c2a122b4fef62da8af6bf4be23288d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:21:43 2017 +0100 Fix some styleci issues commit 3a3aa8daca981561594cf3fb542c3e240b174013 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:50:31 2017 +0100 Allow client to send request with JSON syntax, cleanup a but of other code commit dcc3baf2dc554175fdd1de408cb4f7170a6540d4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:47:51 2017 +0100 composer update commit b89dbb6b7a4940b5eed30727f0bd67bc382d98bc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 14 09:50:39 2017 +0100 wip commit 87eb63dc9570f6822324d665bc1658cfcb446554 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 18:44:15 2017 +0100 Allow the syntax for the endpoint to be set in the config page commit 9595a0b68e4b51d77c18e63f9940026aa1325475 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 17:17:34 2017 +0100 Use better scope values in command commit 08e2223a8d56984df826c1cd876f58b00cce8faf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:53:44 2017 +0100 Get media uploads working again commit 4c0d6861324c23afe4145c4ff9a46d8a1ecc10e9 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:09:16 2017 +0100 Show syndication targets properlu in client form and config page commit 63939316a0818c8dfa8cba9919b231c2fdad5821 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:08:40 2017 +0100 Update prism, recompress assets commit 74902237cb227e05386135fb0e2d5330b65e1c4e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:58:41 2017 +0100 Better presentation of syndication targets commit 345cda342051af406d6616a9162a75af625a64e0 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:47:12 2017 +0100 yarn upgrade commit 17de68cc8f26cc472b009bf42942778fac75c890 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:42:49 2017 +0100 composer update commit 7da78294dfdda8c68fc411ab03db65f101c7fc4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:34:56 2017 +0100 Move to using indieauth-client-php client directly, add code to get new tokens commit 0020596b52c1590936d12ec9c458b7e70a06bc8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:31:40 2017 +0100 Add routes for retreiving a new token commit ee0a6763f037629e2a97fa8536c84cbffbbbd7e2 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:30:33 2017 +0100 Show syndication targets as an unformated json string commit 765d032fa883db834a005f61dc553b3b0ef9ee8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:29:21 2017 +0100 Add a migratin for the indieweb users commit 3a5c458f132cf6c308c2e83eb57c61ae64cc2b48 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:28:51 2017 +0100 Add a normlize_url helper function commit fb71bd6418e7903b7d50a90dd600a82a8af03d38 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:27:41 2017 +0100 Add a token to the users table commit 56df9e8aa453394f8b83e8f6a28cc41c66d172f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:18:06 2017 +0100 Set default values for config screen commit 0df8217a82cac91c3129acc492b73d6e8cb69b44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:17:14 2017 +0100 Use the helper function to normalize URLs commit d5f882972ec43e766ae7b9288b1ab3645dd471cf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:15:41 2017 +0100 In a dev environment automatically log in as the pre-created user commit 2c3379d0e560226a4db181e7d45ce02b575990ae Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:14:13 2017 +0100 Add a default user of me commit 5c955803a8218c477e2f2b126811e6bed5f20379 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:13:08 2017 +0100 Add a helpers file, currently only has a function to normalize URLs commit ae052d305c835952c83602d305cfdb08d5be975e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Mar 31 16:08:30 2017 +0100 Allow a user to register/login with his domain commit 638ab8085f18c1bdf9c036c0272a8e88079013f5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Mar 28 16:51:42 2017 +0100 Work on allowing people to “register” for the client
2017-04-21 16:38:39 +01:00
if ($user->token == null) {
return redirect()->route('micropub-client')->with('error', 'You havent requested a token yet');
Squashed commit of the following: commit 1eecb177b6d5aed8fd7ced14ba5a3fb8d528521b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:19:29 2017 +0100 Fix some Style issues commit 490ca7b8e90b08ad1e59714e09ba49a853cb753e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:06:13 2017 +0100 Run check on POST as well GET methods commit fb588798ce4e6548a0e0be8ec00673b24a41fe40 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:04:47 2017 +0100 Check for exceptions when validating token commit da2ce1a2893c03ae058c07361d860f4e509ac0ee Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:57:27 2017 +0100 Go back to doing all dusk tests commit c34fbf519a0cc528c49e8d5d9628a8891540c294 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:53:17 2017 +0100 Don’t check for error message now commit bd48859f7faf279296c0a15f2f6b18f83a951ebd Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:49:23 2017 +0100 Escape the facade call with backslash commit fcb405d8caf0d23cb70abb67da35cc68e2e86e4f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:43:19 2017 +0100 Regenerate the token within dusk commit 8732f100a075742802447e65a2ba56b7cc69149a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:36:39 2017 +0100 Slight refactor of token verification commit cb0ec39bba5765d55ad024fe3d73ad81877034da Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:29:46 2017 +0100 Stupid forgetting to root the namespace commit 1f2b309d7e77ff195ac8a4aa2f755044d15b4b92 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:22:54 2017 +0100 Try throwing my own exception commit 41dab30389cd04746051b8552e605eb3693ad0f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:12:18 2017 +0100 Checked headers commit 5eb12543adf999c4887a1e63b8d174fb7321202b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:08:37 2017 +0100 Don’t catch exceptions commit 71dbf8d08a7eed9f3795f06811431b7a3c2ddd6c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:00:22 2017 +0100 Log headers for request commit 1109a394456dd07375ccfab5a8436a902f3b27ce Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:54:19 2017 +0100 Add laravels own logs to the artifacts commit f6cd9ee81385bf4366e0e59fc6c34c9b56b6e52c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:38:18 2017 +0100 Log error commit dadf3b3150c74d2199a87a529151d55fc1e67394 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:33:14 2017 +0100 Look for different error message commit 9df2d1b831e6c65283fb5438967f4517752c31ac Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:24:15 2017 +0100 Look for different error message commit 090736735fe3cc5fb4076b77730f7e39bc92d80c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:14:14 2017 +0100 Just checking error message commit 6a766b1bc4af3dd0e335b3f57287086a6e528340 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:08:16 2017 +0100 Look for error message commit a399af496a440e30a0c0a1d4050121b3e491e968 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:00:29 2017 +0100 Simpler setup of php error log commit 3472c48ed50466c2d150e727cb6c1e43b1298d4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:45:11 2017 +0100 Set the php error log commit 978c17f33e2d9c3dd5166744aef924bf21483737 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:37:04 2017 +0100 Set the php-fpm error log commit 0e3407a4781f83bf3c516578a4594eff92b9d4d8 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:18:45 2017 +0100 Save a token for the user commit 951fe7966e18ac9e38526b6dfdc4a75fd4d68a0c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:56:49 2017 +0100 Use the right phrase commit faedc802a46c35b3b9264348ebbd895f4d2b3895 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:41:03 2017 +0100 Easier phrase to find in log commit 71b3c905bb4be0943254e51604af1293cc63cd0f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:35:07 2017 +0100 Check we are logged in commit fd6e3c79f13b9aada395a53b367e316936787298 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:20:14 2017 +0100 Cleanup output commit 231ac5868070f232f5bd455f0d6070621da9ae91 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:00:36 2017 +0100 Try pausing test before running second check commit 754cbafacdb8dd46db2eee699b8e23009c7d0bf5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 20 13:15:10 2017 +0100 Temporary fix for TLS issues on travis-ci and sensiolab’s security checker commit 8e03bba917ca9ba951bac5197e0008ae7188e19a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:24:51 2017 +0100 Use less strict check on no auth endpoint being found commit 91ee495ae1302f269febdd0e14ecbe81222b1014 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:23:44 2017 +0100 Use newer scope values in token commit 989a242b4ff271f4ac6ee0873dc2924506c0efcf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:30:53 2017 +0100 Missed some array syntax commit 92d11c9a62c2a122b4fef62da8af6bf4be23288d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:21:43 2017 +0100 Fix some styleci issues commit 3a3aa8daca981561594cf3fb542c3e240b174013 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:50:31 2017 +0100 Allow client to send request with JSON syntax, cleanup a but of other code commit dcc3baf2dc554175fdd1de408cb4f7170a6540d4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:47:51 2017 +0100 composer update commit b89dbb6b7a4940b5eed30727f0bd67bc382d98bc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 14 09:50:39 2017 +0100 wip commit 87eb63dc9570f6822324d665bc1658cfcb446554 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 18:44:15 2017 +0100 Allow the syntax for the endpoint to be set in the config page commit 9595a0b68e4b51d77c18e63f9940026aa1325475 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 17:17:34 2017 +0100 Use better scope values in command commit 08e2223a8d56984df826c1cd876f58b00cce8faf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:53:44 2017 +0100 Get media uploads working again commit 4c0d6861324c23afe4145c4ff9a46d8a1ecc10e9 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:09:16 2017 +0100 Show syndication targets properlu in client form and config page commit 63939316a0818c8dfa8cba9919b231c2fdad5821 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:08:40 2017 +0100 Update prism, recompress assets commit 74902237cb227e05386135fb0e2d5330b65e1c4e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:58:41 2017 +0100 Better presentation of syndication targets commit 345cda342051af406d6616a9162a75af625a64e0 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:47:12 2017 +0100 yarn upgrade commit 17de68cc8f26cc472b009bf42942778fac75c890 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:42:49 2017 +0100 composer update commit 7da78294dfdda8c68fc411ab03db65f101c7fc4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:34:56 2017 +0100 Move to using indieauth-client-php client directly, add code to get new tokens commit 0020596b52c1590936d12ec9c458b7e70a06bc8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:31:40 2017 +0100 Add routes for retreiving a new token commit ee0a6763f037629e2a97fa8536c84cbffbbbd7e2 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:30:33 2017 +0100 Show syndication targets as an unformated json string commit 765d032fa883db834a005f61dc553b3b0ef9ee8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:29:21 2017 +0100 Add a migratin for the indieweb users commit 3a5c458f132cf6c308c2e83eb57c61ae64cc2b48 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:28:51 2017 +0100 Add a normlize_url helper function commit fb71bd6418e7903b7d50a90dd600a82a8af03d38 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:27:41 2017 +0100 Add a token to the users table commit 56df9e8aa453394f8b83e8f6a28cc41c66d172f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:18:06 2017 +0100 Set default values for config screen commit 0df8217a82cac91c3129acc492b73d6e8cb69b44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:17:14 2017 +0100 Use the helper function to normalize URLs commit d5f882972ec43e766ae7b9288b1ab3645dd471cf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:15:41 2017 +0100 In a dev environment automatically log in as the pre-created user commit 2c3379d0e560226a4db181e7d45ce02b575990ae Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:14:13 2017 +0100 Add a default user of me commit 5c955803a8218c477e2f2b126811e6bed5f20379 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:13:08 2017 +0100 Add a helpers file, currently only has a function to normalize URLs commit ae052d305c835952c83602d305cfdb08d5be975e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Mar 31 16:08:30 2017 +0100 Allow a user to register/login with his domain commit 638ab8085f18c1bdf9c036c0272a8e88079013f5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Mar 28 16:51:42 2017 +0100 Work on allowing people to “register” for the client
2017-04-21 16:38:39 +01:00
}
$micropubEndpoint = $this->indieClient->discoverMicropubEndpoint($url);
2016-05-19 15:01:28 +01:00
if (! $micropubEndpoint) {
return redirect()->route('micropub-client')->with('error', 'Unable to determine micropub API endpoint');
2016-05-19 15:01:28 +01:00
}
Squashed commit of the following: commit 1eecb177b6d5aed8fd7ced14ba5a3fb8d528521b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:19:29 2017 +0100 Fix some Style issues commit 490ca7b8e90b08ad1e59714e09ba49a853cb753e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:06:13 2017 +0100 Run check on POST as well GET methods commit fb588798ce4e6548a0e0be8ec00673b24a41fe40 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:04:47 2017 +0100 Check for exceptions when validating token commit da2ce1a2893c03ae058c07361d860f4e509ac0ee Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:57:27 2017 +0100 Go back to doing all dusk tests commit c34fbf519a0cc528c49e8d5d9628a8891540c294 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:53:17 2017 +0100 Don’t check for error message now commit bd48859f7faf279296c0a15f2f6b18f83a951ebd Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:49:23 2017 +0100 Escape the facade call with backslash commit fcb405d8caf0d23cb70abb67da35cc68e2e86e4f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:43:19 2017 +0100 Regenerate the token within dusk commit 8732f100a075742802447e65a2ba56b7cc69149a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:36:39 2017 +0100 Slight refactor of token verification commit cb0ec39bba5765d55ad024fe3d73ad81877034da Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:29:46 2017 +0100 Stupid forgetting to root the namespace commit 1f2b309d7e77ff195ac8a4aa2f755044d15b4b92 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:22:54 2017 +0100 Try throwing my own exception commit 41dab30389cd04746051b8552e605eb3693ad0f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:12:18 2017 +0100 Checked headers commit 5eb12543adf999c4887a1e63b8d174fb7321202b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:08:37 2017 +0100 Don’t catch exceptions commit 71dbf8d08a7eed9f3795f06811431b7a3c2ddd6c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:00:22 2017 +0100 Log headers for request commit 1109a394456dd07375ccfab5a8436a902f3b27ce Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:54:19 2017 +0100 Add laravels own logs to the artifacts commit f6cd9ee81385bf4366e0e59fc6c34c9b56b6e52c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:38:18 2017 +0100 Log error commit dadf3b3150c74d2199a87a529151d55fc1e67394 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:33:14 2017 +0100 Look for different error message commit 9df2d1b831e6c65283fb5438967f4517752c31ac Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:24:15 2017 +0100 Look for different error message commit 090736735fe3cc5fb4076b77730f7e39bc92d80c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:14:14 2017 +0100 Just checking error message commit 6a766b1bc4af3dd0e335b3f57287086a6e528340 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:08:16 2017 +0100 Look for error message commit a399af496a440e30a0c0a1d4050121b3e491e968 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:00:29 2017 +0100 Simpler setup of php error log commit 3472c48ed50466c2d150e727cb6c1e43b1298d4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:45:11 2017 +0100 Set the php error log commit 978c17f33e2d9c3dd5166744aef924bf21483737 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:37:04 2017 +0100 Set the php-fpm error log commit 0e3407a4781f83bf3c516578a4594eff92b9d4d8 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:18:45 2017 +0100 Save a token for the user commit 951fe7966e18ac9e38526b6dfdc4a75fd4d68a0c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:56:49 2017 +0100 Use the right phrase commit faedc802a46c35b3b9264348ebbd895f4d2b3895 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:41:03 2017 +0100 Easier phrase to find in log commit 71b3c905bb4be0943254e51604af1293cc63cd0f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:35:07 2017 +0100 Check we are logged in commit fd6e3c79f13b9aada395a53b367e316936787298 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:20:14 2017 +0100 Cleanup output commit 231ac5868070f232f5bd455f0d6070621da9ae91 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:00:36 2017 +0100 Try pausing test before running second check commit 754cbafacdb8dd46db2eee699b8e23009c7d0bf5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 20 13:15:10 2017 +0100 Temporary fix for TLS issues on travis-ci and sensiolab’s security checker commit 8e03bba917ca9ba951bac5197e0008ae7188e19a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:24:51 2017 +0100 Use less strict check on no auth endpoint being found commit 91ee495ae1302f269febdd0e14ecbe81222b1014 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:23:44 2017 +0100 Use newer scope values in token commit 989a242b4ff271f4ac6ee0873dc2924506c0efcf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:30:53 2017 +0100 Missed some array syntax commit 92d11c9a62c2a122b4fef62da8af6bf4be23288d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:21:43 2017 +0100 Fix some styleci issues commit 3a3aa8daca981561594cf3fb542c3e240b174013 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:50:31 2017 +0100 Allow client to send request with JSON syntax, cleanup a but of other code commit dcc3baf2dc554175fdd1de408cb4f7170a6540d4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:47:51 2017 +0100 composer update commit b89dbb6b7a4940b5eed30727f0bd67bc382d98bc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 14 09:50:39 2017 +0100 wip commit 87eb63dc9570f6822324d665bc1658cfcb446554 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 18:44:15 2017 +0100 Allow the syntax for the endpoint to be set in the config page commit 9595a0b68e4b51d77c18e63f9940026aa1325475 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 17:17:34 2017 +0100 Use better scope values in command commit 08e2223a8d56984df826c1cd876f58b00cce8faf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:53:44 2017 +0100 Get media uploads working again commit 4c0d6861324c23afe4145c4ff9a46d8a1ecc10e9 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:09:16 2017 +0100 Show syndication targets properlu in client form and config page commit 63939316a0818c8dfa8cba9919b231c2fdad5821 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:08:40 2017 +0100 Update prism, recompress assets commit 74902237cb227e05386135fb0e2d5330b65e1c4e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:58:41 2017 +0100 Better presentation of syndication targets commit 345cda342051af406d6616a9162a75af625a64e0 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:47:12 2017 +0100 yarn upgrade commit 17de68cc8f26cc472b009bf42942778fac75c890 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:42:49 2017 +0100 composer update commit 7da78294dfdda8c68fc411ab03db65f101c7fc4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:34:56 2017 +0100 Move to using indieauth-client-php client directly, add code to get new tokens commit 0020596b52c1590936d12ec9c458b7e70a06bc8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:31:40 2017 +0100 Add routes for retreiving a new token commit ee0a6763f037629e2a97fa8536c84cbffbbbd7e2 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:30:33 2017 +0100 Show syndication targets as an unformated json string commit 765d032fa883db834a005f61dc553b3b0ef9ee8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:29:21 2017 +0100 Add a migratin for the indieweb users commit 3a5c458f132cf6c308c2e83eb57c61ae64cc2b48 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:28:51 2017 +0100 Add a normlize_url helper function commit fb71bd6418e7903b7d50a90dd600a82a8af03d38 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:27:41 2017 +0100 Add a token to the users table commit 56df9e8aa453394f8b83e8f6a28cc41c66d172f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:18:06 2017 +0100 Set default values for config screen commit 0df8217a82cac91c3129acc492b73d6e8cb69b44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:17:14 2017 +0100 Use the helper function to normalize URLs commit d5f882972ec43e766ae7b9288b1ab3645dd471cf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:15:41 2017 +0100 In a dev environment automatically log in as the pre-created user commit 2c3379d0e560226a4db181e7d45ce02b575990ae Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:14:13 2017 +0100 Add a default user of me commit 5c955803a8218c477e2f2b126811e6bed5f20379 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:13:08 2017 +0100 Add a helpers file, currently only has a function to normalize URLs commit ae052d305c835952c83602d305cfdb08d5be975e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Mar 31 16:08:30 2017 +0100 Allow a user to register/login with his domain commit 638ab8085f18c1bdf9c036c0272a8e88079013f5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Mar 28 16:51:42 2017 +0100 Work on allowing people to “register” for the client
2017-04-21 16:38:39 +01:00
$headers = [
'Authorization' => 'Bearer ' . $user->token,
];
2016-05-19 15:01:28 +01:00
Squashed commit of the following: commit 1eecb177b6d5aed8fd7ced14ba5a3fb8d528521b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:19:29 2017 +0100 Fix some Style issues commit 490ca7b8e90b08ad1e59714e09ba49a853cb753e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:06:13 2017 +0100 Run check on POST as well GET methods commit fb588798ce4e6548a0e0be8ec00673b24a41fe40 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:04:47 2017 +0100 Check for exceptions when validating token commit da2ce1a2893c03ae058c07361d860f4e509ac0ee Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:57:27 2017 +0100 Go back to doing all dusk tests commit c34fbf519a0cc528c49e8d5d9628a8891540c294 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:53:17 2017 +0100 Don’t check for error message now commit bd48859f7faf279296c0a15f2f6b18f83a951ebd Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:49:23 2017 +0100 Escape the facade call with backslash commit fcb405d8caf0d23cb70abb67da35cc68e2e86e4f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:43:19 2017 +0100 Regenerate the token within dusk commit 8732f100a075742802447e65a2ba56b7cc69149a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:36:39 2017 +0100 Slight refactor of token verification commit cb0ec39bba5765d55ad024fe3d73ad81877034da Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:29:46 2017 +0100 Stupid forgetting to root the namespace commit 1f2b309d7e77ff195ac8a4aa2f755044d15b4b92 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:22:54 2017 +0100 Try throwing my own exception commit 41dab30389cd04746051b8552e605eb3693ad0f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:12:18 2017 +0100 Checked headers commit 5eb12543adf999c4887a1e63b8d174fb7321202b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:08:37 2017 +0100 Don’t catch exceptions commit 71dbf8d08a7eed9f3795f06811431b7a3c2ddd6c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:00:22 2017 +0100 Log headers for request commit 1109a394456dd07375ccfab5a8436a902f3b27ce Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:54:19 2017 +0100 Add laravels own logs to the artifacts commit f6cd9ee81385bf4366e0e59fc6c34c9b56b6e52c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:38:18 2017 +0100 Log error commit dadf3b3150c74d2199a87a529151d55fc1e67394 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:33:14 2017 +0100 Look for different error message commit 9df2d1b831e6c65283fb5438967f4517752c31ac Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:24:15 2017 +0100 Look for different error message commit 090736735fe3cc5fb4076b77730f7e39bc92d80c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:14:14 2017 +0100 Just checking error message commit 6a766b1bc4af3dd0e335b3f57287086a6e528340 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:08:16 2017 +0100 Look for error message commit a399af496a440e30a0c0a1d4050121b3e491e968 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:00:29 2017 +0100 Simpler setup of php error log commit 3472c48ed50466c2d150e727cb6c1e43b1298d4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:45:11 2017 +0100 Set the php error log commit 978c17f33e2d9c3dd5166744aef924bf21483737 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:37:04 2017 +0100 Set the php-fpm error log commit 0e3407a4781f83bf3c516578a4594eff92b9d4d8 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:18:45 2017 +0100 Save a token for the user commit 951fe7966e18ac9e38526b6dfdc4a75fd4d68a0c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:56:49 2017 +0100 Use the right phrase commit faedc802a46c35b3b9264348ebbd895f4d2b3895 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:41:03 2017 +0100 Easier phrase to find in log commit 71b3c905bb4be0943254e51604af1293cc63cd0f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:35:07 2017 +0100 Check we are logged in commit fd6e3c79f13b9aada395a53b367e316936787298 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:20:14 2017 +0100 Cleanup output commit 231ac5868070f232f5bd455f0d6070621da9ae91 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:00:36 2017 +0100 Try pausing test before running second check commit 754cbafacdb8dd46db2eee699b8e23009c7d0bf5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 20 13:15:10 2017 +0100 Temporary fix for TLS issues on travis-ci and sensiolab’s security checker commit 8e03bba917ca9ba951bac5197e0008ae7188e19a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:24:51 2017 +0100 Use less strict check on no auth endpoint being found commit 91ee495ae1302f269febdd0e14ecbe81222b1014 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:23:44 2017 +0100 Use newer scope values in token commit 989a242b4ff271f4ac6ee0873dc2924506c0efcf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:30:53 2017 +0100 Missed some array syntax commit 92d11c9a62c2a122b4fef62da8af6bf4be23288d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:21:43 2017 +0100 Fix some styleci issues commit 3a3aa8daca981561594cf3fb542c3e240b174013 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:50:31 2017 +0100 Allow client to send request with JSON syntax, cleanup a but of other code commit dcc3baf2dc554175fdd1de408cb4f7170a6540d4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:47:51 2017 +0100 composer update commit b89dbb6b7a4940b5eed30727f0bd67bc382d98bc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 14 09:50:39 2017 +0100 wip commit 87eb63dc9570f6822324d665bc1658cfcb446554 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 18:44:15 2017 +0100 Allow the syntax for the endpoint to be set in the config page commit 9595a0b68e4b51d77c18e63f9940026aa1325475 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 17:17:34 2017 +0100 Use better scope values in command commit 08e2223a8d56984df826c1cd876f58b00cce8faf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:53:44 2017 +0100 Get media uploads working again commit 4c0d6861324c23afe4145c4ff9a46d8a1ecc10e9 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:09:16 2017 +0100 Show syndication targets properlu in client form and config page commit 63939316a0818c8dfa8cba9919b231c2fdad5821 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:08:40 2017 +0100 Update prism, recompress assets commit 74902237cb227e05386135fb0e2d5330b65e1c4e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:58:41 2017 +0100 Better presentation of syndication targets commit 345cda342051af406d6616a9162a75af625a64e0 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:47:12 2017 +0100 yarn upgrade commit 17de68cc8f26cc472b009bf42942778fac75c890 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:42:49 2017 +0100 composer update commit 7da78294dfdda8c68fc411ab03db65f101c7fc4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:34:56 2017 +0100 Move to using indieauth-client-php client directly, add code to get new tokens commit 0020596b52c1590936d12ec9c458b7e70a06bc8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:31:40 2017 +0100 Add routes for retreiving a new token commit ee0a6763f037629e2a97fa8536c84cbffbbbd7e2 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:30:33 2017 +0100 Show syndication targets as an unformated json string commit 765d032fa883db834a005f61dc553b3b0ef9ee8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:29:21 2017 +0100 Add a migratin for the indieweb users commit 3a5c458f132cf6c308c2e83eb57c61ae64cc2b48 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:28:51 2017 +0100 Add a normlize_url helper function commit fb71bd6418e7903b7d50a90dd600a82a8af03d38 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:27:41 2017 +0100 Add a token to the users table commit 56df9e8aa453394f8b83e8f6a28cc41c66d172f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:18:06 2017 +0100 Set default values for config screen commit 0df8217a82cac91c3129acc492b73d6e8cb69b44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:17:14 2017 +0100 Use the helper function to normalize URLs commit d5f882972ec43e766ae7b9288b1ab3645dd471cf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:15:41 2017 +0100 In a dev environment automatically log in as the pre-created user commit 2c3379d0e560226a4db181e7d45ce02b575990ae Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:14:13 2017 +0100 Add a default user of me commit 5c955803a8218c477e2f2b126811e6bed5f20379 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:13:08 2017 +0100 Add a helpers file, currently only has a function to normalize URLs commit ae052d305c835952c83602d305cfdb08d5be975e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Mar 31 16:08:30 2017 +0100 Allow a user to register/login with his domain commit 638ab8085f18c1bdf9c036c0272a8e88079013f5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Mar 28 16:51:42 2017 +0100 Work on allowing people to “register” for the client
2017-04-21 16:38:39 +01:00
if ($user->syntax == 'html') {
$multipart = [
[
'name' => 'h',
'contents' => 'entry',
],
[
'name' => 'content',
'contents' => $request->input('content'),
],
];
if ($request->hasFile('photo')) {
$photos = $request->file('photo');
foreach ($photos as $photo) {
$multipart[] = [
'name' => 'photo[]',
'contents' => fopen($photo->path(), 'r'),
'filename' => $photo->getClientOriginalName(),
];
}
}
if ($request->input('in-reply-to') != '') {
$multipart[] = [
'name' => 'in-reply-to',
'contents' => $request->input('in-reply-to'),
];
}
if ($request->input('mp-syndicate-to')) {
foreach ($request->input('mp-syndicate-to') as $syn) {
$multipart[] = [
'name' => 'mp-syndicate-to[]',
'contents' => $syn,
];
}
}
if ($request->input('location')) {
if ($request->input('location') !== 'no-location') {
$multipart[] = [
'name' => 'location',
'contents' => $request->input('location'),
];
}
}
if ($request->input('media')) {
foreach ($request->input('media') as $media) {
$multipart[] = [
'name' => 'photo[]',
'contents' => $media,
];
}
}
try {
$response = $this->guzzleClient->post($micropubEndpoint, [
'multipart' => $multipart,
'headers' => $headers,
]);
} catch (\GuzzleHttp\Exception\BadResponseException $e) {
return redirect()->route('micropub-client')->with(
Squashed commit of the following: commit 1eecb177b6d5aed8fd7ced14ba5a3fb8d528521b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:19:29 2017 +0100 Fix some Style issues commit 490ca7b8e90b08ad1e59714e09ba49a853cb753e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:06:13 2017 +0100 Run check on POST as well GET methods commit fb588798ce4e6548a0e0be8ec00673b24a41fe40 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:04:47 2017 +0100 Check for exceptions when validating token commit da2ce1a2893c03ae058c07361d860f4e509ac0ee Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:57:27 2017 +0100 Go back to doing all dusk tests commit c34fbf519a0cc528c49e8d5d9628a8891540c294 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:53:17 2017 +0100 Don’t check for error message now commit bd48859f7faf279296c0a15f2f6b18f83a951ebd Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:49:23 2017 +0100 Escape the facade call with backslash commit fcb405d8caf0d23cb70abb67da35cc68e2e86e4f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:43:19 2017 +0100 Regenerate the token within dusk commit 8732f100a075742802447e65a2ba56b7cc69149a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:36:39 2017 +0100 Slight refactor of token verification commit cb0ec39bba5765d55ad024fe3d73ad81877034da Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:29:46 2017 +0100 Stupid forgetting to root the namespace commit 1f2b309d7e77ff195ac8a4aa2f755044d15b4b92 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:22:54 2017 +0100 Try throwing my own exception commit 41dab30389cd04746051b8552e605eb3693ad0f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:12:18 2017 +0100 Checked headers commit 5eb12543adf999c4887a1e63b8d174fb7321202b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:08:37 2017 +0100 Don’t catch exceptions commit 71dbf8d08a7eed9f3795f06811431b7a3c2ddd6c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:00:22 2017 +0100 Log headers for request commit 1109a394456dd07375ccfab5a8436a902f3b27ce Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:54:19 2017 +0100 Add laravels own logs to the artifacts commit f6cd9ee81385bf4366e0e59fc6c34c9b56b6e52c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:38:18 2017 +0100 Log error commit dadf3b3150c74d2199a87a529151d55fc1e67394 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:33:14 2017 +0100 Look for different error message commit 9df2d1b831e6c65283fb5438967f4517752c31ac Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:24:15 2017 +0100 Look for different error message commit 090736735fe3cc5fb4076b77730f7e39bc92d80c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:14:14 2017 +0100 Just checking error message commit 6a766b1bc4af3dd0e335b3f57287086a6e528340 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:08:16 2017 +0100 Look for error message commit a399af496a440e30a0c0a1d4050121b3e491e968 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:00:29 2017 +0100 Simpler setup of php error log commit 3472c48ed50466c2d150e727cb6c1e43b1298d4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:45:11 2017 +0100 Set the php error log commit 978c17f33e2d9c3dd5166744aef924bf21483737 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:37:04 2017 +0100 Set the php-fpm error log commit 0e3407a4781f83bf3c516578a4594eff92b9d4d8 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:18:45 2017 +0100 Save a token for the user commit 951fe7966e18ac9e38526b6dfdc4a75fd4d68a0c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:56:49 2017 +0100 Use the right phrase commit faedc802a46c35b3b9264348ebbd895f4d2b3895 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:41:03 2017 +0100 Easier phrase to find in log commit 71b3c905bb4be0943254e51604af1293cc63cd0f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:35:07 2017 +0100 Check we are logged in commit fd6e3c79f13b9aada395a53b367e316936787298 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:20:14 2017 +0100 Cleanup output commit 231ac5868070f232f5bd455f0d6070621da9ae91 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:00:36 2017 +0100 Try pausing test before running second check commit 754cbafacdb8dd46db2eee699b8e23009c7d0bf5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 20 13:15:10 2017 +0100 Temporary fix for TLS issues on travis-ci and sensiolab’s security checker commit 8e03bba917ca9ba951bac5197e0008ae7188e19a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:24:51 2017 +0100 Use less strict check on no auth endpoint being found commit 91ee495ae1302f269febdd0e14ecbe81222b1014 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:23:44 2017 +0100 Use newer scope values in token commit 989a242b4ff271f4ac6ee0873dc2924506c0efcf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:30:53 2017 +0100 Missed some array syntax commit 92d11c9a62c2a122b4fef62da8af6bf4be23288d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:21:43 2017 +0100 Fix some styleci issues commit 3a3aa8daca981561594cf3fb542c3e240b174013 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:50:31 2017 +0100 Allow client to send request with JSON syntax, cleanup a but of other code commit dcc3baf2dc554175fdd1de408cb4f7170a6540d4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:47:51 2017 +0100 composer update commit b89dbb6b7a4940b5eed30727f0bd67bc382d98bc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 14 09:50:39 2017 +0100 wip commit 87eb63dc9570f6822324d665bc1658cfcb446554 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 18:44:15 2017 +0100 Allow the syntax for the endpoint to be set in the config page commit 9595a0b68e4b51d77c18e63f9940026aa1325475 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 17:17:34 2017 +0100 Use better scope values in command commit 08e2223a8d56984df826c1cd876f58b00cce8faf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:53:44 2017 +0100 Get media uploads working again commit 4c0d6861324c23afe4145c4ff9a46d8a1ecc10e9 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:09:16 2017 +0100 Show syndication targets properlu in client form and config page commit 63939316a0818c8dfa8cba9919b231c2fdad5821 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:08:40 2017 +0100 Update prism, recompress assets commit 74902237cb227e05386135fb0e2d5330b65e1c4e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:58:41 2017 +0100 Better presentation of syndication targets commit 345cda342051af406d6616a9162a75af625a64e0 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:47:12 2017 +0100 yarn upgrade commit 17de68cc8f26cc472b009bf42942778fac75c890 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:42:49 2017 +0100 composer update commit 7da78294dfdda8c68fc411ab03db65f101c7fc4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:34:56 2017 +0100 Move to using indieauth-client-php client directly, add code to get new tokens commit 0020596b52c1590936d12ec9c458b7e70a06bc8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:31:40 2017 +0100 Add routes for retreiving a new token commit ee0a6763f037629e2a97fa8536c84cbffbbbd7e2 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:30:33 2017 +0100 Show syndication targets as an unformated json string commit 765d032fa883db834a005f61dc553b3b0ef9ee8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:29:21 2017 +0100 Add a migratin for the indieweb users commit 3a5c458f132cf6c308c2e83eb57c61ae64cc2b48 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:28:51 2017 +0100 Add a normlize_url helper function commit fb71bd6418e7903b7d50a90dd600a82a8af03d38 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:27:41 2017 +0100 Add a token to the users table commit 56df9e8aa453394f8b83e8f6a28cc41c66d172f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:18:06 2017 +0100 Set default values for config screen commit 0df8217a82cac91c3129acc492b73d6e8cb69b44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:17:14 2017 +0100 Use the helper function to normalize URLs commit d5f882972ec43e766ae7b9288b1ab3645dd471cf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:15:41 2017 +0100 In a dev environment automatically log in as the pre-created user commit 2c3379d0e560226a4db181e7d45ce02b575990ae Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:14:13 2017 +0100 Add a default user of me commit 5c955803a8218c477e2f2b126811e6bed5f20379 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:13:08 2017 +0100 Add a helpers file, currently only has a function to normalize URLs commit ae052d305c835952c83602d305cfdb08d5be975e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Mar 31 16:08:30 2017 +0100 Allow a user to register/login with his domain commit 638ab8085f18c1bdf9c036c0272a8e88079013f5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Mar 28 16:51:42 2017 +0100 Work on allowing people to “register” for the client
2017-04-21 16:38:39 +01:00
'error',
'There was a bad response from the micropub endpoint.'
);
2016-05-19 15:01:28 +01:00
}
Squashed commit of the following: commit 1eecb177b6d5aed8fd7ced14ba5a3fb8d528521b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:19:29 2017 +0100 Fix some Style issues commit 490ca7b8e90b08ad1e59714e09ba49a853cb753e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:06:13 2017 +0100 Run check on POST as well GET methods commit fb588798ce4e6548a0e0be8ec00673b24a41fe40 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:04:47 2017 +0100 Check for exceptions when validating token commit da2ce1a2893c03ae058c07361d860f4e509ac0ee Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:57:27 2017 +0100 Go back to doing all dusk tests commit c34fbf519a0cc528c49e8d5d9628a8891540c294 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:53:17 2017 +0100 Don’t check for error message now commit bd48859f7faf279296c0a15f2f6b18f83a951ebd Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:49:23 2017 +0100 Escape the facade call with backslash commit fcb405d8caf0d23cb70abb67da35cc68e2e86e4f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:43:19 2017 +0100 Regenerate the token within dusk commit 8732f100a075742802447e65a2ba56b7cc69149a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:36:39 2017 +0100 Slight refactor of token verification commit cb0ec39bba5765d55ad024fe3d73ad81877034da Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:29:46 2017 +0100 Stupid forgetting to root the namespace commit 1f2b309d7e77ff195ac8a4aa2f755044d15b4b92 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:22:54 2017 +0100 Try throwing my own exception commit 41dab30389cd04746051b8552e605eb3693ad0f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:12:18 2017 +0100 Checked headers commit 5eb12543adf999c4887a1e63b8d174fb7321202b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:08:37 2017 +0100 Don’t catch exceptions commit 71dbf8d08a7eed9f3795f06811431b7a3c2ddd6c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:00:22 2017 +0100 Log headers for request commit 1109a394456dd07375ccfab5a8436a902f3b27ce Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:54:19 2017 +0100 Add laravels own logs to the artifacts commit f6cd9ee81385bf4366e0e59fc6c34c9b56b6e52c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:38:18 2017 +0100 Log error commit dadf3b3150c74d2199a87a529151d55fc1e67394 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:33:14 2017 +0100 Look for different error message commit 9df2d1b831e6c65283fb5438967f4517752c31ac Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:24:15 2017 +0100 Look for different error message commit 090736735fe3cc5fb4076b77730f7e39bc92d80c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:14:14 2017 +0100 Just checking error message commit 6a766b1bc4af3dd0e335b3f57287086a6e528340 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:08:16 2017 +0100 Look for error message commit a399af496a440e30a0c0a1d4050121b3e491e968 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:00:29 2017 +0100 Simpler setup of php error log commit 3472c48ed50466c2d150e727cb6c1e43b1298d4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:45:11 2017 +0100 Set the php error log commit 978c17f33e2d9c3dd5166744aef924bf21483737 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:37:04 2017 +0100 Set the php-fpm error log commit 0e3407a4781f83bf3c516578a4594eff92b9d4d8 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:18:45 2017 +0100 Save a token for the user commit 951fe7966e18ac9e38526b6dfdc4a75fd4d68a0c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:56:49 2017 +0100 Use the right phrase commit faedc802a46c35b3b9264348ebbd895f4d2b3895 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:41:03 2017 +0100 Easier phrase to find in log commit 71b3c905bb4be0943254e51604af1293cc63cd0f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:35:07 2017 +0100 Check we are logged in commit fd6e3c79f13b9aada395a53b367e316936787298 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:20:14 2017 +0100 Cleanup output commit 231ac5868070f232f5bd455f0d6070621da9ae91 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:00:36 2017 +0100 Try pausing test before running second check commit 754cbafacdb8dd46db2eee699b8e23009c7d0bf5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 20 13:15:10 2017 +0100 Temporary fix for TLS issues on travis-ci and sensiolab’s security checker commit 8e03bba917ca9ba951bac5197e0008ae7188e19a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:24:51 2017 +0100 Use less strict check on no auth endpoint being found commit 91ee495ae1302f269febdd0e14ecbe81222b1014 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:23:44 2017 +0100 Use newer scope values in token commit 989a242b4ff271f4ac6ee0873dc2924506c0efcf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:30:53 2017 +0100 Missed some array syntax commit 92d11c9a62c2a122b4fef62da8af6bf4be23288d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:21:43 2017 +0100 Fix some styleci issues commit 3a3aa8daca981561594cf3fb542c3e240b174013 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:50:31 2017 +0100 Allow client to send request with JSON syntax, cleanup a but of other code commit dcc3baf2dc554175fdd1de408cb4f7170a6540d4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:47:51 2017 +0100 composer update commit b89dbb6b7a4940b5eed30727f0bd67bc382d98bc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 14 09:50:39 2017 +0100 wip commit 87eb63dc9570f6822324d665bc1658cfcb446554 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 18:44:15 2017 +0100 Allow the syntax for the endpoint to be set in the config page commit 9595a0b68e4b51d77c18e63f9940026aa1325475 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 17:17:34 2017 +0100 Use better scope values in command commit 08e2223a8d56984df826c1cd876f58b00cce8faf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:53:44 2017 +0100 Get media uploads working again commit 4c0d6861324c23afe4145c4ff9a46d8a1ecc10e9 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:09:16 2017 +0100 Show syndication targets properlu in client form and config page commit 63939316a0818c8dfa8cba9919b231c2fdad5821 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:08:40 2017 +0100 Update prism, recompress assets commit 74902237cb227e05386135fb0e2d5330b65e1c4e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:58:41 2017 +0100 Better presentation of syndication targets commit 345cda342051af406d6616a9162a75af625a64e0 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:47:12 2017 +0100 yarn upgrade commit 17de68cc8f26cc472b009bf42942778fac75c890 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:42:49 2017 +0100 composer update commit 7da78294dfdda8c68fc411ab03db65f101c7fc4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:34:56 2017 +0100 Move to using indieauth-client-php client directly, add code to get new tokens commit 0020596b52c1590936d12ec9c458b7e70a06bc8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:31:40 2017 +0100 Add routes for retreiving a new token commit ee0a6763f037629e2a97fa8536c84cbffbbbd7e2 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:30:33 2017 +0100 Show syndication targets as an unformated json string commit 765d032fa883db834a005f61dc553b3b0ef9ee8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:29:21 2017 +0100 Add a migratin for the indieweb users commit 3a5c458f132cf6c308c2e83eb57c61ae64cc2b48 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:28:51 2017 +0100 Add a normlize_url helper function commit fb71bd6418e7903b7d50a90dd600a82a8af03d38 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:27:41 2017 +0100 Add a token to the users table commit 56df9e8aa453394f8b83e8f6a28cc41c66d172f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:18:06 2017 +0100 Set default values for config screen commit 0df8217a82cac91c3129acc492b73d6e8cb69b44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:17:14 2017 +0100 Use the helper function to normalize URLs commit d5f882972ec43e766ae7b9288b1ab3645dd471cf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:15:41 2017 +0100 In a dev environment automatically log in as the pre-created user commit 2c3379d0e560226a4db181e7d45ce02b575990ae Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:14:13 2017 +0100 Add a default user of me commit 5c955803a8218c477e2f2b126811e6bed5f20379 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:13:08 2017 +0100 Add a helpers file, currently only has a function to normalize URLs commit ae052d305c835952c83602d305cfdb08d5be975e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Mar 31 16:08:30 2017 +0100 Allow a user to register/login with his domain commit 638ab8085f18c1bdf9c036c0272a8e88079013f5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Mar 28 16:51:42 2017 +0100 Work on allowing people to “register” for the client
2017-04-21 16:38:39 +01:00
if ($response->getStatusCode() == 201) {
$request->session()->forget('media-links');
$location = $response->getHeader('Location');
if (is_array($location)) {
return redirect($location[0]);
}
return redirect($location);
}
}
if ($user->syntax == 'json') {
$json = [];
$json['type'] = ['h-entry'];
$json['properties'] = ['content' => [$request->input('content')]];
if ($request->input('in-reply-to') != '') {
2017-05-19 10:07:43 +01:00
$json['properties']['in-reply-to'][] = $request->input('in-reply-to');
Squashed commit of the following: commit 1eecb177b6d5aed8fd7ced14ba5a3fb8d528521b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:19:29 2017 +0100 Fix some Style issues commit 490ca7b8e90b08ad1e59714e09ba49a853cb753e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:06:13 2017 +0100 Run check on POST as well GET methods commit fb588798ce4e6548a0e0be8ec00673b24a41fe40 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:04:47 2017 +0100 Check for exceptions when validating token commit da2ce1a2893c03ae058c07361d860f4e509ac0ee Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:57:27 2017 +0100 Go back to doing all dusk tests commit c34fbf519a0cc528c49e8d5d9628a8891540c294 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:53:17 2017 +0100 Don’t check for error message now commit bd48859f7faf279296c0a15f2f6b18f83a951ebd Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:49:23 2017 +0100 Escape the facade call with backslash commit fcb405d8caf0d23cb70abb67da35cc68e2e86e4f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:43:19 2017 +0100 Regenerate the token within dusk commit 8732f100a075742802447e65a2ba56b7cc69149a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:36:39 2017 +0100 Slight refactor of token verification commit cb0ec39bba5765d55ad024fe3d73ad81877034da Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:29:46 2017 +0100 Stupid forgetting to root the namespace commit 1f2b309d7e77ff195ac8a4aa2f755044d15b4b92 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:22:54 2017 +0100 Try throwing my own exception commit 41dab30389cd04746051b8552e605eb3693ad0f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:12:18 2017 +0100 Checked headers commit 5eb12543adf999c4887a1e63b8d174fb7321202b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:08:37 2017 +0100 Don’t catch exceptions commit 71dbf8d08a7eed9f3795f06811431b7a3c2ddd6c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:00:22 2017 +0100 Log headers for request commit 1109a394456dd07375ccfab5a8436a902f3b27ce Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:54:19 2017 +0100 Add laravels own logs to the artifacts commit f6cd9ee81385bf4366e0e59fc6c34c9b56b6e52c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:38:18 2017 +0100 Log error commit dadf3b3150c74d2199a87a529151d55fc1e67394 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:33:14 2017 +0100 Look for different error message commit 9df2d1b831e6c65283fb5438967f4517752c31ac Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:24:15 2017 +0100 Look for different error message commit 090736735fe3cc5fb4076b77730f7e39bc92d80c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:14:14 2017 +0100 Just checking error message commit 6a766b1bc4af3dd0e335b3f57287086a6e528340 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:08:16 2017 +0100 Look for error message commit a399af496a440e30a0c0a1d4050121b3e491e968 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:00:29 2017 +0100 Simpler setup of php error log commit 3472c48ed50466c2d150e727cb6c1e43b1298d4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:45:11 2017 +0100 Set the php error log commit 978c17f33e2d9c3dd5166744aef924bf21483737 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:37:04 2017 +0100 Set the php-fpm error log commit 0e3407a4781f83bf3c516578a4594eff92b9d4d8 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:18:45 2017 +0100 Save a token for the user commit 951fe7966e18ac9e38526b6dfdc4a75fd4d68a0c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:56:49 2017 +0100 Use the right phrase commit faedc802a46c35b3b9264348ebbd895f4d2b3895 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:41:03 2017 +0100 Easier phrase to find in log commit 71b3c905bb4be0943254e51604af1293cc63cd0f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:35:07 2017 +0100 Check we are logged in commit fd6e3c79f13b9aada395a53b367e316936787298 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:20:14 2017 +0100 Cleanup output commit 231ac5868070f232f5bd455f0d6070621da9ae91 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:00:36 2017 +0100 Try pausing test before running second check commit 754cbafacdb8dd46db2eee699b8e23009c7d0bf5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 20 13:15:10 2017 +0100 Temporary fix for TLS issues on travis-ci and sensiolab’s security checker commit 8e03bba917ca9ba951bac5197e0008ae7188e19a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:24:51 2017 +0100 Use less strict check on no auth endpoint being found commit 91ee495ae1302f269febdd0e14ecbe81222b1014 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:23:44 2017 +0100 Use newer scope values in token commit 989a242b4ff271f4ac6ee0873dc2924506c0efcf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:30:53 2017 +0100 Missed some array syntax commit 92d11c9a62c2a122b4fef62da8af6bf4be23288d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:21:43 2017 +0100 Fix some styleci issues commit 3a3aa8daca981561594cf3fb542c3e240b174013 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:50:31 2017 +0100 Allow client to send request with JSON syntax, cleanup a but of other code commit dcc3baf2dc554175fdd1de408cb4f7170a6540d4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:47:51 2017 +0100 composer update commit b89dbb6b7a4940b5eed30727f0bd67bc382d98bc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 14 09:50:39 2017 +0100 wip commit 87eb63dc9570f6822324d665bc1658cfcb446554 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 18:44:15 2017 +0100 Allow the syntax for the endpoint to be set in the config page commit 9595a0b68e4b51d77c18e63f9940026aa1325475 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 17:17:34 2017 +0100 Use better scope values in command commit 08e2223a8d56984df826c1cd876f58b00cce8faf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:53:44 2017 +0100 Get media uploads working again commit 4c0d6861324c23afe4145c4ff9a46d8a1ecc10e9 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:09:16 2017 +0100 Show syndication targets properlu in client form and config page commit 63939316a0818c8dfa8cba9919b231c2fdad5821 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:08:40 2017 +0100 Update prism, recompress assets commit 74902237cb227e05386135fb0e2d5330b65e1c4e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:58:41 2017 +0100 Better presentation of syndication targets commit 345cda342051af406d6616a9162a75af625a64e0 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:47:12 2017 +0100 yarn upgrade commit 17de68cc8f26cc472b009bf42942778fac75c890 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:42:49 2017 +0100 composer update commit 7da78294dfdda8c68fc411ab03db65f101c7fc4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:34:56 2017 +0100 Move to using indieauth-client-php client directly, add code to get new tokens commit 0020596b52c1590936d12ec9c458b7e70a06bc8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:31:40 2017 +0100 Add routes for retreiving a new token commit ee0a6763f037629e2a97fa8536c84cbffbbbd7e2 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:30:33 2017 +0100 Show syndication targets as an unformated json string commit 765d032fa883db834a005f61dc553b3b0ef9ee8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:29:21 2017 +0100 Add a migratin for the indieweb users commit 3a5c458f132cf6c308c2e83eb57c61ae64cc2b48 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:28:51 2017 +0100 Add a normlize_url helper function commit fb71bd6418e7903b7d50a90dd600a82a8af03d38 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:27:41 2017 +0100 Add a token to the users table commit 56df9e8aa453394f8b83e8f6a28cc41c66d172f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:18:06 2017 +0100 Set default values for config screen commit 0df8217a82cac91c3129acc492b73d6e8cb69b44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:17:14 2017 +0100 Use the helper function to normalize URLs commit d5f882972ec43e766ae7b9288b1ab3645dd471cf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:15:41 2017 +0100 In a dev environment automatically log in as the pre-created user commit 2c3379d0e560226a4db181e7d45ce02b575990ae Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:14:13 2017 +0100 Add a default user of me commit 5c955803a8218c477e2f2b126811e6bed5f20379 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:13:08 2017 +0100 Add a helpers file, currently only has a function to normalize URLs commit ae052d305c835952c83602d305cfdb08d5be975e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Mar 31 16:08:30 2017 +0100 Allow a user to register/login with his domain commit 638ab8085f18c1bdf9c036c0272a8e88079013f5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Mar 28 16:51:42 2017 +0100 Work on allowing people to “register” for the client
2017-04-21 16:38:39 +01:00
}
if ($request->input('mp-syndicate-to')) {
foreach ($request->input('mp-syndicate-to') as $syn) {
2017-05-19 10:07:43 +01:00
$json['properties']['mp-syndicate-to'][] = $syn;
Squashed commit of the following: commit 1eecb177b6d5aed8fd7ced14ba5a3fb8d528521b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:19:29 2017 +0100 Fix some Style issues commit 490ca7b8e90b08ad1e59714e09ba49a853cb753e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:06:13 2017 +0100 Run check on POST as well GET methods commit fb588798ce4e6548a0e0be8ec00673b24a41fe40 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:04:47 2017 +0100 Check for exceptions when validating token commit da2ce1a2893c03ae058c07361d860f4e509ac0ee Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:57:27 2017 +0100 Go back to doing all dusk tests commit c34fbf519a0cc528c49e8d5d9628a8891540c294 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:53:17 2017 +0100 Don’t check for error message now commit bd48859f7faf279296c0a15f2f6b18f83a951ebd Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:49:23 2017 +0100 Escape the facade call with backslash commit fcb405d8caf0d23cb70abb67da35cc68e2e86e4f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:43:19 2017 +0100 Regenerate the token within dusk commit 8732f100a075742802447e65a2ba56b7cc69149a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:36:39 2017 +0100 Slight refactor of token verification commit cb0ec39bba5765d55ad024fe3d73ad81877034da Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:29:46 2017 +0100 Stupid forgetting to root the namespace commit 1f2b309d7e77ff195ac8a4aa2f755044d15b4b92 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:22:54 2017 +0100 Try throwing my own exception commit 41dab30389cd04746051b8552e605eb3693ad0f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:12:18 2017 +0100 Checked headers commit 5eb12543adf999c4887a1e63b8d174fb7321202b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:08:37 2017 +0100 Don’t catch exceptions commit 71dbf8d08a7eed9f3795f06811431b7a3c2ddd6c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:00:22 2017 +0100 Log headers for request commit 1109a394456dd07375ccfab5a8436a902f3b27ce Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:54:19 2017 +0100 Add laravels own logs to the artifacts commit f6cd9ee81385bf4366e0e59fc6c34c9b56b6e52c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:38:18 2017 +0100 Log error commit dadf3b3150c74d2199a87a529151d55fc1e67394 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:33:14 2017 +0100 Look for different error message commit 9df2d1b831e6c65283fb5438967f4517752c31ac Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:24:15 2017 +0100 Look for different error message commit 090736735fe3cc5fb4076b77730f7e39bc92d80c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:14:14 2017 +0100 Just checking error message commit 6a766b1bc4af3dd0e335b3f57287086a6e528340 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:08:16 2017 +0100 Look for error message commit a399af496a440e30a0c0a1d4050121b3e491e968 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:00:29 2017 +0100 Simpler setup of php error log commit 3472c48ed50466c2d150e727cb6c1e43b1298d4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:45:11 2017 +0100 Set the php error log commit 978c17f33e2d9c3dd5166744aef924bf21483737 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:37:04 2017 +0100 Set the php-fpm error log commit 0e3407a4781f83bf3c516578a4594eff92b9d4d8 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:18:45 2017 +0100 Save a token for the user commit 951fe7966e18ac9e38526b6dfdc4a75fd4d68a0c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:56:49 2017 +0100 Use the right phrase commit faedc802a46c35b3b9264348ebbd895f4d2b3895 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:41:03 2017 +0100 Easier phrase to find in log commit 71b3c905bb4be0943254e51604af1293cc63cd0f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:35:07 2017 +0100 Check we are logged in commit fd6e3c79f13b9aada395a53b367e316936787298 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:20:14 2017 +0100 Cleanup output commit 231ac5868070f232f5bd455f0d6070621da9ae91 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:00:36 2017 +0100 Try pausing test before running second check commit 754cbafacdb8dd46db2eee699b8e23009c7d0bf5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 20 13:15:10 2017 +0100 Temporary fix for TLS issues on travis-ci and sensiolab’s security checker commit 8e03bba917ca9ba951bac5197e0008ae7188e19a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:24:51 2017 +0100 Use less strict check on no auth endpoint being found commit 91ee495ae1302f269febdd0e14ecbe81222b1014 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:23:44 2017 +0100 Use newer scope values in token commit 989a242b4ff271f4ac6ee0873dc2924506c0efcf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:30:53 2017 +0100 Missed some array syntax commit 92d11c9a62c2a122b4fef62da8af6bf4be23288d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:21:43 2017 +0100 Fix some styleci issues commit 3a3aa8daca981561594cf3fb542c3e240b174013 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:50:31 2017 +0100 Allow client to send request with JSON syntax, cleanup a but of other code commit dcc3baf2dc554175fdd1de408cb4f7170a6540d4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:47:51 2017 +0100 composer update commit b89dbb6b7a4940b5eed30727f0bd67bc382d98bc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 14 09:50:39 2017 +0100 wip commit 87eb63dc9570f6822324d665bc1658cfcb446554 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 18:44:15 2017 +0100 Allow the syntax for the endpoint to be set in the config page commit 9595a0b68e4b51d77c18e63f9940026aa1325475 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 17:17:34 2017 +0100 Use better scope values in command commit 08e2223a8d56984df826c1cd876f58b00cce8faf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:53:44 2017 +0100 Get media uploads working again commit 4c0d6861324c23afe4145c4ff9a46d8a1ecc10e9 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:09:16 2017 +0100 Show syndication targets properlu in client form and config page commit 63939316a0818c8dfa8cba9919b231c2fdad5821 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:08:40 2017 +0100 Update prism, recompress assets commit 74902237cb227e05386135fb0e2d5330b65e1c4e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:58:41 2017 +0100 Better presentation of syndication targets commit 345cda342051af406d6616a9162a75af625a64e0 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:47:12 2017 +0100 yarn upgrade commit 17de68cc8f26cc472b009bf42942778fac75c890 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:42:49 2017 +0100 composer update commit 7da78294dfdda8c68fc411ab03db65f101c7fc4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:34:56 2017 +0100 Move to using indieauth-client-php client directly, add code to get new tokens commit 0020596b52c1590936d12ec9c458b7e70a06bc8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:31:40 2017 +0100 Add routes for retreiving a new token commit ee0a6763f037629e2a97fa8536c84cbffbbbd7e2 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:30:33 2017 +0100 Show syndication targets as an unformated json string commit 765d032fa883db834a005f61dc553b3b0ef9ee8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:29:21 2017 +0100 Add a migratin for the indieweb users commit 3a5c458f132cf6c308c2e83eb57c61ae64cc2b48 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:28:51 2017 +0100 Add a normlize_url helper function commit fb71bd6418e7903b7d50a90dd600a82a8af03d38 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:27:41 2017 +0100 Add a token to the users table commit 56df9e8aa453394f8b83e8f6a28cc41c66d172f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:18:06 2017 +0100 Set default values for config screen commit 0df8217a82cac91c3129acc492b73d6e8cb69b44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:17:14 2017 +0100 Use the helper function to normalize URLs commit d5f882972ec43e766ae7b9288b1ab3645dd471cf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:15:41 2017 +0100 In a dev environment automatically log in as the pre-created user commit 2c3379d0e560226a4db181e7d45ce02b575990ae Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:14:13 2017 +0100 Add a default user of me commit 5c955803a8218c477e2f2b126811e6bed5f20379 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:13:08 2017 +0100 Add a helpers file, currently only has a function to normalize URLs commit ae052d305c835952c83602d305cfdb08d5be975e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Mar 31 16:08:30 2017 +0100 Allow a user to register/login with his domain commit 638ab8085f18c1bdf9c036c0272a8e88079013f5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Mar 28 16:51:42 2017 +0100 Work on allowing people to “register” for the client
2017-04-21 16:38:39 +01:00
}
}
if ($request->input('location')) {
if ($request->input('location') !== 'no-location') {
2017-05-19 10:07:43 +01:00
$json['properties']['location'][] = $request->input('location');
Squashed commit of the following: commit 1eecb177b6d5aed8fd7ced14ba5a3fb8d528521b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:19:29 2017 +0100 Fix some Style issues commit 490ca7b8e90b08ad1e59714e09ba49a853cb753e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:06:13 2017 +0100 Run check on POST as well GET methods commit fb588798ce4e6548a0e0be8ec00673b24a41fe40 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:04:47 2017 +0100 Check for exceptions when validating token commit da2ce1a2893c03ae058c07361d860f4e509ac0ee Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:57:27 2017 +0100 Go back to doing all dusk tests commit c34fbf519a0cc528c49e8d5d9628a8891540c294 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:53:17 2017 +0100 Don’t check for error message now commit bd48859f7faf279296c0a15f2f6b18f83a951ebd Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:49:23 2017 +0100 Escape the facade call with backslash commit fcb405d8caf0d23cb70abb67da35cc68e2e86e4f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:43:19 2017 +0100 Regenerate the token within dusk commit 8732f100a075742802447e65a2ba56b7cc69149a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:36:39 2017 +0100 Slight refactor of token verification commit cb0ec39bba5765d55ad024fe3d73ad81877034da Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:29:46 2017 +0100 Stupid forgetting to root the namespace commit 1f2b309d7e77ff195ac8a4aa2f755044d15b4b92 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:22:54 2017 +0100 Try throwing my own exception commit 41dab30389cd04746051b8552e605eb3693ad0f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:12:18 2017 +0100 Checked headers commit 5eb12543adf999c4887a1e63b8d174fb7321202b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:08:37 2017 +0100 Don’t catch exceptions commit 71dbf8d08a7eed9f3795f06811431b7a3c2ddd6c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:00:22 2017 +0100 Log headers for request commit 1109a394456dd07375ccfab5a8436a902f3b27ce Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:54:19 2017 +0100 Add laravels own logs to the artifacts commit f6cd9ee81385bf4366e0e59fc6c34c9b56b6e52c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:38:18 2017 +0100 Log error commit dadf3b3150c74d2199a87a529151d55fc1e67394 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:33:14 2017 +0100 Look for different error message commit 9df2d1b831e6c65283fb5438967f4517752c31ac Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:24:15 2017 +0100 Look for different error message commit 090736735fe3cc5fb4076b77730f7e39bc92d80c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:14:14 2017 +0100 Just checking error message commit 6a766b1bc4af3dd0e335b3f57287086a6e528340 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:08:16 2017 +0100 Look for error message commit a399af496a440e30a0c0a1d4050121b3e491e968 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:00:29 2017 +0100 Simpler setup of php error log commit 3472c48ed50466c2d150e727cb6c1e43b1298d4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:45:11 2017 +0100 Set the php error log commit 978c17f33e2d9c3dd5166744aef924bf21483737 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:37:04 2017 +0100 Set the php-fpm error log commit 0e3407a4781f83bf3c516578a4594eff92b9d4d8 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:18:45 2017 +0100 Save a token for the user commit 951fe7966e18ac9e38526b6dfdc4a75fd4d68a0c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:56:49 2017 +0100 Use the right phrase commit faedc802a46c35b3b9264348ebbd895f4d2b3895 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:41:03 2017 +0100 Easier phrase to find in log commit 71b3c905bb4be0943254e51604af1293cc63cd0f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:35:07 2017 +0100 Check we are logged in commit fd6e3c79f13b9aada395a53b367e316936787298 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:20:14 2017 +0100 Cleanup output commit 231ac5868070f232f5bd455f0d6070621da9ae91 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:00:36 2017 +0100 Try pausing test before running second check commit 754cbafacdb8dd46db2eee699b8e23009c7d0bf5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 20 13:15:10 2017 +0100 Temporary fix for TLS issues on travis-ci and sensiolab’s security checker commit 8e03bba917ca9ba951bac5197e0008ae7188e19a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:24:51 2017 +0100 Use less strict check on no auth endpoint being found commit 91ee495ae1302f269febdd0e14ecbe81222b1014 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:23:44 2017 +0100 Use newer scope values in token commit 989a242b4ff271f4ac6ee0873dc2924506c0efcf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:30:53 2017 +0100 Missed some array syntax commit 92d11c9a62c2a122b4fef62da8af6bf4be23288d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:21:43 2017 +0100 Fix some styleci issues commit 3a3aa8daca981561594cf3fb542c3e240b174013 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:50:31 2017 +0100 Allow client to send request with JSON syntax, cleanup a but of other code commit dcc3baf2dc554175fdd1de408cb4f7170a6540d4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:47:51 2017 +0100 composer update commit b89dbb6b7a4940b5eed30727f0bd67bc382d98bc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 14 09:50:39 2017 +0100 wip commit 87eb63dc9570f6822324d665bc1658cfcb446554 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 18:44:15 2017 +0100 Allow the syntax for the endpoint to be set in the config page commit 9595a0b68e4b51d77c18e63f9940026aa1325475 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 17:17:34 2017 +0100 Use better scope values in command commit 08e2223a8d56984df826c1cd876f58b00cce8faf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:53:44 2017 +0100 Get media uploads working again commit 4c0d6861324c23afe4145c4ff9a46d8a1ecc10e9 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:09:16 2017 +0100 Show syndication targets properlu in client form and config page commit 63939316a0818c8dfa8cba9919b231c2fdad5821 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:08:40 2017 +0100 Update prism, recompress assets commit 74902237cb227e05386135fb0e2d5330b65e1c4e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:58:41 2017 +0100 Better presentation of syndication targets commit 345cda342051af406d6616a9162a75af625a64e0 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:47:12 2017 +0100 yarn upgrade commit 17de68cc8f26cc472b009bf42942778fac75c890 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:42:49 2017 +0100 composer update commit 7da78294dfdda8c68fc411ab03db65f101c7fc4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:34:56 2017 +0100 Move to using indieauth-client-php client directly, add code to get new tokens commit 0020596b52c1590936d12ec9c458b7e70a06bc8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:31:40 2017 +0100 Add routes for retreiving a new token commit ee0a6763f037629e2a97fa8536c84cbffbbbd7e2 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:30:33 2017 +0100 Show syndication targets as an unformated json string commit 765d032fa883db834a005f61dc553b3b0ef9ee8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:29:21 2017 +0100 Add a migratin for the indieweb users commit 3a5c458f132cf6c308c2e83eb57c61ae64cc2b48 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:28:51 2017 +0100 Add a normlize_url helper function commit fb71bd6418e7903b7d50a90dd600a82a8af03d38 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:27:41 2017 +0100 Add a token to the users table commit 56df9e8aa453394f8b83e8f6a28cc41c66d172f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:18:06 2017 +0100 Set default values for config screen commit 0df8217a82cac91c3129acc492b73d6e8cb69b44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:17:14 2017 +0100 Use the helper function to normalize URLs commit d5f882972ec43e766ae7b9288b1ab3645dd471cf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:15:41 2017 +0100 In a dev environment automatically log in as the pre-created user commit 2c3379d0e560226a4db181e7d45ce02b575990ae Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:14:13 2017 +0100 Add a default user of me commit 5c955803a8218c477e2f2b126811e6bed5f20379 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:13:08 2017 +0100 Add a helpers file, currently only has a function to normalize URLs commit ae052d305c835952c83602d305cfdb08d5be975e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Mar 31 16:08:30 2017 +0100 Allow a user to register/login with his domain commit 638ab8085f18c1bdf9c036c0272a8e88079013f5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Mar 28 16:51:42 2017 +0100 Work on allowing people to “register” for the client
2017-04-21 16:38:39 +01:00
}
}
if ($request->input('media')) {
$json['properties']['photo'] = [];
foreach ($request->input('media') as $media) {
$json['properties']['photo'][] = $media;
}
}
try {
$response = $this->guzzleClient->post($micropubEndpoint, [
'json' => $json,
'headers' => $headers,
]);
} catch (\GuzzleHttp\Exception\BadResponseException $e) {
return redirect()->route('micropub-client')->with(
Squashed commit of the following: commit 1eecb177b6d5aed8fd7ced14ba5a3fb8d528521b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:19:29 2017 +0100 Fix some Style issues commit 490ca7b8e90b08ad1e59714e09ba49a853cb753e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:06:13 2017 +0100 Run check on POST as well GET methods commit fb588798ce4e6548a0e0be8ec00673b24a41fe40 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:04:47 2017 +0100 Check for exceptions when validating token commit da2ce1a2893c03ae058c07361d860f4e509ac0ee Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:57:27 2017 +0100 Go back to doing all dusk tests commit c34fbf519a0cc528c49e8d5d9628a8891540c294 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:53:17 2017 +0100 Don’t check for error message now commit bd48859f7faf279296c0a15f2f6b18f83a951ebd Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:49:23 2017 +0100 Escape the facade call with backslash commit fcb405d8caf0d23cb70abb67da35cc68e2e86e4f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:43:19 2017 +0100 Regenerate the token within dusk commit 8732f100a075742802447e65a2ba56b7cc69149a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:36:39 2017 +0100 Slight refactor of token verification commit cb0ec39bba5765d55ad024fe3d73ad81877034da Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:29:46 2017 +0100 Stupid forgetting to root the namespace commit 1f2b309d7e77ff195ac8a4aa2f755044d15b4b92 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:22:54 2017 +0100 Try throwing my own exception commit 41dab30389cd04746051b8552e605eb3693ad0f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:12:18 2017 +0100 Checked headers commit 5eb12543adf999c4887a1e63b8d174fb7321202b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:08:37 2017 +0100 Don’t catch exceptions commit 71dbf8d08a7eed9f3795f06811431b7a3c2ddd6c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:00:22 2017 +0100 Log headers for request commit 1109a394456dd07375ccfab5a8436a902f3b27ce Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:54:19 2017 +0100 Add laravels own logs to the artifacts commit f6cd9ee81385bf4366e0e59fc6c34c9b56b6e52c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:38:18 2017 +0100 Log error commit dadf3b3150c74d2199a87a529151d55fc1e67394 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:33:14 2017 +0100 Look for different error message commit 9df2d1b831e6c65283fb5438967f4517752c31ac Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:24:15 2017 +0100 Look for different error message commit 090736735fe3cc5fb4076b77730f7e39bc92d80c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:14:14 2017 +0100 Just checking error message commit 6a766b1bc4af3dd0e335b3f57287086a6e528340 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:08:16 2017 +0100 Look for error message commit a399af496a440e30a0c0a1d4050121b3e491e968 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:00:29 2017 +0100 Simpler setup of php error log commit 3472c48ed50466c2d150e727cb6c1e43b1298d4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:45:11 2017 +0100 Set the php error log commit 978c17f33e2d9c3dd5166744aef924bf21483737 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:37:04 2017 +0100 Set the php-fpm error log commit 0e3407a4781f83bf3c516578a4594eff92b9d4d8 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:18:45 2017 +0100 Save a token for the user commit 951fe7966e18ac9e38526b6dfdc4a75fd4d68a0c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:56:49 2017 +0100 Use the right phrase commit faedc802a46c35b3b9264348ebbd895f4d2b3895 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:41:03 2017 +0100 Easier phrase to find in log commit 71b3c905bb4be0943254e51604af1293cc63cd0f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:35:07 2017 +0100 Check we are logged in commit fd6e3c79f13b9aada395a53b367e316936787298 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:20:14 2017 +0100 Cleanup output commit 231ac5868070f232f5bd455f0d6070621da9ae91 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:00:36 2017 +0100 Try pausing test before running second check commit 754cbafacdb8dd46db2eee699b8e23009c7d0bf5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 20 13:15:10 2017 +0100 Temporary fix for TLS issues on travis-ci and sensiolab’s security checker commit 8e03bba917ca9ba951bac5197e0008ae7188e19a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:24:51 2017 +0100 Use less strict check on no auth endpoint being found commit 91ee495ae1302f269febdd0e14ecbe81222b1014 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:23:44 2017 +0100 Use newer scope values in token commit 989a242b4ff271f4ac6ee0873dc2924506c0efcf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:30:53 2017 +0100 Missed some array syntax commit 92d11c9a62c2a122b4fef62da8af6bf4be23288d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:21:43 2017 +0100 Fix some styleci issues commit 3a3aa8daca981561594cf3fb542c3e240b174013 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:50:31 2017 +0100 Allow client to send request with JSON syntax, cleanup a but of other code commit dcc3baf2dc554175fdd1de408cb4f7170a6540d4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:47:51 2017 +0100 composer update commit b89dbb6b7a4940b5eed30727f0bd67bc382d98bc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 14 09:50:39 2017 +0100 wip commit 87eb63dc9570f6822324d665bc1658cfcb446554 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 18:44:15 2017 +0100 Allow the syntax for the endpoint to be set in the config page commit 9595a0b68e4b51d77c18e63f9940026aa1325475 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 17:17:34 2017 +0100 Use better scope values in command commit 08e2223a8d56984df826c1cd876f58b00cce8faf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:53:44 2017 +0100 Get media uploads working again commit 4c0d6861324c23afe4145c4ff9a46d8a1ecc10e9 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:09:16 2017 +0100 Show syndication targets properlu in client form and config page commit 63939316a0818c8dfa8cba9919b231c2fdad5821 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:08:40 2017 +0100 Update prism, recompress assets commit 74902237cb227e05386135fb0e2d5330b65e1c4e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:58:41 2017 +0100 Better presentation of syndication targets commit 345cda342051af406d6616a9162a75af625a64e0 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:47:12 2017 +0100 yarn upgrade commit 17de68cc8f26cc472b009bf42942778fac75c890 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:42:49 2017 +0100 composer update commit 7da78294dfdda8c68fc411ab03db65f101c7fc4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:34:56 2017 +0100 Move to using indieauth-client-php client directly, add code to get new tokens commit 0020596b52c1590936d12ec9c458b7e70a06bc8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:31:40 2017 +0100 Add routes for retreiving a new token commit ee0a6763f037629e2a97fa8536c84cbffbbbd7e2 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:30:33 2017 +0100 Show syndication targets as an unformated json string commit 765d032fa883db834a005f61dc553b3b0ef9ee8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:29:21 2017 +0100 Add a migratin for the indieweb users commit 3a5c458f132cf6c308c2e83eb57c61ae64cc2b48 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:28:51 2017 +0100 Add a normlize_url helper function commit fb71bd6418e7903b7d50a90dd600a82a8af03d38 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:27:41 2017 +0100 Add a token to the users table commit 56df9e8aa453394f8b83e8f6a28cc41c66d172f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:18:06 2017 +0100 Set default values for config screen commit 0df8217a82cac91c3129acc492b73d6e8cb69b44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:17:14 2017 +0100 Use the helper function to normalize URLs commit d5f882972ec43e766ae7b9288b1ab3645dd471cf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:15:41 2017 +0100 In a dev environment automatically log in as the pre-created user commit 2c3379d0e560226a4db181e7d45ce02b575990ae Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:14:13 2017 +0100 Add a default user of me commit 5c955803a8218c477e2f2b126811e6bed5f20379 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:13:08 2017 +0100 Add a helpers file, currently only has a function to normalize URLs commit ae052d305c835952c83602d305cfdb08d5be975e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Mar 31 16:08:30 2017 +0100 Allow a user to register/login with his domain commit 638ab8085f18c1bdf9c036c0272a8e88079013f5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Mar 28 16:51:42 2017 +0100 Work on allowing people to “register” for the client
2017-04-21 16:38:39 +01:00
'error',
'There was a bad response from the micropub endpoint.'
);
}
if ($response->getStatusCode() == 201) {
$request->session()->forget('media-links');
$location = $response->getHeader('Location');
if (is_array($location)) {
return redirect($location[0]);
}
return redirect($location);
}
2016-05-19 15:01:28 +01:00
}
2017-02-23 08:59:56 +00:00
return redirect()->route('micropub-client')->with('error', 'Endpoint didnt create the note.');
2016-05-19 15:01:28 +01:00
}
/**
* Show currently stored configuration values.
*
* @param Illuminate\Http\Request $request
* @return view
*/
public function config(Request $request)
{
Squashed commit of the following: commit 1eecb177b6d5aed8fd7ced14ba5a3fb8d528521b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:19:29 2017 +0100 Fix some Style issues commit 490ca7b8e90b08ad1e59714e09ba49a853cb753e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:06:13 2017 +0100 Run check on POST as well GET methods commit fb588798ce4e6548a0e0be8ec00673b24a41fe40 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:04:47 2017 +0100 Check for exceptions when validating token commit da2ce1a2893c03ae058c07361d860f4e509ac0ee Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:57:27 2017 +0100 Go back to doing all dusk tests commit c34fbf519a0cc528c49e8d5d9628a8891540c294 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:53:17 2017 +0100 Don’t check for error message now commit bd48859f7faf279296c0a15f2f6b18f83a951ebd Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:49:23 2017 +0100 Escape the facade call with backslash commit fcb405d8caf0d23cb70abb67da35cc68e2e86e4f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:43:19 2017 +0100 Regenerate the token within dusk commit 8732f100a075742802447e65a2ba56b7cc69149a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:36:39 2017 +0100 Slight refactor of token verification commit cb0ec39bba5765d55ad024fe3d73ad81877034da Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:29:46 2017 +0100 Stupid forgetting to root the namespace commit 1f2b309d7e77ff195ac8a4aa2f755044d15b4b92 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:22:54 2017 +0100 Try throwing my own exception commit 41dab30389cd04746051b8552e605eb3693ad0f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:12:18 2017 +0100 Checked headers commit 5eb12543adf999c4887a1e63b8d174fb7321202b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:08:37 2017 +0100 Don’t catch exceptions commit 71dbf8d08a7eed9f3795f06811431b7a3c2ddd6c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:00:22 2017 +0100 Log headers for request commit 1109a394456dd07375ccfab5a8436a902f3b27ce Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:54:19 2017 +0100 Add laravels own logs to the artifacts commit f6cd9ee81385bf4366e0e59fc6c34c9b56b6e52c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:38:18 2017 +0100 Log error commit dadf3b3150c74d2199a87a529151d55fc1e67394 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:33:14 2017 +0100 Look for different error message commit 9df2d1b831e6c65283fb5438967f4517752c31ac Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:24:15 2017 +0100 Look for different error message commit 090736735fe3cc5fb4076b77730f7e39bc92d80c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:14:14 2017 +0100 Just checking error message commit 6a766b1bc4af3dd0e335b3f57287086a6e528340 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:08:16 2017 +0100 Look for error message commit a399af496a440e30a0c0a1d4050121b3e491e968 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:00:29 2017 +0100 Simpler setup of php error log commit 3472c48ed50466c2d150e727cb6c1e43b1298d4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:45:11 2017 +0100 Set the php error log commit 978c17f33e2d9c3dd5166744aef924bf21483737 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:37:04 2017 +0100 Set the php-fpm error log commit 0e3407a4781f83bf3c516578a4594eff92b9d4d8 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:18:45 2017 +0100 Save a token for the user commit 951fe7966e18ac9e38526b6dfdc4a75fd4d68a0c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:56:49 2017 +0100 Use the right phrase commit faedc802a46c35b3b9264348ebbd895f4d2b3895 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:41:03 2017 +0100 Easier phrase to find in log commit 71b3c905bb4be0943254e51604af1293cc63cd0f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:35:07 2017 +0100 Check we are logged in commit fd6e3c79f13b9aada395a53b367e316936787298 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:20:14 2017 +0100 Cleanup output commit 231ac5868070f232f5bd455f0d6070621da9ae91 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:00:36 2017 +0100 Try pausing test before running second check commit 754cbafacdb8dd46db2eee699b8e23009c7d0bf5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 20 13:15:10 2017 +0100 Temporary fix for TLS issues on travis-ci and sensiolab’s security checker commit 8e03bba917ca9ba951bac5197e0008ae7188e19a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:24:51 2017 +0100 Use less strict check on no auth endpoint being found commit 91ee495ae1302f269febdd0e14ecbe81222b1014 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:23:44 2017 +0100 Use newer scope values in token commit 989a242b4ff271f4ac6ee0873dc2924506c0efcf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:30:53 2017 +0100 Missed some array syntax commit 92d11c9a62c2a122b4fef62da8af6bf4be23288d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:21:43 2017 +0100 Fix some styleci issues commit 3a3aa8daca981561594cf3fb542c3e240b174013 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:50:31 2017 +0100 Allow client to send request with JSON syntax, cleanup a but of other code commit dcc3baf2dc554175fdd1de408cb4f7170a6540d4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:47:51 2017 +0100 composer update commit b89dbb6b7a4940b5eed30727f0bd67bc382d98bc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 14 09:50:39 2017 +0100 wip commit 87eb63dc9570f6822324d665bc1658cfcb446554 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 18:44:15 2017 +0100 Allow the syntax for the endpoint to be set in the config page commit 9595a0b68e4b51d77c18e63f9940026aa1325475 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 17:17:34 2017 +0100 Use better scope values in command commit 08e2223a8d56984df826c1cd876f58b00cce8faf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:53:44 2017 +0100 Get media uploads working again commit 4c0d6861324c23afe4145c4ff9a46d8a1ecc10e9 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:09:16 2017 +0100 Show syndication targets properlu in client form and config page commit 63939316a0818c8dfa8cba9919b231c2fdad5821 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:08:40 2017 +0100 Update prism, recompress assets commit 74902237cb227e05386135fb0e2d5330b65e1c4e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:58:41 2017 +0100 Better presentation of syndication targets commit 345cda342051af406d6616a9162a75af625a64e0 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:47:12 2017 +0100 yarn upgrade commit 17de68cc8f26cc472b009bf42942778fac75c890 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:42:49 2017 +0100 composer update commit 7da78294dfdda8c68fc411ab03db65f101c7fc4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:34:56 2017 +0100 Move to using indieauth-client-php client directly, add code to get new tokens commit 0020596b52c1590936d12ec9c458b7e70a06bc8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:31:40 2017 +0100 Add routes for retreiving a new token commit ee0a6763f037629e2a97fa8536c84cbffbbbd7e2 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:30:33 2017 +0100 Show syndication targets as an unformated json string commit 765d032fa883db834a005f61dc553b3b0ef9ee8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:29:21 2017 +0100 Add a migratin for the indieweb users commit 3a5c458f132cf6c308c2e83eb57c61ae64cc2b48 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:28:51 2017 +0100 Add a normlize_url helper function commit fb71bd6418e7903b7d50a90dd600a82a8af03d38 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:27:41 2017 +0100 Add a token to the users table commit 56df9e8aa453394f8b83e8f6a28cc41c66d172f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:18:06 2017 +0100 Set default values for config screen commit 0df8217a82cac91c3129acc492b73d6e8cb69b44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:17:14 2017 +0100 Use the helper function to normalize URLs commit d5f882972ec43e766ae7b9288b1ab3645dd471cf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:15:41 2017 +0100 In a dev environment automatically log in as the pre-created user commit 2c3379d0e560226a4db181e7d45ce02b575990ae Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:14:13 2017 +0100 Add a default user of me commit 5c955803a8218c477e2f2b126811e6bed5f20379 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:13:08 2017 +0100 Add a helpers file, currently only has a function to normalize URLs commit ae052d305c835952c83602d305cfdb08d5be975e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Mar 31 16:08:30 2017 +0100 Allow a user to register/login with his domain commit 638ab8085f18c1bdf9c036c0272a8e88079013f5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Mar 28 16:51:42 2017 +0100 Work on allowing people to “register” for the client
2017-04-21 16:38:39 +01:00
//default values
$data = [
'me' => '',
'token' => 'none',
'syndication' => 'none defined',
'media-endpoint' => 'none defined',
'syntax' => 'html',
];
if ($request->session()->has('me')) {
$data['me'] = normalize_url($request->session()->get('me'));
$user = IndieWebUser::where('me', $request->session()->get('me'))->firstOrFail();
Squashed commit of the following: commit 1eecb177b6d5aed8fd7ced14ba5a3fb8d528521b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:19:29 2017 +0100 Fix some Style issues commit 490ca7b8e90b08ad1e59714e09ba49a853cb753e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:06:13 2017 +0100 Run check on POST as well GET methods commit fb588798ce4e6548a0e0be8ec00673b24a41fe40 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:04:47 2017 +0100 Check for exceptions when validating token commit da2ce1a2893c03ae058c07361d860f4e509ac0ee Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:57:27 2017 +0100 Go back to doing all dusk tests commit c34fbf519a0cc528c49e8d5d9628a8891540c294 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:53:17 2017 +0100 Don’t check for error message now commit bd48859f7faf279296c0a15f2f6b18f83a951ebd Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:49:23 2017 +0100 Escape the facade call with backslash commit fcb405d8caf0d23cb70abb67da35cc68e2e86e4f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:43:19 2017 +0100 Regenerate the token within dusk commit 8732f100a075742802447e65a2ba56b7cc69149a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:36:39 2017 +0100 Slight refactor of token verification commit cb0ec39bba5765d55ad024fe3d73ad81877034da Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:29:46 2017 +0100 Stupid forgetting to root the namespace commit 1f2b309d7e77ff195ac8a4aa2f755044d15b4b92 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:22:54 2017 +0100 Try throwing my own exception commit 41dab30389cd04746051b8552e605eb3693ad0f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:12:18 2017 +0100 Checked headers commit 5eb12543adf999c4887a1e63b8d174fb7321202b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:08:37 2017 +0100 Don’t catch exceptions commit 71dbf8d08a7eed9f3795f06811431b7a3c2ddd6c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:00:22 2017 +0100 Log headers for request commit 1109a394456dd07375ccfab5a8436a902f3b27ce Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:54:19 2017 +0100 Add laravels own logs to the artifacts commit f6cd9ee81385bf4366e0e59fc6c34c9b56b6e52c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:38:18 2017 +0100 Log error commit dadf3b3150c74d2199a87a529151d55fc1e67394 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:33:14 2017 +0100 Look for different error message commit 9df2d1b831e6c65283fb5438967f4517752c31ac Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:24:15 2017 +0100 Look for different error message commit 090736735fe3cc5fb4076b77730f7e39bc92d80c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:14:14 2017 +0100 Just checking error message commit 6a766b1bc4af3dd0e335b3f57287086a6e528340 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:08:16 2017 +0100 Look for error message commit a399af496a440e30a0c0a1d4050121b3e491e968 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:00:29 2017 +0100 Simpler setup of php error log commit 3472c48ed50466c2d150e727cb6c1e43b1298d4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:45:11 2017 +0100 Set the php error log commit 978c17f33e2d9c3dd5166744aef924bf21483737 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:37:04 2017 +0100 Set the php-fpm error log commit 0e3407a4781f83bf3c516578a4594eff92b9d4d8 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:18:45 2017 +0100 Save a token for the user commit 951fe7966e18ac9e38526b6dfdc4a75fd4d68a0c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:56:49 2017 +0100 Use the right phrase commit faedc802a46c35b3b9264348ebbd895f4d2b3895 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:41:03 2017 +0100 Easier phrase to find in log commit 71b3c905bb4be0943254e51604af1293cc63cd0f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:35:07 2017 +0100 Check we are logged in commit fd6e3c79f13b9aada395a53b367e316936787298 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:20:14 2017 +0100 Cleanup output commit 231ac5868070f232f5bd455f0d6070621da9ae91 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:00:36 2017 +0100 Try pausing test before running second check commit 754cbafacdb8dd46db2eee699b8e23009c7d0bf5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 20 13:15:10 2017 +0100 Temporary fix for TLS issues on travis-ci and sensiolab’s security checker commit 8e03bba917ca9ba951bac5197e0008ae7188e19a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:24:51 2017 +0100 Use less strict check on no auth endpoint being found commit 91ee495ae1302f269febdd0e14ecbe81222b1014 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:23:44 2017 +0100 Use newer scope values in token commit 989a242b4ff271f4ac6ee0873dc2924506c0efcf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:30:53 2017 +0100 Missed some array syntax commit 92d11c9a62c2a122b4fef62da8af6bf4be23288d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:21:43 2017 +0100 Fix some styleci issues commit 3a3aa8daca981561594cf3fb542c3e240b174013 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:50:31 2017 +0100 Allow client to send request with JSON syntax, cleanup a but of other code commit dcc3baf2dc554175fdd1de408cb4f7170a6540d4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:47:51 2017 +0100 composer update commit b89dbb6b7a4940b5eed30727f0bd67bc382d98bc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 14 09:50:39 2017 +0100 wip commit 87eb63dc9570f6822324d665bc1658cfcb446554 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 18:44:15 2017 +0100 Allow the syntax for the endpoint to be set in the config page commit 9595a0b68e4b51d77c18e63f9940026aa1325475 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 17:17:34 2017 +0100 Use better scope values in command commit 08e2223a8d56984df826c1cd876f58b00cce8faf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:53:44 2017 +0100 Get media uploads working again commit 4c0d6861324c23afe4145c4ff9a46d8a1ecc10e9 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:09:16 2017 +0100 Show syndication targets properlu in client form and config page commit 63939316a0818c8dfa8cba9919b231c2fdad5821 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:08:40 2017 +0100 Update prism, recompress assets commit 74902237cb227e05386135fb0e2d5330b65e1c4e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:58:41 2017 +0100 Better presentation of syndication targets commit 345cda342051af406d6616a9162a75af625a64e0 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:47:12 2017 +0100 yarn upgrade commit 17de68cc8f26cc472b009bf42942778fac75c890 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:42:49 2017 +0100 composer update commit 7da78294dfdda8c68fc411ab03db65f101c7fc4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:34:56 2017 +0100 Move to using indieauth-client-php client directly, add code to get new tokens commit 0020596b52c1590936d12ec9c458b7e70a06bc8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:31:40 2017 +0100 Add routes for retreiving a new token commit ee0a6763f037629e2a97fa8536c84cbffbbbd7e2 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:30:33 2017 +0100 Show syndication targets as an unformated json string commit 765d032fa883db834a005f61dc553b3b0ef9ee8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:29:21 2017 +0100 Add a migratin for the indieweb users commit 3a5c458f132cf6c308c2e83eb57c61ae64cc2b48 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:28:51 2017 +0100 Add a normlize_url helper function commit fb71bd6418e7903b7d50a90dd600a82a8af03d38 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:27:41 2017 +0100 Add a token to the users table commit 56df9e8aa453394f8b83e8f6a28cc41c66d172f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:18:06 2017 +0100 Set default values for config screen commit 0df8217a82cac91c3129acc492b73d6e8cb69b44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:17:14 2017 +0100 Use the helper function to normalize URLs commit d5f882972ec43e766ae7b9288b1ab3645dd471cf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:15:41 2017 +0100 In a dev environment automatically log in as the pre-created user commit 2c3379d0e560226a4db181e7d45ce02b575990ae Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:14:13 2017 +0100 Add a default user of me commit 5c955803a8218c477e2f2b126811e6bed5f20379 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:13:08 2017 +0100 Add a helpers file, currently only has a function to normalize URLs commit ae052d305c835952c83602d305cfdb08d5be975e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Mar 31 16:08:30 2017 +0100 Allow a user to register/login with his domain commit 638ab8085f18c1bdf9c036c0272a8e88079013f5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Mar 28 16:51:42 2017 +0100 Work on allowing people to “register” for the client
2017-04-21 16:38:39 +01:00
$data['token'] = $user->token ?? 'none defined';
$data['syndication'] = $user->syndication ?? 'none defined';
$data['media-endpoint'] = $user->mediaEndpoint ?? 'none defined';
$data['syntax'] = $user->syntax;
}
return view('micropub.config', compact('data'));
}
/**
Squashed commit of the following: commit 1eecb177b6d5aed8fd7ced14ba5a3fb8d528521b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:19:29 2017 +0100 Fix some Style issues commit 490ca7b8e90b08ad1e59714e09ba49a853cb753e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:06:13 2017 +0100 Run check on POST as well GET methods commit fb588798ce4e6548a0e0be8ec00673b24a41fe40 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:04:47 2017 +0100 Check for exceptions when validating token commit da2ce1a2893c03ae058c07361d860f4e509ac0ee Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:57:27 2017 +0100 Go back to doing all dusk tests commit c34fbf519a0cc528c49e8d5d9628a8891540c294 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:53:17 2017 +0100 Don’t check for error message now commit bd48859f7faf279296c0a15f2f6b18f83a951ebd Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:49:23 2017 +0100 Escape the facade call with backslash commit fcb405d8caf0d23cb70abb67da35cc68e2e86e4f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:43:19 2017 +0100 Regenerate the token within dusk commit 8732f100a075742802447e65a2ba56b7cc69149a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:36:39 2017 +0100 Slight refactor of token verification commit cb0ec39bba5765d55ad024fe3d73ad81877034da Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:29:46 2017 +0100 Stupid forgetting to root the namespace commit 1f2b309d7e77ff195ac8a4aa2f755044d15b4b92 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:22:54 2017 +0100 Try throwing my own exception commit 41dab30389cd04746051b8552e605eb3693ad0f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:12:18 2017 +0100 Checked headers commit 5eb12543adf999c4887a1e63b8d174fb7321202b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:08:37 2017 +0100 Don’t catch exceptions commit 71dbf8d08a7eed9f3795f06811431b7a3c2ddd6c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:00:22 2017 +0100 Log headers for request commit 1109a394456dd07375ccfab5a8436a902f3b27ce Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:54:19 2017 +0100 Add laravels own logs to the artifacts commit f6cd9ee81385bf4366e0e59fc6c34c9b56b6e52c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:38:18 2017 +0100 Log error commit dadf3b3150c74d2199a87a529151d55fc1e67394 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:33:14 2017 +0100 Look for different error message commit 9df2d1b831e6c65283fb5438967f4517752c31ac Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:24:15 2017 +0100 Look for different error message commit 090736735fe3cc5fb4076b77730f7e39bc92d80c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:14:14 2017 +0100 Just checking error message commit 6a766b1bc4af3dd0e335b3f57287086a6e528340 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:08:16 2017 +0100 Look for error message commit a399af496a440e30a0c0a1d4050121b3e491e968 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:00:29 2017 +0100 Simpler setup of php error log commit 3472c48ed50466c2d150e727cb6c1e43b1298d4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:45:11 2017 +0100 Set the php error log commit 978c17f33e2d9c3dd5166744aef924bf21483737 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:37:04 2017 +0100 Set the php-fpm error log commit 0e3407a4781f83bf3c516578a4594eff92b9d4d8 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:18:45 2017 +0100 Save a token for the user commit 951fe7966e18ac9e38526b6dfdc4a75fd4d68a0c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:56:49 2017 +0100 Use the right phrase commit faedc802a46c35b3b9264348ebbd895f4d2b3895 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:41:03 2017 +0100 Easier phrase to find in log commit 71b3c905bb4be0943254e51604af1293cc63cd0f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:35:07 2017 +0100 Check we are logged in commit fd6e3c79f13b9aada395a53b367e316936787298 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:20:14 2017 +0100 Cleanup output commit 231ac5868070f232f5bd455f0d6070621da9ae91 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:00:36 2017 +0100 Try pausing test before running second check commit 754cbafacdb8dd46db2eee699b8e23009c7d0bf5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 20 13:15:10 2017 +0100 Temporary fix for TLS issues on travis-ci and sensiolab’s security checker commit 8e03bba917ca9ba951bac5197e0008ae7188e19a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:24:51 2017 +0100 Use less strict check on no auth endpoint being found commit 91ee495ae1302f269febdd0e14ecbe81222b1014 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:23:44 2017 +0100 Use newer scope values in token commit 989a242b4ff271f4ac6ee0873dc2924506c0efcf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:30:53 2017 +0100 Missed some array syntax commit 92d11c9a62c2a122b4fef62da8af6bf4be23288d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:21:43 2017 +0100 Fix some styleci issues commit 3a3aa8daca981561594cf3fb542c3e240b174013 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:50:31 2017 +0100 Allow client to send request with JSON syntax, cleanup a but of other code commit dcc3baf2dc554175fdd1de408cb4f7170a6540d4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:47:51 2017 +0100 composer update commit b89dbb6b7a4940b5eed30727f0bd67bc382d98bc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 14 09:50:39 2017 +0100 wip commit 87eb63dc9570f6822324d665bc1658cfcb446554 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 18:44:15 2017 +0100 Allow the syntax for the endpoint to be set in the config page commit 9595a0b68e4b51d77c18e63f9940026aa1325475 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 17:17:34 2017 +0100 Use better scope values in command commit 08e2223a8d56984df826c1cd876f58b00cce8faf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:53:44 2017 +0100 Get media uploads working again commit 4c0d6861324c23afe4145c4ff9a46d8a1ecc10e9 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:09:16 2017 +0100 Show syndication targets properlu in client form and config page commit 63939316a0818c8dfa8cba9919b231c2fdad5821 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:08:40 2017 +0100 Update prism, recompress assets commit 74902237cb227e05386135fb0e2d5330b65e1c4e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:58:41 2017 +0100 Better presentation of syndication targets commit 345cda342051af406d6616a9162a75af625a64e0 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:47:12 2017 +0100 yarn upgrade commit 17de68cc8f26cc472b009bf42942778fac75c890 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:42:49 2017 +0100 composer update commit 7da78294dfdda8c68fc411ab03db65f101c7fc4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:34:56 2017 +0100 Move to using indieauth-client-php client directly, add code to get new tokens commit 0020596b52c1590936d12ec9c458b7e70a06bc8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:31:40 2017 +0100 Add routes for retreiving a new token commit ee0a6763f037629e2a97fa8536c84cbffbbbd7e2 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:30:33 2017 +0100 Show syndication targets as an unformated json string commit 765d032fa883db834a005f61dc553b3b0ef9ee8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:29:21 2017 +0100 Add a migratin for the indieweb users commit 3a5c458f132cf6c308c2e83eb57c61ae64cc2b48 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:28:51 2017 +0100 Add a normlize_url helper function commit fb71bd6418e7903b7d50a90dd600a82a8af03d38 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:27:41 2017 +0100 Add a token to the users table commit 56df9e8aa453394f8b83e8f6a28cc41c66d172f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:18:06 2017 +0100 Set default values for config screen commit 0df8217a82cac91c3129acc492b73d6e8cb69b44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:17:14 2017 +0100 Use the helper function to normalize URLs commit d5f882972ec43e766ae7b9288b1ab3645dd471cf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:15:41 2017 +0100 In a dev environment automatically log in as the pre-created user commit 2c3379d0e560226a4db181e7d45ce02b575990ae Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:14:13 2017 +0100 Add a default user of me commit 5c955803a8218c477e2f2b126811e6bed5f20379 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:13:08 2017 +0100 Add a helpers file, currently only has a function to normalize URLs commit ae052d305c835952c83602d305cfdb08d5be975e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Mar 31 16:08:30 2017 +0100 Allow a user to register/login with his domain commit 638ab8085f18c1bdf9c036c0272a8e88079013f5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Mar 28 16:51:42 2017 +0100 Work on allowing people to “register” for the client
2017-04-21 16:38:39 +01:00
* Get a new token.
*
* @param Illuminate\Http\Request $request
* @return view
*/
public function getNewToken(Request $request)
{
if ($request->session()->has('me')) {
$url = normalize_url($request->session()->get('me'));
$authozationEndpoint = $this->indieClient->discoverAuthorizationEndpoint($url);
if ($authozationEndpoint) {
$state = bin2hex(random_bytes(16));
$request->session()->put('state', $state);
$authorizationURL = $this->indieClient->buildAuthorizationURL(
$authozationEndpoint,
$url,
route('micropub-client-get-new-token-callback'), // redirect_uri
route('micropub-client'), //client_id
$state,
'create update' // scope needs to be a setting
);
return redirect($authorizationURL);
}
return redirect()->route('micropub-config')->with('error', 'Unable to find authorisation endpoint');
Squashed commit of the following: commit 1eecb177b6d5aed8fd7ced14ba5a3fb8d528521b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:19:29 2017 +0100 Fix some Style issues commit 490ca7b8e90b08ad1e59714e09ba49a853cb753e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:06:13 2017 +0100 Run check on POST as well GET methods commit fb588798ce4e6548a0e0be8ec00673b24a41fe40 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:04:47 2017 +0100 Check for exceptions when validating token commit da2ce1a2893c03ae058c07361d860f4e509ac0ee Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:57:27 2017 +0100 Go back to doing all dusk tests commit c34fbf519a0cc528c49e8d5d9628a8891540c294 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:53:17 2017 +0100 Don’t check for error message now commit bd48859f7faf279296c0a15f2f6b18f83a951ebd Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:49:23 2017 +0100 Escape the facade call with backslash commit fcb405d8caf0d23cb70abb67da35cc68e2e86e4f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:43:19 2017 +0100 Regenerate the token within dusk commit 8732f100a075742802447e65a2ba56b7cc69149a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:36:39 2017 +0100 Slight refactor of token verification commit cb0ec39bba5765d55ad024fe3d73ad81877034da Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:29:46 2017 +0100 Stupid forgetting to root the namespace commit 1f2b309d7e77ff195ac8a4aa2f755044d15b4b92 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:22:54 2017 +0100 Try throwing my own exception commit 41dab30389cd04746051b8552e605eb3693ad0f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:12:18 2017 +0100 Checked headers commit 5eb12543adf999c4887a1e63b8d174fb7321202b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:08:37 2017 +0100 Don’t catch exceptions commit 71dbf8d08a7eed9f3795f06811431b7a3c2ddd6c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:00:22 2017 +0100 Log headers for request commit 1109a394456dd07375ccfab5a8436a902f3b27ce Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:54:19 2017 +0100 Add laravels own logs to the artifacts commit f6cd9ee81385bf4366e0e59fc6c34c9b56b6e52c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:38:18 2017 +0100 Log error commit dadf3b3150c74d2199a87a529151d55fc1e67394 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:33:14 2017 +0100 Look for different error message commit 9df2d1b831e6c65283fb5438967f4517752c31ac Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:24:15 2017 +0100 Look for different error message commit 090736735fe3cc5fb4076b77730f7e39bc92d80c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:14:14 2017 +0100 Just checking error message commit 6a766b1bc4af3dd0e335b3f57287086a6e528340 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:08:16 2017 +0100 Look for error message commit a399af496a440e30a0c0a1d4050121b3e491e968 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:00:29 2017 +0100 Simpler setup of php error log commit 3472c48ed50466c2d150e727cb6c1e43b1298d4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:45:11 2017 +0100 Set the php error log commit 978c17f33e2d9c3dd5166744aef924bf21483737 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:37:04 2017 +0100 Set the php-fpm error log commit 0e3407a4781f83bf3c516578a4594eff92b9d4d8 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:18:45 2017 +0100 Save a token for the user commit 951fe7966e18ac9e38526b6dfdc4a75fd4d68a0c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:56:49 2017 +0100 Use the right phrase commit faedc802a46c35b3b9264348ebbd895f4d2b3895 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:41:03 2017 +0100 Easier phrase to find in log commit 71b3c905bb4be0943254e51604af1293cc63cd0f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:35:07 2017 +0100 Check we are logged in commit fd6e3c79f13b9aada395a53b367e316936787298 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:20:14 2017 +0100 Cleanup output commit 231ac5868070f232f5bd455f0d6070621da9ae91 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:00:36 2017 +0100 Try pausing test before running second check commit 754cbafacdb8dd46db2eee699b8e23009c7d0bf5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 20 13:15:10 2017 +0100 Temporary fix for TLS issues on travis-ci and sensiolab’s security checker commit 8e03bba917ca9ba951bac5197e0008ae7188e19a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:24:51 2017 +0100 Use less strict check on no auth endpoint being found commit 91ee495ae1302f269febdd0e14ecbe81222b1014 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:23:44 2017 +0100 Use newer scope values in token commit 989a242b4ff271f4ac6ee0873dc2924506c0efcf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:30:53 2017 +0100 Missed some array syntax commit 92d11c9a62c2a122b4fef62da8af6bf4be23288d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:21:43 2017 +0100 Fix some styleci issues commit 3a3aa8daca981561594cf3fb542c3e240b174013 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:50:31 2017 +0100 Allow client to send request with JSON syntax, cleanup a but of other code commit dcc3baf2dc554175fdd1de408cb4f7170a6540d4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:47:51 2017 +0100 composer update commit b89dbb6b7a4940b5eed30727f0bd67bc382d98bc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 14 09:50:39 2017 +0100 wip commit 87eb63dc9570f6822324d665bc1658cfcb446554 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 18:44:15 2017 +0100 Allow the syntax for the endpoint to be set in the config page commit 9595a0b68e4b51d77c18e63f9940026aa1325475 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 17:17:34 2017 +0100 Use better scope values in command commit 08e2223a8d56984df826c1cd876f58b00cce8faf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:53:44 2017 +0100 Get media uploads working again commit 4c0d6861324c23afe4145c4ff9a46d8a1ecc10e9 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:09:16 2017 +0100 Show syndication targets properlu in client form and config page commit 63939316a0818c8dfa8cba9919b231c2fdad5821 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:08:40 2017 +0100 Update prism, recompress assets commit 74902237cb227e05386135fb0e2d5330b65e1c4e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:58:41 2017 +0100 Better presentation of syndication targets commit 345cda342051af406d6616a9162a75af625a64e0 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:47:12 2017 +0100 yarn upgrade commit 17de68cc8f26cc472b009bf42942778fac75c890 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:42:49 2017 +0100 composer update commit 7da78294dfdda8c68fc411ab03db65f101c7fc4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:34:56 2017 +0100 Move to using indieauth-client-php client directly, add code to get new tokens commit 0020596b52c1590936d12ec9c458b7e70a06bc8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:31:40 2017 +0100 Add routes for retreiving a new token commit ee0a6763f037629e2a97fa8536c84cbffbbbd7e2 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:30:33 2017 +0100 Show syndication targets as an unformated json string commit 765d032fa883db834a005f61dc553b3b0ef9ee8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:29:21 2017 +0100 Add a migratin for the indieweb users commit 3a5c458f132cf6c308c2e83eb57c61ae64cc2b48 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:28:51 2017 +0100 Add a normlize_url helper function commit fb71bd6418e7903b7d50a90dd600a82a8af03d38 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:27:41 2017 +0100 Add a token to the users table commit 56df9e8aa453394f8b83e8f6a28cc41c66d172f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:18:06 2017 +0100 Set default values for config screen commit 0df8217a82cac91c3129acc492b73d6e8cb69b44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:17:14 2017 +0100 Use the helper function to normalize URLs commit d5f882972ec43e766ae7b9288b1ab3645dd471cf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:15:41 2017 +0100 In a dev environment automatically log in as the pre-created user commit 2c3379d0e560226a4db181e7d45ce02b575990ae Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:14:13 2017 +0100 Add a default user of me commit 5c955803a8218c477e2f2b126811e6bed5f20379 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:13:08 2017 +0100 Add a helpers file, currently only has a function to normalize URLs commit ae052d305c835952c83602d305cfdb08d5be975e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Mar 31 16:08:30 2017 +0100 Allow a user to register/login with his domain commit 638ab8085f18c1bdf9c036c0272a8e88079013f5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Mar 28 16:51:42 2017 +0100 Work on allowing people to “register” for the client
2017-04-21 16:38:39 +01:00
}
return redirect()->route('micropub-config')->with('error', 'You arent logged in');
Squashed commit of the following: commit 1eecb177b6d5aed8fd7ced14ba5a3fb8d528521b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:19:29 2017 +0100 Fix some Style issues commit 490ca7b8e90b08ad1e59714e09ba49a853cb753e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:06:13 2017 +0100 Run check on POST as well GET methods commit fb588798ce4e6548a0e0be8ec00673b24a41fe40 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:04:47 2017 +0100 Check for exceptions when validating token commit da2ce1a2893c03ae058c07361d860f4e509ac0ee Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:57:27 2017 +0100 Go back to doing all dusk tests commit c34fbf519a0cc528c49e8d5d9628a8891540c294 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:53:17 2017 +0100 Don’t check for error message now commit bd48859f7faf279296c0a15f2f6b18f83a951ebd Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:49:23 2017 +0100 Escape the facade call with backslash commit fcb405d8caf0d23cb70abb67da35cc68e2e86e4f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:43:19 2017 +0100 Regenerate the token within dusk commit 8732f100a075742802447e65a2ba56b7cc69149a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:36:39 2017 +0100 Slight refactor of token verification commit cb0ec39bba5765d55ad024fe3d73ad81877034da Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:29:46 2017 +0100 Stupid forgetting to root the namespace commit 1f2b309d7e77ff195ac8a4aa2f755044d15b4b92 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:22:54 2017 +0100 Try throwing my own exception commit 41dab30389cd04746051b8552e605eb3693ad0f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:12:18 2017 +0100 Checked headers commit 5eb12543adf999c4887a1e63b8d174fb7321202b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:08:37 2017 +0100 Don’t catch exceptions commit 71dbf8d08a7eed9f3795f06811431b7a3c2ddd6c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:00:22 2017 +0100 Log headers for request commit 1109a394456dd07375ccfab5a8436a902f3b27ce Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:54:19 2017 +0100 Add laravels own logs to the artifacts commit f6cd9ee81385bf4366e0e59fc6c34c9b56b6e52c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:38:18 2017 +0100 Log error commit dadf3b3150c74d2199a87a529151d55fc1e67394 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:33:14 2017 +0100 Look for different error message commit 9df2d1b831e6c65283fb5438967f4517752c31ac Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:24:15 2017 +0100 Look for different error message commit 090736735fe3cc5fb4076b77730f7e39bc92d80c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:14:14 2017 +0100 Just checking error message commit 6a766b1bc4af3dd0e335b3f57287086a6e528340 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:08:16 2017 +0100 Look for error message commit a399af496a440e30a0c0a1d4050121b3e491e968 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:00:29 2017 +0100 Simpler setup of php error log commit 3472c48ed50466c2d150e727cb6c1e43b1298d4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:45:11 2017 +0100 Set the php error log commit 978c17f33e2d9c3dd5166744aef924bf21483737 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:37:04 2017 +0100 Set the php-fpm error log commit 0e3407a4781f83bf3c516578a4594eff92b9d4d8 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:18:45 2017 +0100 Save a token for the user commit 951fe7966e18ac9e38526b6dfdc4a75fd4d68a0c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:56:49 2017 +0100 Use the right phrase commit faedc802a46c35b3b9264348ebbd895f4d2b3895 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:41:03 2017 +0100 Easier phrase to find in log commit 71b3c905bb4be0943254e51604af1293cc63cd0f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:35:07 2017 +0100 Check we are logged in commit fd6e3c79f13b9aada395a53b367e316936787298 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:20:14 2017 +0100 Cleanup output commit 231ac5868070f232f5bd455f0d6070621da9ae91 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:00:36 2017 +0100 Try pausing test before running second check commit 754cbafacdb8dd46db2eee699b8e23009c7d0bf5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 20 13:15:10 2017 +0100 Temporary fix for TLS issues on travis-ci and sensiolab’s security checker commit 8e03bba917ca9ba951bac5197e0008ae7188e19a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:24:51 2017 +0100 Use less strict check on no auth endpoint being found commit 91ee495ae1302f269febdd0e14ecbe81222b1014 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:23:44 2017 +0100 Use newer scope values in token commit 989a242b4ff271f4ac6ee0873dc2924506c0efcf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:30:53 2017 +0100 Missed some array syntax commit 92d11c9a62c2a122b4fef62da8af6bf4be23288d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:21:43 2017 +0100 Fix some styleci issues commit 3a3aa8daca981561594cf3fb542c3e240b174013 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:50:31 2017 +0100 Allow client to send request with JSON syntax, cleanup a but of other code commit dcc3baf2dc554175fdd1de408cb4f7170a6540d4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:47:51 2017 +0100 composer update commit b89dbb6b7a4940b5eed30727f0bd67bc382d98bc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 14 09:50:39 2017 +0100 wip commit 87eb63dc9570f6822324d665bc1658cfcb446554 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 18:44:15 2017 +0100 Allow the syntax for the endpoint to be set in the config page commit 9595a0b68e4b51d77c18e63f9940026aa1325475 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 17:17:34 2017 +0100 Use better scope values in command commit 08e2223a8d56984df826c1cd876f58b00cce8faf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:53:44 2017 +0100 Get media uploads working again commit 4c0d6861324c23afe4145c4ff9a46d8a1ecc10e9 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:09:16 2017 +0100 Show syndication targets properlu in client form and config page commit 63939316a0818c8dfa8cba9919b231c2fdad5821 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:08:40 2017 +0100 Update prism, recompress assets commit 74902237cb227e05386135fb0e2d5330b65e1c4e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:58:41 2017 +0100 Better presentation of syndication targets commit 345cda342051af406d6616a9162a75af625a64e0 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:47:12 2017 +0100 yarn upgrade commit 17de68cc8f26cc472b009bf42942778fac75c890 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:42:49 2017 +0100 composer update commit 7da78294dfdda8c68fc411ab03db65f101c7fc4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:34:56 2017 +0100 Move to using indieauth-client-php client directly, add code to get new tokens commit 0020596b52c1590936d12ec9c458b7e70a06bc8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:31:40 2017 +0100 Add routes for retreiving a new token commit ee0a6763f037629e2a97fa8536c84cbffbbbd7e2 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:30:33 2017 +0100 Show syndication targets as an unformated json string commit 765d032fa883db834a005f61dc553b3b0ef9ee8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:29:21 2017 +0100 Add a migratin for the indieweb users commit 3a5c458f132cf6c308c2e83eb57c61ae64cc2b48 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:28:51 2017 +0100 Add a normlize_url helper function commit fb71bd6418e7903b7d50a90dd600a82a8af03d38 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:27:41 2017 +0100 Add a token to the users table commit 56df9e8aa453394f8b83e8f6a28cc41c66d172f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:18:06 2017 +0100 Set default values for config screen commit 0df8217a82cac91c3129acc492b73d6e8cb69b44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:17:14 2017 +0100 Use the helper function to normalize URLs commit d5f882972ec43e766ae7b9288b1ab3645dd471cf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:15:41 2017 +0100 In a dev environment automatically log in as the pre-created user commit 2c3379d0e560226a4db181e7d45ce02b575990ae Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:14:13 2017 +0100 Add a default user of me commit 5c955803a8218c477e2f2b126811e6bed5f20379 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:13:08 2017 +0100 Add a helpers file, currently only has a function to normalize URLs commit ae052d305c835952c83602d305cfdb08d5be975e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Mar 31 16:08:30 2017 +0100 Allow a user to register/login with his domain commit 638ab8085f18c1bdf9c036c0272a8e88079013f5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Mar 28 16:51:42 2017 +0100 Work on allowing people to “register” for the client
2017-04-21 16:38:39 +01:00
}
/**
* The callback for getting a token.
*/
public function getNewTokenCallback(Request $request)
{
if ($request->input('state') !== $request->session()->get('state')) {
return redirect()->route('micropub-config')->with('error', 'The <code>state</code> didnt match.');
Squashed commit of the following: commit 1eecb177b6d5aed8fd7ced14ba5a3fb8d528521b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:19:29 2017 +0100 Fix some Style issues commit 490ca7b8e90b08ad1e59714e09ba49a853cb753e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:06:13 2017 +0100 Run check on POST as well GET methods commit fb588798ce4e6548a0e0be8ec00673b24a41fe40 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:04:47 2017 +0100 Check for exceptions when validating token commit da2ce1a2893c03ae058c07361d860f4e509ac0ee Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:57:27 2017 +0100 Go back to doing all dusk tests commit c34fbf519a0cc528c49e8d5d9628a8891540c294 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:53:17 2017 +0100 Don’t check for error message now commit bd48859f7faf279296c0a15f2f6b18f83a951ebd Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:49:23 2017 +0100 Escape the facade call with backslash commit fcb405d8caf0d23cb70abb67da35cc68e2e86e4f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:43:19 2017 +0100 Regenerate the token within dusk commit 8732f100a075742802447e65a2ba56b7cc69149a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:36:39 2017 +0100 Slight refactor of token verification commit cb0ec39bba5765d55ad024fe3d73ad81877034da Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:29:46 2017 +0100 Stupid forgetting to root the namespace commit 1f2b309d7e77ff195ac8a4aa2f755044d15b4b92 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:22:54 2017 +0100 Try throwing my own exception commit 41dab30389cd04746051b8552e605eb3693ad0f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:12:18 2017 +0100 Checked headers commit 5eb12543adf999c4887a1e63b8d174fb7321202b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:08:37 2017 +0100 Don’t catch exceptions commit 71dbf8d08a7eed9f3795f06811431b7a3c2ddd6c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:00:22 2017 +0100 Log headers for request commit 1109a394456dd07375ccfab5a8436a902f3b27ce Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:54:19 2017 +0100 Add laravels own logs to the artifacts commit f6cd9ee81385bf4366e0e59fc6c34c9b56b6e52c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:38:18 2017 +0100 Log error commit dadf3b3150c74d2199a87a529151d55fc1e67394 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:33:14 2017 +0100 Look for different error message commit 9df2d1b831e6c65283fb5438967f4517752c31ac Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:24:15 2017 +0100 Look for different error message commit 090736735fe3cc5fb4076b77730f7e39bc92d80c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:14:14 2017 +0100 Just checking error message commit 6a766b1bc4af3dd0e335b3f57287086a6e528340 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:08:16 2017 +0100 Look for error message commit a399af496a440e30a0c0a1d4050121b3e491e968 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:00:29 2017 +0100 Simpler setup of php error log commit 3472c48ed50466c2d150e727cb6c1e43b1298d4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:45:11 2017 +0100 Set the php error log commit 978c17f33e2d9c3dd5166744aef924bf21483737 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:37:04 2017 +0100 Set the php-fpm error log commit 0e3407a4781f83bf3c516578a4594eff92b9d4d8 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:18:45 2017 +0100 Save a token for the user commit 951fe7966e18ac9e38526b6dfdc4a75fd4d68a0c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:56:49 2017 +0100 Use the right phrase commit faedc802a46c35b3b9264348ebbd895f4d2b3895 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:41:03 2017 +0100 Easier phrase to find in log commit 71b3c905bb4be0943254e51604af1293cc63cd0f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:35:07 2017 +0100 Check we are logged in commit fd6e3c79f13b9aada395a53b367e316936787298 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:20:14 2017 +0100 Cleanup output commit 231ac5868070f232f5bd455f0d6070621da9ae91 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:00:36 2017 +0100 Try pausing test before running second check commit 754cbafacdb8dd46db2eee699b8e23009c7d0bf5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 20 13:15:10 2017 +0100 Temporary fix for TLS issues on travis-ci and sensiolab’s security checker commit 8e03bba917ca9ba951bac5197e0008ae7188e19a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:24:51 2017 +0100 Use less strict check on no auth endpoint being found commit 91ee495ae1302f269febdd0e14ecbe81222b1014 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:23:44 2017 +0100 Use newer scope values in token commit 989a242b4ff271f4ac6ee0873dc2924506c0efcf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:30:53 2017 +0100 Missed some array syntax commit 92d11c9a62c2a122b4fef62da8af6bf4be23288d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:21:43 2017 +0100 Fix some styleci issues commit 3a3aa8daca981561594cf3fb542c3e240b174013 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:50:31 2017 +0100 Allow client to send request with JSON syntax, cleanup a but of other code commit dcc3baf2dc554175fdd1de408cb4f7170a6540d4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:47:51 2017 +0100 composer update commit b89dbb6b7a4940b5eed30727f0bd67bc382d98bc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 14 09:50:39 2017 +0100 wip commit 87eb63dc9570f6822324d665bc1658cfcb446554 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 18:44:15 2017 +0100 Allow the syntax for the endpoint to be set in the config page commit 9595a0b68e4b51d77c18e63f9940026aa1325475 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 17:17:34 2017 +0100 Use better scope values in command commit 08e2223a8d56984df826c1cd876f58b00cce8faf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:53:44 2017 +0100 Get media uploads working again commit 4c0d6861324c23afe4145c4ff9a46d8a1ecc10e9 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:09:16 2017 +0100 Show syndication targets properlu in client form and config page commit 63939316a0818c8dfa8cba9919b231c2fdad5821 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:08:40 2017 +0100 Update prism, recompress assets commit 74902237cb227e05386135fb0e2d5330b65e1c4e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:58:41 2017 +0100 Better presentation of syndication targets commit 345cda342051af406d6616a9162a75af625a64e0 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:47:12 2017 +0100 yarn upgrade commit 17de68cc8f26cc472b009bf42942778fac75c890 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:42:49 2017 +0100 composer update commit 7da78294dfdda8c68fc411ab03db65f101c7fc4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:34:56 2017 +0100 Move to using indieauth-client-php client directly, add code to get new tokens commit 0020596b52c1590936d12ec9c458b7e70a06bc8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:31:40 2017 +0100 Add routes for retreiving a new token commit ee0a6763f037629e2a97fa8536c84cbffbbbd7e2 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:30:33 2017 +0100 Show syndication targets as an unformated json string commit 765d032fa883db834a005f61dc553b3b0ef9ee8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:29:21 2017 +0100 Add a migratin for the indieweb users commit 3a5c458f132cf6c308c2e83eb57c61ae64cc2b48 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:28:51 2017 +0100 Add a normlize_url helper function commit fb71bd6418e7903b7d50a90dd600a82a8af03d38 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:27:41 2017 +0100 Add a token to the users table commit 56df9e8aa453394f8b83e8f6a28cc41c66d172f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:18:06 2017 +0100 Set default values for config screen commit 0df8217a82cac91c3129acc492b73d6e8cb69b44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:17:14 2017 +0100 Use the helper function to normalize URLs commit d5f882972ec43e766ae7b9288b1ab3645dd471cf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:15:41 2017 +0100 In a dev environment automatically log in as the pre-created user commit 2c3379d0e560226a4db181e7d45ce02b575990ae Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:14:13 2017 +0100 Add a default user of me commit 5c955803a8218c477e2f2b126811e6bed5f20379 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:13:08 2017 +0100 Add a helpers file, currently only has a function to normalize URLs commit ae052d305c835952c83602d305cfdb08d5be975e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Mar 31 16:08:30 2017 +0100 Allow a user to register/login with his domain commit 638ab8085f18c1bdf9c036c0272a8e88079013f5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Mar 28 16:51:42 2017 +0100 Work on allowing people to “register” for the client
2017-04-21 16:38:39 +01:00
}
$tokenEndpoint = $this->indieClient->discoverTokenEndpoint(normalize_url($request->input('me')));
if ($tokenEndpoint) {
$token = $this->indieClient->getAccessToken(
$tokenEndpoint,
$request->input('code'),
$request->input('me'),
route('micropub-client-get-new-token-callback'), // redirect_uri
route('micropub-client') // client_id
Squashed commit of the following: commit 1eecb177b6d5aed8fd7ced14ba5a3fb8d528521b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:19:29 2017 +0100 Fix some Style issues commit 490ca7b8e90b08ad1e59714e09ba49a853cb753e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:06:13 2017 +0100 Run check on POST as well GET methods commit fb588798ce4e6548a0e0be8ec00673b24a41fe40 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:04:47 2017 +0100 Check for exceptions when validating token commit da2ce1a2893c03ae058c07361d860f4e509ac0ee Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:57:27 2017 +0100 Go back to doing all dusk tests commit c34fbf519a0cc528c49e8d5d9628a8891540c294 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:53:17 2017 +0100 Don’t check for error message now commit bd48859f7faf279296c0a15f2f6b18f83a951ebd Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:49:23 2017 +0100 Escape the facade call with backslash commit fcb405d8caf0d23cb70abb67da35cc68e2e86e4f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:43:19 2017 +0100 Regenerate the token within dusk commit 8732f100a075742802447e65a2ba56b7cc69149a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:36:39 2017 +0100 Slight refactor of token verification commit cb0ec39bba5765d55ad024fe3d73ad81877034da Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:29:46 2017 +0100 Stupid forgetting to root the namespace commit 1f2b309d7e77ff195ac8a4aa2f755044d15b4b92 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:22:54 2017 +0100 Try throwing my own exception commit 41dab30389cd04746051b8552e605eb3693ad0f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:12:18 2017 +0100 Checked headers commit 5eb12543adf999c4887a1e63b8d174fb7321202b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:08:37 2017 +0100 Don’t catch exceptions commit 71dbf8d08a7eed9f3795f06811431b7a3c2ddd6c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:00:22 2017 +0100 Log headers for request commit 1109a394456dd07375ccfab5a8436a902f3b27ce Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:54:19 2017 +0100 Add laravels own logs to the artifacts commit f6cd9ee81385bf4366e0e59fc6c34c9b56b6e52c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:38:18 2017 +0100 Log error commit dadf3b3150c74d2199a87a529151d55fc1e67394 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:33:14 2017 +0100 Look for different error message commit 9df2d1b831e6c65283fb5438967f4517752c31ac Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:24:15 2017 +0100 Look for different error message commit 090736735fe3cc5fb4076b77730f7e39bc92d80c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:14:14 2017 +0100 Just checking error message commit 6a766b1bc4af3dd0e335b3f57287086a6e528340 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:08:16 2017 +0100 Look for error message commit a399af496a440e30a0c0a1d4050121b3e491e968 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:00:29 2017 +0100 Simpler setup of php error log commit 3472c48ed50466c2d150e727cb6c1e43b1298d4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:45:11 2017 +0100 Set the php error log commit 978c17f33e2d9c3dd5166744aef924bf21483737 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:37:04 2017 +0100 Set the php-fpm error log commit 0e3407a4781f83bf3c516578a4594eff92b9d4d8 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:18:45 2017 +0100 Save a token for the user commit 951fe7966e18ac9e38526b6dfdc4a75fd4d68a0c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:56:49 2017 +0100 Use the right phrase commit faedc802a46c35b3b9264348ebbd895f4d2b3895 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:41:03 2017 +0100 Easier phrase to find in log commit 71b3c905bb4be0943254e51604af1293cc63cd0f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:35:07 2017 +0100 Check we are logged in commit fd6e3c79f13b9aada395a53b367e316936787298 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:20:14 2017 +0100 Cleanup output commit 231ac5868070f232f5bd455f0d6070621da9ae91 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:00:36 2017 +0100 Try pausing test before running second check commit 754cbafacdb8dd46db2eee699b8e23009c7d0bf5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 20 13:15:10 2017 +0100 Temporary fix for TLS issues on travis-ci and sensiolab’s security checker commit 8e03bba917ca9ba951bac5197e0008ae7188e19a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:24:51 2017 +0100 Use less strict check on no auth endpoint being found commit 91ee495ae1302f269febdd0e14ecbe81222b1014 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:23:44 2017 +0100 Use newer scope values in token commit 989a242b4ff271f4ac6ee0873dc2924506c0efcf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:30:53 2017 +0100 Missed some array syntax commit 92d11c9a62c2a122b4fef62da8af6bf4be23288d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:21:43 2017 +0100 Fix some styleci issues commit 3a3aa8daca981561594cf3fb542c3e240b174013 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:50:31 2017 +0100 Allow client to send request with JSON syntax, cleanup a but of other code commit dcc3baf2dc554175fdd1de408cb4f7170a6540d4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:47:51 2017 +0100 composer update commit b89dbb6b7a4940b5eed30727f0bd67bc382d98bc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 14 09:50:39 2017 +0100 wip commit 87eb63dc9570f6822324d665bc1658cfcb446554 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 18:44:15 2017 +0100 Allow the syntax for the endpoint to be set in the config page commit 9595a0b68e4b51d77c18e63f9940026aa1325475 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 17:17:34 2017 +0100 Use better scope values in command commit 08e2223a8d56984df826c1cd876f58b00cce8faf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:53:44 2017 +0100 Get media uploads working again commit 4c0d6861324c23afe4145c4ff9a46d8a1ecc10e9 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:09:16 2017 +0100 Show syndication targets properlu in client form and config page commit 63939316a0818c8dfa8cba9919b231c2fdad5821 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:08:40 2017 +0100 Update prism, recompress assets commit 74902237cb227e05386135fb0e2d5330b65e1c4e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:58:41 2017 +0100 Better presentation of syndication targets commit 345cda342051af406d6616a9162a75af625a64e0 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:47:12 2017 +0100 yarn upgrade commit 17de68cc8f26cc472b009bf42942778fac75c890 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:42:49 2017 +0100 composer update commit 7da78294dfdda8c68fc411ab03db65f101c7fc4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:34:56 2017 +0100 Move to using indieauth-client-php client directly, add code to get new tokens commit 0020596b52c1590936d12ec9c458b7e70a06bc8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:31:40 2017 +0100 Add routes for retreiving a new token commit ee0a6763f037629e2a97fa8536c84cbffbbbd7e2 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:30:33 2017 +0100 Show syndication targets as an unformated json string commit 765d032fa883db834a005f61dc553b3b0ef9ee8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:29:21 2017 +0100 Add a migratin for the indieweb users commit 3a5c458f132cf6c308c2e83eb57c61ae64cc2b48 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:28:51 2017 +0100 Add a normlize_url helper function commit fb71bd6418e7903b7d50a90dd600a82a8af03d38 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:27:41 2017 +0100 Add a token to the users table commit 56df9e8aa453394f8b83e8f6a28cc41c66d172f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:18:06 2017 +0100 Set default values for config screen commit 0df8217a82cac91c3129acc492b73d6e8cb69b44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:17:14 2017 +0100 Use the helper function to normalize URLs commit d5f882972ec43e766ae7b9288b1ab3645dd471cf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:15:41 2017 +0100 In a dev environment automatically log in as the pre-created user commit 2c3379d0e560226a4db181e7d45ce02b575990ae Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:14:13 2017 +0100 Add a default user of me commit 5c955803a8218c477e2f2b126811e6bed5f20379 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:13:08 2017 +0100 Add a helpers file, currently only has a function to normalize URLs commit ae052d305c835952c83602d305cfdb08d5be975e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Mar 31 16:08:30 2017 +0100 Allow a user to register/login with his domain commit 638ab8085f18c1bdf9c036c0272a8e88079013f5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Mar 28 16:51:42 2017 +0100 Work on allowing people to “register” for the client
2017-04-21 16:38:39 +01:00
);
if (array_key_exists('access_token', $token)) {
$url = normalize_url($token['me']);
$user = IndieWebUser::where('me', $url)->firstOrFail();
$user->token = $token['access_token'];
$user->save();
return redirect()->route('micropub-config');
Squashed commit of the following: commit 1eecb177b6d5aed8fd7ced14ba5a3fb8d528521b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:19:29 2017 +0100 Fix some Style issues commit 490ca7b8e90b08ad1e59714e09ba49a853cb753e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:06:13 2017 +0100 Run check on POST as well GET methods commit fb588798ce4e6548a0e0be8ec00673b24a41fe40 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:04:47 2017 +0100 Check for exceptions when validating token commit da2ce1a2893c03ae058c07361d860f4e509ac0ee Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:57:27 2017 +0100 Go back to doing all dusk tests commit c34fbf519a0cc528c49e8d5d9628a8891540c294 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:53:17 2017 +0100 Don’t check for error message now commit bd48859f7faf279296c0a15f2f6b18f83a951ebd Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:49:23 2017 +0100 Escape the facade call with backslash commit fcb405d8caf0d23cb70abb67da35cc68e2e86e4f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:43:19 2017 +0100 Regenerate the token within dusk commit 8732f100a075742802447e65a2ba56b7cc69149a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:36:39 2017 +0100 Slight refactor of token verification commit cb0ec39bba5765d55ad024fe3d73ad81877034da Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:29:46 2017 +0100 Stupid forgetting to root the namespace commit 1f2b309d7e77ff195ac8a4aa2f755044d15b4b92 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:22:54 2017 +0100 Try throwing my own exception commit 41dab30389cd04746051b8552e605eb3693ad0f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:12:18 2017 +0100 Checked headers commit 5eb12543adf999c4887a1e63b8d174fb7321202b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:08:37 2017 +0100 Don’t catch exceptions commit 71dbf8d08a7eed9f3795f06811431b7a3c2ddd6c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:00:22 2017 +0100 Log headers for request commit 1109a394456dd07375ccfab5a8436a902f3b27ce Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:54:19 2017 +0100 Add laravels own logs to the artifacts commit f6cd9ee81385bf4366e0e59fc6c34c9b56b6e52c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:38:18 2017 +0100 Log error commit dadf3b3150c74d2199a87a529151d55fc1e67394 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:33:14 2017 +0100 Look for different error message commit 9df2d1b831e6c65283fb5438967f4517752c31ac Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:24:15 2017 +0100 Look for different error message commit 090736735fe3cc5fb4076b77730f7e39bc92d80c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:14:14 2017 +0100 Just checking error message commit 6a766b1bc4af3dd0e335b3f57287086a6e528340 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:08:16 2017 +0100 Look for error message commit a399af496a440e30a0c0a1d4050121b3e491e968 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:00:29 2017 +0100 Simpler setup of php error log commit 3472c48ed50466c2d150e727cb6c1e43b1298d4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:45:11 2017 +0100 Set the php error log commit 978c17f33e2d9c3dd5166744aef924bf21483737 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:37:04 2017 +0100 Set the php-fpm error log commit 0e3407a4781f83bf3c516578a4594eff92b9d4d8 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:18:45 2017 +0100 Save a token for the user commit 951fe7966e18ac9e38526b6dfdc4a75fd4d68a0c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:56:49 2017 +0100 Use the right phrase commit faedc802a46c35b3b9264348ebbd895f4d2b3895 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:41:03 2017 +0100 Easier phrase to find in log commit 71b3c905bb4be0943254e51604af1293cc63cd0f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:35:07 2017 +0100 Check we are logged in commit fd6e3c79f13b9aada395a53b367e316936787298 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:20:14 2017 +0100 Cleanup output commit 231ac5868070f232f5bd455f0d6070621da9ae91 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:00:36 2017 +0100 Try pausing test before running second check commit 754cbafacdb8dd46db2eee699b8e23009c7d0bf5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 20 13:15:10 2017 +0100 Temporary fix for TLS issues on travis-ci and sensiolab’s security checker commit 8e03bba917ca9ba951bac5197e0008ae7188e19a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:24:51 2017 +0100 Use less strict check on no auth endpoint being found commit 91ee495ae1302f269febdd0e14ecbe81222b1014 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:23:44 2017 +0100 Use newer scope values in token commit 989a242b4ff271f4ac6ee0873dc2924506c0efcf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:30:53 2017 +0100 Missed some array syntax commit 92d11c9a62c2a122b4fef62da8af6bf4be23288d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:21:43 2017 +0100 Fix some styleci issues commit 3a3aa8daca981561594cf3fb542c3e240b174013 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:50:31 2017 +0100 Allow client to send request with JSON syntax, cleanup a but of other code commit dcc3baf2dc554175fdd1de408cb4f7170a6540d4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:47:51 2017 +0100 composer update commit b89dbb6b7a4940b5eed30727f0bd67bc382d98bc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 14 09:50:39 2017 +0100 wip commit 87eb63dc9570f6822324d665bc1658cfcb446554 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 18:44:15 2017 +0100 Allow the syntax for the endpoint to be set in the config page commit 9595a0b68e4b51d77c18e63f9940026aa1325475 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 17:17:34 2017 +0100 Use better scope values in command commit 08e2223a8d56984df826c1cd876f58b00cce8faf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:53:44 2017 +0100 Get media uploads working again commit 4c0d6861324c23afe4145c4ff9a46d8a1ecc10e9 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:09:16 2017 +0100 Show syndication targets properlu in client form and config page commit 63939316a0818c8dfa8cba9919b231c2fdad5821 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:08:40 2017 +0100 Update prism, recompress assets commit 74902237cb227e05386135fb0e2d5330b65e1c4e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:58:41 2017 +0100 Better presentation of syndication targets commit 345cda342051af406d6616a9162a75af625a64e0 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:47:12 2017 +0100 yarn upgrade commit 17de68cc8f26cc472b009bf42942778fac75c890 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:42:49 2017 +0100 composer update commit 7da78294dfdda8c68fc411ab03db65f101c7fc4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:34:56 2017 +0100 Move to using indieauth-client-php client directly, add code to get new tokens commit 0020596b52c1590936d12ec9c458b7e70a06bc8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:31:40 2017 +0100 Add routes for retreiving a new token commit ee0a6763f037629e2a97fa8536c84cbffbbbd7e2 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:30:33 2017 +0100 Show syndication targets as an unformated json string commit 765d032fa883db834a005f61dc553b3b0ef9ee8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:29:21 2017 +0100 Add a migratin for the indieweb users commit 3a5c458f132cf6c308c2e83eb57c61ae64cc2b48 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:28:51 2017 +0100 Add a normlize_url helper function commit fb71bd6418e7903b7d50a90dd600a82a8af03d38 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:27:41 2017 +0100 Add a token to the users table commit 56df9e8aa453394f8b83e8f6a28cc41c66d172f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:18:06 2017 +0100 Set default values for config screen commit 0df8217a82cac91c3129acc492b73d6e8cb69b44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:17:14 2017 +0100 Use the helper function to normalize URLs commit d5f882972ec43e766ae7b9288b1ab3645dd471cf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:15:41 2017 +0100 In a dev environment automatically log in as the pre-created user commit 2c3379d0e560226a4db181e7d45ce02b575990ae Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:14:13 2017 +0100 Add a default user of me commit 5c955803a8218c477e2f2b126811e6bed5f20379 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:13:08 2017 +0100 Add a helpers file, currently only has a function to normalize URLs commit ae052d305c835952c83602d305cfdb08d5be975e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Mar 31 16:08:30 2017 +0100 Allow a user to register/login with his domain commit 638ab8085f18c1bdf9c036c0272a8e88079013f5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Mar 28 16:51:42 2017 +0100 Work on allowing people to “register” for the client
2017-04-21 16:38:39 +01:00
}
return redirect()->route('micropub-config')->with('error', 'Error getting token from the endpoint');
Squashed commit of the following: commit 1eecb177b6d5aed8fd7ced14ba5a3fb8d528521b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:19:29 2017 +0100 Fix some Style issues commit 490ca7b8e90b08ad1e59714e09ba49a853cb753e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:06:13 2017 +0100 Run check on POST as well GET methods commit fb588798ce4e6548a0e0be8ec00673b24a41fe40 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:04:47 2017 +0100 Check for exceptions when validating token commit da2ce1a2893c03ae058c07361d860f4e509ac0ee Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:57:27 2017 +0100 Go back to doing all dusk tests commit c34fbf519a0cc528c49e8d5d9628a8891540c294 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:53:17 2017 +0100 Don’t check for error message now commit bd48859f7faf279296c0a15f2f6b18f83a951ebd Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:49:23 2017 +0100 Escape the facade call with backslash commit fcb405d8caf0d23cb70abb67da35cc68e2e86e4f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:43:19 2017 +0100 Regenerate the token within dusk commit 8732f100a075742802447e65a2ba56b7cc69149a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:36:39 2017 +0100 Slight refactor of token verification commit cb0ec39bba5765d55ad024fe3d73ad81877034da Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:29:46 2017 +0100 Stupid forgetting to root the namespace commit 1f2b309d7e77ff195ac8a4aa2f755044d15b4b92 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:22:54 2017 +0100 Try throwing my own exception commit 41dab30389cd04746051b8552e605eb3693ad0f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:12:18 2017 +0100 Checked headers commit 5eb12543adf999c4887a1e63b8d174fb7321202b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:08:37 2017 +0100 Don’t catch exceptions commit 71dbf8d08a7eed9f3795f06811431b7a3c2ddd6c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:00:22 2017 +0100 Log headers for request commit 1109a394456dd07375ccfab5a8436a902f3b27ce Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:54:19 2017 +0100 Add laravels own logs to the artifacts commit f6cd9ee81385bf4366e0e59fc6c34c9b56b6e52c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:38:18 2017 +0100 Log error commit dadf3b3150c74d2199a87a529151d55fc1e67394 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:33:14 2017 +0100 Look for different error message commit 9df2d1b831e6c65283fb5438967f4517752c31ac Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:24:15 2017 +0100 Look for different error message commit 090736735fe3cc5fb4076b77730f7e39bc92d80c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:14:14 2017 +0100 Just checking error message commit 6a766b1bc4af3dd0e335b3f57287086a6e528340 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:08:16 2017 +0100 Look for error message commit a399af496a440e30a0c0a1d4050121b3e491e968 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:00:29 2017 +0100 Simpler setup of php error log commit 3472c48ed50466c2d150e727cb6c1e43b1298d4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:45:11 2017 +0100 Set the php error log commit 978c17f33e2d9c3dd5166744aef924bf21483737 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:37:04 2017 +0100 Set the php-fpm error log commit 0e3407a4781f83bf3c516578a4594eff92b9d4d8 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:18:45 2017 +0100 Save a token for the user commit 951fe7966e18ac9e38526b6dfdc4a75fd4d68a0c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:56:49 2017 +0100 Use the right phrase commit faedc802a46c35b3b9264348ebbd895f4d2b3895 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:41:03 2017 +0100 Easier phrase to find in log commit 71b3c905bb4be0943254e51604af1293cc63cd0f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:35:07 2017 +0100 Check we are logged in commit fd6e3c79f13b9aada395a53b367e316936787298 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:20:14 2017 +0100 Cleanup output commit 231ac5868070f232f5bd455f0d6070621da9ae91 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:00:36 2017 +0100 Try pausing test before running second check commit 754cbafacdb8dd46db2eee699b8e23009c7d0bf5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 20 13:15:10 2017 +0100 Temporary fix for TLS issues on travis-ci and sensiolab’s security checker commit 8e03bba917ca9ba951bac5197e0008ae7188e19a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:24:51 2017 +0100 Use less strict check on no auth endpoint being found commit 91ee495ae1302f269febdd0e14ecbe81222b1014 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:23:44 2017 +0100 Use newer scope values in token commit 989a242b4ff271f4ac6ee0873dc2924506c0efcf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:30:53 2017 +0100 Missed some array syntax commit 92d11c9a62c2a122b4fef62da8af6bf4be23288d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:21:43 2017 +0100 Fix some styleci issues commit 3a3aa8daca981561594cf3fb542c3e240b174013 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:50:31 2017 +0100 Allow client to send request with JSON syntax, cleanup a but of other code commit dcc3baf2dc554175fdd1de408cb4f7170a6540d4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:47:51 2017 +0100 composer update commit b89dbb6b7a4940b5eed30727f0bd67bc382d98bc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 14 09:50:39 2017 +0100 wip commit 87eb63dc9570f6822324d665bc1658cfcb446554 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 18:44:15 2017 +0100 Allow the syntax for the endpoint to be set in the config page commit 9595a0b68e4b51d77c18e63f9940026aa1325475 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 17:17:34 2017 +0100 Use better scope values in command commit 08e2223a8d56984df826c1cd876f58b00cce8faf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:53:44 2017 +0100 Get media uploads working again commit 4c0d6861324c23afe4145c4ff9a46d8a1ecc10e9 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:09:16 2017 +0100 Show syndication targets properlu in client form and config page commit 63939316a0818c8dfa8cba9919b231c2fdad5821 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:08:40 2017 +0100 Update prism, recompress assets commit 74902237cb227e05386135fb0e2d5330b65e1c4e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:58:41 2017 +0100 Better presentation of syndication targets commit 345cda342051af406d6616a9162a75af625a64e0 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:47:12 2017 +0100 yarn upgrade commit 17de68cc8f26cc472b009bf42942778fac75c890 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:42:49 2017 +0100 composer update commit 7da78294dfdda8c68fc411ab03db65f101c7fc4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:34:56 2017 +0100 Move to using indieauth-client-php client directly, add code to get new tokens commit 0020596b52c1590936d12ec9c458b7e70a06bc8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:31:40 2017 +0100 Add routes for retreiving a new token commit ee0a6763f037629e2a97fa8536c84cbffbbbd7e2 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:30:33 2017 +0100 Show syndication targets as an unformated json string commit 765d032fa883db834a005f61dc553b3b0ef9ee8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:29:21 2017 +0100 Add a migratin for the indieweb users commit 3a5c458f132cf6c308c2e83eb57c61ae64cc2b48 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:28:51 2017 +0100 Add a normlize_url helper function commit fb71bd6418e7903b7d50a90dd600a82a8af03d38 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:27:41 2017 +0100 Add a token to the users table commit 56df9e8aa453394f8b83e8f6a28cc41c66d172f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:18:06 2017 +0100 Set default values for config screen commit 0df8217a82cac91c3129acc492b73d6e8cb69b44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:17:14 2017 +0100 Use the helper function to normalize URLs commit d5f882972ec43e766ae7b9288b1ab3645dd471cf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:15:41 2017 +0100 In a dev environment automatically log in as the pre-created user commit 2c3379d0e560226a4db181e7d45ce02b575990ae Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:14:13 2017 +0100 Add a default user of me commit 5c955803a8218c477e2f2b126811e6bed5f20379 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:13:08 2017 +0100 Add a helpers file, currently only has a function to normalize URLs commit ae052d305c835952c83602d305cfdb08d5be975e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Mar 31 16:08:30 2017 +0100 Allow a user to register/login with his domain commit 638ab8085f18c1bdf9c036c0272a8e88079013f5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Mar 28 16:51:42 2017 +0100 Work on allowing people to “register” for the client
2017-04-21 16:38:39 +01:00
}
return redirect()->route('micropub-config')->with('error', 'Unable to find token endpoint');
Squashed commit of the following: commit 1eecb177b6d5aed8fd7ced14ba5a3fb8d528521b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:19:29 2017 +0100 Fix some Style issues commit 490ca7b8e90b08ad1e59714e09ba49a853cb753e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:06:13 2017 +0100 Run check on POST as well GET methods commit fb588798ce4e6548a0e0be8ec00673b24a41fe40 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:04:47 2017 +0100 Check for exceptions when validating token commit da2ce1a2893c03ae058c07361d860f4e509ac0ee Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:57:27 2017 +0100 Go back to doing all dusk tests commit c34fbf519a0cc528c49e8d5d9628a8891540c294 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:53:17 2017 +0100 Don’t check for error message now commit bd48859f7faf279296c0a15f2f6b18f83a951ebd Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:49:23 2017 +0100 Escape the facade call with backslash commit fcb405d8caf0d23cb70abb67da35cc68e2e86e4f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:43:19 2017 +0100 Regenerate the token within dusk commit 8732f100a075742802447e65a2ba56b7cc69149a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:36:39 2017 +0100 Slight refactor of token verification commit cb0ec39bba5765d55ad024fe3d73ad81877034da Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:29:46 2017 +0100 Stupid forgetting to root the namespace commit 1f2b309d7e77ff195ac8a4aa2f755044d15b4b92 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:22:54 2017 +0100 Try throwing my own exception commit 41dab30389cd04746051b8552e605eb3693ad0f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:12:18 2017 +0100 Checked headers commit 5eb12543adf999c4887a1e63b8d174fb7321202b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:08:37 2017 +0100 Don’t catch exceptions commit 71dbf8d08a7eed9f3795f06811431b7a3c2ddd6c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:00:22 2017 +0100 Log headers for request commit 1109a394456dd07375ccfab5a8436a902f3b27ce Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:54:19 2017 +0100 Add laravels own logs to the artifacts commit f6cd9ee81385bf4366e0e59fc6c34c9b56b6e52c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:38:18 2017 +0100 Log error commit dadf3b3150c74d2199a87a529151d55fc1e67394 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:33:14 2017 +0100 Look for different error message commit 9df2d1b831e6c65283fb5438967f4517752c31ac Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:24:15 2017 +0100 Look for different error message commit 090736735fe3cc5fb4076b77730f7e39bc92d80c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:14:14 2017 +0100 Just checking error message commit 6a766b1bc4af3dd0e335b3f57287086a6e528340 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:08:16 2017 +0100 Look for error message commit a399af496a440e30a0c0a1d4050121b3e491e968 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:00:29 2017 +0100 Simpler setup of php error log commit 3472c48ed50466c2d150e727cb6c1e43b1298d4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:45:11 2017 +0100 Set the php error log commit 978c17f33e2d9c3dd5166744aef924bf21483737 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:37:04 2017 +0100 Set the php-fpm error log commit 0e3407a4781f83bf3c516578a4594eff92b9d4d8 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:18:45 2017 +0100 Save a token for the user commit 951fe7966e18ac9e38526b6dfdc4a75fd4d68a0c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:56:49 2017 +0100 Use the right phrase commit faedc802a46c35b3b9264348ebbd895f4d2b3895 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:41:03 2017 +0100 Easier phrase to find in log commit 71b3c905bb4be0943254e51604af1293cc63cd0f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:35:07 2017 +0100 Check we are logged in commit fd6e3c79f13b9aada395a53b367e316936787298 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:20:14 2017 +0100 Cleanup output commit 231ac5868070f232f5bd455f0d6070621da9ae91 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:00:36 2017 +0100 Try pausing test before running second check commit 754cbafacdb8dd46db2eee699b8e23009c7d0bf5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 20 13:15:10 2017 +0100 Temporary fix for TLS issues on travis-ci and sensiolab’s security checker commit 8e03bba917ca9ba951bac5197e0008ae7188e19a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:24:51 2017 +0100 Use less strict check on no auth endpoint being found commit 91ee495ae1302f269febdd0e14ecbe81222b1014 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:23:44 2017 +0100 Use newer scope values in token commit 989a242b4ff271f4ac6ee0873dc2924506c0efcf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:30:53 2017 +0100 Missed some array syntax commit 92d11c9a62c2a122b4fef62da8af6bf4be23288d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:21:43 2017 +0100 Fix some styleci issues commit 3a3aa8daca981561594cf3fb542c3e240b174013 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:50:31 2017 +0100 Allow client to send request with JSON syntax, cleanup a but of other code commit dcc3baf2dc554175fdd1de408cb4f7170a6540d4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:47:51 2017 +0100 composer update commit b89dbb6b7a4940b5eed30727f0bd67bc382d98bc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 14 09:50:39 2017 +0100 wip commit 87eb63dc9570f6822324d665bc1658cfcb446554 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 18:44:15 2017 +0100 Allow the syntax for the endpoint to be set in the config page commit 9595a0b68e4b51d77c18e63f9940026aa1325475 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 17:17:34 2017 +0100 Use better scope values in command commit 08e2223a8d56984df826c1cd876f58b00cce8faf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:53:44 2017 +0100 Get media uploads working again commit 4c0d6861324c23afe4145c4ff9a46d8a1ecc10e9 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:09:16 2017 +0100 Show syndication targets properlu in client form and config page commit 63939316a0818c8dfa8cba9919b231c2fdad5821 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:08:40 2017 +0100 Update prism, recompress assets commit 74902237cb227e05386135fb0e2d5330b65e1c4e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:58:41 2017 +0100 Better presentation of syndication targets commit 345cda342051af406d6616a9162a75af625a64e0 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:47:12 2017 +0100 yarn upgrade commit 17de68cc8f26cc472b009bf42942778fac75c890 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:42:49 2017 +0100 composer update commit 7da78294dfdda8c68fc411ab03db65f101c7fc4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:34:56 2017 +0100 Move to using indieauth-client-php client directly, add code to get new tokens commit 0020596b52c1590936d12ec9c458b7e70a06bc8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:31:40 2017 +0100 Add routes for retreiving a new token commit ee0a6763f037629e2a97fa8536c84cbffbbbd7e2 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:30:33 2017 +0100 Show syndication targets as an unformated json string commit 765d032fa883db834a005f61dc553b3b0ef9ee8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:29:21 2017 +0100 Add a migratin for the indieweb users commit 3a5c458f132cf6c308c2e83eb57c61ae64cc2b48 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:28:51 2017 +0100 Add a normlize_url helper function commit fb71bd6418e7903b7d50a90dd600a82a8af03d38 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:27:41 2017 +0100 Add a token to the users table commit 56df9e8aa453394f8b83e8f6a28cc41c66d172f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:18:06 2017 +0100 Set default values for config screen commit 0df8217a82cac91c3129acc492b73d6e8cb69b44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:17:14 2017 +0100 Use the helper function to normalize URLs commit d5f882972ec43e766ae7b9288b1ab3645dd471cf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:15:41 2017 +0100 In a dev environment automatically log in as the pre-created user commit 2c3379d0e560226a4db181e7d45ce02b575990ae Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:14:13 2017 +0100 Add a default user of me commit 5c955803a8218c477e2f2b126811e6bed5f20379 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:13:08 2017 +0100 Add a helpers file, currently only has a function to normalize URLs commit ae052d305c835952c83602d305cfdb08d5be975e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Mar 31 16:08:30 2017 +0100 Allow a user to register/login with his domain commit 638ab8085f18c1bdf9c036c0272a8e88079013f5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Mar 28 16:51:42 2017 +0100 Work on allowing people to “register” for the client
2017-04-21 16:38:39 +01:00
}
/**
* Query the micropub endpoint and store response.
*
* @param Illuminate\Http\Request $request
* @return redirect
*/
public function queryEndpoint(Request $request)
{
Squashed commit of the following: commit 1eecb177b6d5aed8fd7ced14ba5a3fb8d528521b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:19:29 2017 +0100 Fix some Style issues commit 490ca7b8e90b08ad1e59714e09ba49a853cb753e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:06:13 2017 +0100 Run check on POST as well GET methods commit fb588798ce4e6548a0e0be8ec00673b24a41fe40 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:04:47 2017 +0100 Check for exceptions when validating token commit da2ce1a2893c03ae058c07361d860f4e509ac0ee Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:57:27 2017 +0100 Go back to doing all dusk tests commit c34fbf519a0cc528c49e8d5d9628a8891540c294 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:53:17 2017 +0100 Don’t check for error message now commit bd48859f7faf279296c0a15f2f6b18f83a951ebd Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:49:23 2017 +0100 Escape the facade call with backslash commit fcb405d8caf0d23cb70abb67da35cc68e2e86e4f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:43:19 2017 +0100 Regenerate the token within dusk commit 8732f100a075742802447e65a2ba56b7cc69149a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:36:39 2017 +0100 Slight refactor of token verification commit cb0ec39bba5765d55ad024fe3d73ad81877034da Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:29:46 2017 +0100 Stupid forgetting to root the namespace commit 1f2b309d7e77ff195ac8a4aa2f755044d15b4b92 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:22:54 2017 +0100 Try throwing my own exception commit 41dab30389cd04746051b8552e605eb3693ad0f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:12:18 2017 +0100 Checked headers commit 5eb12543adf999c4887a1e63b8d174fb7321202b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:08:37 2017 +0100 Don’t catch exceptions commit 71dbf8d08a7eed9f3795f06811431b7a3c2ddd6c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:00:22 2017 +0100 Log headers for request commit 1109a394456dd07375ccfab5a8436a902f3b27ce Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:54:19 2017 +0100 Add laravels own logs to the artifacts commit f6cd9ee81385bf4366e0e59fc6c34c9b56b6e52c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:38:18 2017 +0100 Log error commit dadf3b3150c74d2199a87a529151d55fc1e67394 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:33:14 2017 +0100 Look for different error message commit 9df2d1b831e6c65283fb5438967f4517752c31ac Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:24:15 2017 +0100 Look for different error message commit 090736735fe3cc5fb4076b77730f7e39bc92d80c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:14:14 2017 +0100 Just checking error message commit 6a766b1bc4af3dd0e335b3f57287086a6e528340 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:08:16 2017 +0100 Look for error message commit a399af496a440e30a0c0a1d4050121b3e491e968 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:00:29 2017 +0100 Simpler setup of php error log commit 3472c48ed50466c2d150e727cb6c1e43b1298d4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:45:11 2017 +0100 Set the php error log commit 978c17f33e2d9c3dd5166744aef924bf21483737 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:37:04 2017 +0100 Set the php-fpm error log commit 0e3407a4781f83bf3c516578a4594eff92b9d4d8 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:18:45 2017 +0100 Save a token for the user commit 951fe7966e18ac9e38526b6dfdc4a75fd4d68a0c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:56:49 2017 +0100 Use the right phrase commit faedc802a46c35b3b9264348ebbd895f4d2b3895 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:41:03 2017 +0100 Easier phrase to find in log commit 71b3c905bb4be0943254e51604af1293cc63cd0f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:35:07 2017 +0100 Check we are logged in commit fd6e3c79f13b9aada395a53b367e316936787298 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:20:14 2017 +0100 Cleanup output commit 231ac5868070f232f5bd455f0d6070621da9ae91 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:00:36 2017 +0100 Try pausing test before running second check commit 754cbafacdb8dd46db2eee699b8e23009c7d0bf5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 20 13:15:10 2017 +0100 Temporary fix for TLS issues on travis-ci and sensiolab’s security checker commit 8e03bba917ca9ba951bac5197e0008ae7188e19a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:24:51 2017 +0100 Use less strict check on no auth endpoint being found commit 91ee495ae1302f269febdd0e14ecbe81222b1014 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:23:44 2017 +0100 Use newer scope values in token commit 989a242b4ff271f4ac6ee0873dc2924506c0efcf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:30:53 2017 +0100 Missed some array syntax commit 92d11c9a62c2a122b4fef62da8af6bf4be23288d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:21:43 2017 +0100 Fix some styleci issues commit 3a3aa8daca981561594cf3fb542c3e240b174013 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:50:31 2017 +0100 Allow client to send request with JSON syntax, cleanup a but of other code commit dcc3baf2dc554175fdd1de408cb4f7170a6540d4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:47:51 2017 +0100 composer update commit b89dbb6b7a4940b5eed30727f0bd67bc382d98bc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 14 09:50:39 2017 +0100 wip commit 87eb63dc9570f6822324d665bc1658cfcb446554 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 18:44:15 2017 +0100 Allow the syntax for the endpoint to be set in the config page commit 9595a0b68e4b51d77c18e63f9940026aa1325475 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 17:17:34 2017 +0100 Use better scope values in command commit 08e2223a8d56984df826c1cd876f58b00cce8faf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:53:44 2017 +0100 Get media uploads working again commit 4c0d6861324c23afe4145c4ff9a46d8a1ecc10e9 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:09:16 2017 +0100 Show syndication targets properlu in client form and config page commit 63939316a0818c8dfa8cba9919b231c2fdad5821 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:08:40 2017 +0100 Update prism, recompress assets commit 74902237cb227e05386135fb0e2d5330b65e1c4e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:58:41 2017 +0100 Better presentation of syndication targets commit 345cda342051af406d6616a9162a75af625a64e0 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:47:12 2017 +0100 yarn upgrade commit 17de68cc8f26cc472b009bf42942778fac75c890 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:42:49 2017 +0100 composer update commit 7da78294dfdda8c68fc411ab03db65f101c7fc4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:34:56 2017 +0100 Move to using indieauth-client-php client directly, add code to get new tokens commit 0020596b52c1590936d12ec9c458b7e70a06bc8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:31:40 2017 +0100 Add routes for retreiving a new token commit ee0a6763f037629e2a97fa8536c84cbffbbbd7e2 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:30:33 2017 +0100 Show syndication targets as an unformated json string commit 765d032fa883db834a005f61dc553b3b0ef9ee8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:29:21 2017 +0100 Add a migratin for the indieweb users commit 3a5c458f132cf6c308c2e83eb57c61ae64cc2b48 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:28:51 2017 +0100 Add a normlize_url helper function commit fb71bd6418e7903b7d50a90dd600a82a8af03d38 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:27:41 2017 +0100 Add a token to the users table commit 56df9e8aa453394f8b83e8f6a28cc41c66d172f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:18:06 2017 +0100 Set default values for config screen commit 0df8217a82cac91c3129acc492b73d6e8cb69b44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:17:14 2017 +0100 Use the helper function to normalize URLs commit d5f882972ec43e766ae7b9288b1ab3645dd471cf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:15:41 2017 +0100 In a dev environment automatically log in as the pre-created user commit 2c3379d0e560226a4db181e7d45ce02b575990ae Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:14:13 2017 +0100 Add a default user of me commit 5c955803a8218c477e2f2b126811e6bed5f20379 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:13:08 2017 +0100 Add a helpers file, currently only has a function to normalize URLs commit ae052d305c835952c83602d305cfdb08d5be975e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Mar 31 16:08:30 2017 +0100 Allow a user to register/login with his domain commit 638ab8085f18c1bdf9c036c0272a8e88079013f5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Mar 28 16:51:42 2017 +0100 Work on allowing people to “register” for the client
2017-04-21 16:38:39 +01:00
$url = normalize_url($request->session()->get('me'));
$user = IndieWebUser::where('me', $url)->firstOrFail();
$token = $user->token;
$micropubEndpoint = $this->indieClient->discoverMicropubEndpoint($url);
if ($micropubEndpoint) {
try {
$response = $this->guzzleClient->get($micropubEndpoint, [
'headers' => ['Authorization' => 'Bearer ' . $token],
'query' => 'q=config',
]);
} catch (ClientException | ServerException $e) {
return back();
}
$body = (string) $response->getBody();
Squashed commit of the following: commit 1eecb177b6d5aed8fd7ced14ba5a3fb8d528521b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:19:29 2017 +0100 Fix some Style issues commit 490ca7b8e90b08ad1e59714e09ba49a853cb753e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:06:13 2017 +0100 Run check on POST as well GET methods commit fb588798ce4e6548a0e0be8ec00673b24a41fe40 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:04:47 2017 +0100 Check for exceptions when validating token commit da2ce1a2893c03ae058c07361d860f4e509ac0ee Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:57:27 2017 +0100 Go back to doing all dusk tests commit c34fbf519a0cc528c49e8d5d9628a8891540c294 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:53:17 2017 +0100 Don’t check for error message now commit bd48859f7faf279296c0a15f2f6b18f83a951ebd Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:49:23 2017 +0100 Escape the facade call with backslash commit fcb405d8caf0d23cb70abb67da35cc68e2e86e4f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:43:19 2017 +0100 Regenerate the token within dusk commit 8732f100a075742802447e65a2ba56b7cc69149a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:36:39 2017 +0100 Slight refactor of token verification commit cb0ec39bba5765d55ad024fe3d73ad81877034da Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:29:46 2017 +0100 Stupid forgetting to root the namespace commit 1f2b309d7e77ff195ac8a4aa2f755044d15b4b92 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:22:54 2017 +0100 Try throwing my own exception commit 41dab30389cd04746051b8552e605eb3693ad0f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:12:18 2017 +0100 Checked headers commit 5eb12543adf999c4887a1e63b8d174fb7321202b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:08:37 2017 +0100 Don’t catch exceptions commit 71dbf8d08a7eed9f3795f06811431b7a3c2ddd6c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:00:22 2017 +0100 Log headers for request commit 1109a394456dd07375ccfab5a8436a902f3b27ce Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:54:19 2017 +0100 Add laravels own logs to the artifacts commit f6cd9ee81385bf4366e0e59fc6c34c9b56b6e52c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:38:18 2017 +0100 Log error commit dadf3b3150c74d2199a87a529151d55fc1e67394 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:33:14 2017 +0100 Look for different error message commit 9df2d1b831e6c65283fb5438967f4517752c31ac Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:24:15 2017 +0100 Look for different error message commit 090736735fe3cc5fb4076b77730f7e39bc92d80c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:14:14 2017 +0100 Just checking error message commit 6a766b1bc4af3dd0e335b3f57287086a6e528340 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:08:16 2017 +0100 Look for error message commit a399af496a440e30a0c0a1d4050121b3e491e968 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:00:29 2017 +0100 Simpler setup of php error log commit 3472c48ed50466c2d150e727cb6c1e43b1298d4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:45:11 2017 +0100 Set the php error log commit 978c17f33e2d9c3dd5166744aef924bf21483737 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:37:04 2017 +0100 Set the php-fpm error log commit 0e3407a4781f83bf3c516578a4594eff92b9d4d8 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:18:45 2017 +0100 Save a token for the user commit 951fe7966e18ac9e38526b6dfdc4a75fd4d68a0c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:56:49 2017 +0100 Use the right phrase commit faedc802a46c35b3b9264348ebbd895f4d2b3895 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:41:03 2017 +0100 Easier phrase to find in log commit 71b3c905bb4be0943254e51604af1293cc63cd0f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:35:07 2017 +0100 Check we are logged in commit fd6e3c79f13b9aada395a53b367e316936787298 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:20:14 2017 +0100 Cleanup output commit 231ac5868070f232f5bd455f0d6070621da9ae91 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:00:36 2017 +0100 Try pausing test before running second check commit 754cbafacdb8dd46db2eee699b8e23009c7d0bf5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 20 13:15:10 2017 +0100 Temporary fix for TLS issues on travis-ci and sensiolab’s security checker commit 8e03bba917ca9ba951bac5197e0008ae7188e19a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:24:51 2017 +0100 Use less strict check on no auth endpoint being found commit 91ee495ae1302f269febdd0e14ecbe81222b1014 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:23:44 2017 +0100 Use newer scope values in token commit 989a242b4ff271f4ac6ee0873dc2924506c0efcf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:30:53 2017 +0100 Missed some array syntax commit 92d11c9a62c2a122b4fef62da8af6bf4be23288d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:21:43 2017 +0100 Fix some styleci issues commit 3a3aa8daca981561594cf3fb542c3e240b174013 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:50:31 2017 +0100 Allow client to send request with JSON syntax, cleanup a but of other code commit dcc3baf2dc554175fdd1de408cb4f7170a6540d4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:47:51 2017 +0100 composer update commit b89dbb6b7a4940b5eed30727f0bd67bc382d98bc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 14 09:50:39 2017 +0100 wip commit 87eb63dc9570f6822324d665bc1658cfcb446554 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 18:44:15 2017 +0100 Allow the syntax for the endpoint to be set in the config page commit 9595a0b68e4b51d77c18e63f9940026aa1325475 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 17:17:34 2017 +0100 Use better scope values in command commit 08e2223a8d56984df826c1cd876f58b00cce8faf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:53:44 2017 +0100 Get media uploads working again commit 4c0d6861324c23afe4145c4ff9a46d8a1ecc10e9 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:09:16 2017 +0100 Show syndication targets properlu in client form and config page commit 63939316a0818c8dfa8cba9919b231c2fdad5821 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:08:40 2017 +0100 Update prism, recompress assets commit 74902237cb227e05386135fb0e2d5330b65e1c4e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:58:41 2017 +0100 Better presentation of syndication targets commit 345cda342051af406d6616a9162a75af625a64e0 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:47:12 2017 +0100 yarn upgrade commit 17de68cc8f26cc472b009bf42942778fac75c890 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:42:49 2017 +0100 composer update commit 7da78294dfdda8c68fc411ab03db65f101c7fc4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:34:56 2017 +0100 Move to using indieauth-client-php client directly, add code to get new tokens commit 0020596b52c1590936d12ec9c458b7e70a06bc8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:31:40 2017 +0100 Add routes for retreiving a new token commit ee0a6763f037629e2a97fa8536c84cbffbbbd7e2 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:30:33 2017 +0100 Show syndication targets as an unformated json string commit 765d032fa883db834a005f61dc553b3b0ef9ee8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:29:21 2017 +0100 Add a migratin for the indieweb users commit 3a5c458f132cf6c308c2e83eb57c61ae64cc2b48 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:28:51 2017 +0100 Add a normlize_url helper function commit fb71bd6418e7903b7d50a90dd600a82a8af03d38 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:27:41 2017 +0100 Add a token to the users table commit 56df9e8aa453394f8b83e8f6a28cc41c66d172f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:18:06 2017 +0100 Set default values for config screen commit 0df8217a82cac91c3129acc492b73d6e8cb69b44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:17:14 2017 +0100 Use the helper function to normalize URLs commit d5f882972ec43e766ae7b9288b1ab3645dd471cf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:15:41 2017 +0100 In a dev environment automatically log in as the pre-created user commit 2c3379d0e560226a4db181e7d45ce02b575990ae Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:14:13 2017 +0100 Add a default user of me commit 5c955803a8218c477e2f2b126811e6bed5f20379 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:13:08 2017 +0100 Add a helpers file, currently only has a function to normalize URLs commit ae052d305c835952c83602d305cfdb08d5be975e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Mar 31 16:08:30 2017 +0100 Allow a user to register/login with his domain commit 638ab8085f18c1bdf9c036c0272a8e88079013f5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Mar 28 16:51:42 2017 +0100 Work on allowing people to “register” for the client
2017-04-21 16:38:39 +01:00
$data = json_decode($body, true);
Squashed commit of the following: commit 1eecb177b6d5aed8fd7ced14ba5a3fb8d528521b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:19:29 2017 +0100 Fix some Style issues commit 490ca7b8e90b08ad1e59714e09ba49a853cb753e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:06:13 2017 +0100 Run check on POST as well GET methods commit fb588798ce4e6548a0e0be8ec00673b24a41fe40 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:04:47 2017 +0100 Check for exceptions when validating token commit da2ce1a2893c03ae058c07361d860f4e509ac0ee Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:57:27 2017 +0100 Go back to doing all dusk tests commit c34fbf519a0cc528c49e8d5d9628a8891540c294 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:53:17 2017 +0100 Don’t check for error message now commit bd48859f7faf279296c0a15f2f6b18f83a951ebd Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:49:23 2017 +0100 Escape the facade call with backslash commit fcb405d8caf0d23cb70abb67da35cc68e2e86e4f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:43:19 2017 +0100 Regenerate the token within dusk commit 8732f100a075742802447e65a2ba56b7cc69149a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:36:39 2017 +0100 Slight refactor of token verification commit cb0ec39bba5765d55ad024fe3d73ad81877034da Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:29:46 2017 +0100 Stupid forgetting to root the namespace commit 1f2b309d7e77ff195ac8a4aa2f755044d15b4b92 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:22:54 2017 +0100 Try throwing my own exception commit 41dab30389cd04746051b8552e605eb3693ad0f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:12:18 2017 +0100 Checked headers commit 5eb12543adf999c4887a1e63b8d174fb7321202b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:08:37 2017 +0100 Don’t catch exceptions commit 71dbf8d08a7eed9f3795f06811431b7a3c2ddd6c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:00:22 2017 +0100 Log headers for request commit 1109a394456dd07375ccfab5a8436a902f3b27ce Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:54:19 2017 +0100 Add laravels own logs to the artifacts commit f6cd9ee81385bf4366e0e59fc6c34c9b56b6e52c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:38:18 2017 +0100 Log error commit dadf3b3150c74d2199a87a529151d55fc1e67394 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:33:14 2017 +0100 Look for different error message commit 9df2d1b831e6c65283fb5438967f4517752c31ac Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:24:15 2017 +0100 Look for different error message commit 090736735fe3cc5fb4076b77730f7e39bc92d80c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:14:14 2017 +0100 Just checking error message commit 6a766b1bc4af3dd0e335b3f57287086a6e528340 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:08:16 2017 +0100 Look for error message commit a399af496a440e30a0c0a1d4050121b3e491e968 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:00:29 2017 +0100 Simpler setup of php error log commit 3472c48ed50466c2d150e727cb6c1e43b1298d4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:45:11 2017 +0100 Set the php error log commit 978c17f33e2d9c3dd5166744aef924bf21483737 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:37:04 2017 +0100 Set the php-fpm error log commit 0e3407a4781f83bf3c516578a4594eff92b9d4d8 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:18:45 2017 +0100 Save a token for the user commit 951fe7966e18ac9e38526b6dfdc4a75fd4d68a0c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:56:49 2017 +0100 Use the right phrase commit faedc802a46c35b3b9264348ebbd895f4d2b3895 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:41:03 2017 +0100 Easier phrase to find in log commit 71b3c905bb4be0943254e51604af1293cc63cd0f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:35:07 2017 +0100 Check we are logged in commit fd6e3c79f13b9aada395a53b367e316936787298 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:20:14 2017 +0100 Cleanup output commit 231ac5868070f232f5bd455f0d6070621da9ae91 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:00:36 2017 +0100 Try pausing test before running second check commit 754cbafacdb8dd46db2eee699b8e23009c7d0bf5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 20 13:15:10 2017 +0100 Temporary fix for TLS issues on travis-ci and sensiolab’s security checker commit 8e03bba917ca9ba951bac5197e0008ae7188e19a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:24:51 2017 +0100 Use less strict check on no auth endpoint being found commit 91ee495ae1302f269febdd0e14ecbe81222b1014 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:23:44 2017 +0100 Use newer scope values in token commit 989a242b4ff271f4ac6ee0873dc2924506c0efcf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:30:53 2017 +0100 Missed some array syntax commit 92d11c9a62c2a122b4fef62da8af6bf4be23288d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:21:43 2017 +0100 Fix some styleci issues commit 3a3aa8daca981561594cf3fb542c3e240b174013 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:50:31 2017 +0100 Allow client to send request with JSON syntax, cleanup a but of other code commit dcc3baf2dc554175fdd1de408cb4f7170a6540d4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:47:51 2017 +0100 composer update commit b89dbb6b7a4940b5eed30727f0bd67bc382d98bc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 14 09:50:39 2017 +0100 wip commit 87eb63dc9570f6822324d665bc1658cfcb446554 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 18:44:15 2017 +0100 Allow the syntax for the endpoint to be set in the config page commit 9595a0b68e4b51d77c18e63f9940026aa1325475 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 17:17:34 2017 +0100 Use better scope values in command commit 08e2223a8d56984df826c1cd876f58b00cce8faf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:53:44 2017 +0100 Get media uploads working again commit 4c0d6861324c23afe4145c4ff9a46d8a1ecc10e9 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:09:16 2017 +0100 Show syndication targets properlu in client form and config page commit 63939316a0818c8dfa8cba9919b231c2fdad5821 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:08:40 2017 +0100 Update prism, recompress assets commit 74902237cb227e05386135fb0e2d5330b65e1c4e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:58:41 2017 +0100 Better presentation of syndication targets commit 345cda342051af406d6616a9162a75af625a64e0 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:47:12 2017 +0100 yarn upgrade commit 17de68cc8f26cc472b009bf42942778fac75c890 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:42:49 2017 +0100 composer update commit 7da78294dfdda8c68fc411ab03db65f101c7fc4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:34:56 2017 +0100 Move to using indieauth-client-php client directly, add code to get new tokens commit 0020596b52c1590936d12ec9c458b7e70a06bc8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:31:40 2017 +0100 Add routes for retreiving a new token commit ee0a6763f037629e2a97fa8536c84cbffbbbd7e2 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:30:33 2017 +0100 Show syndication targets as an unformated json string commit 765d032fa883db834a005f61dc553b3b0ef9ee8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:29:21 2017 +0100 Add a migratin for the indieweb users commit 3a5c458f132cf6c308c2e83eb57c61ae64cc2b48 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:28:51 2017 +0100 Add a normlize_url helper function commit fb71bd6418e7903b7d50a90dd600a82a8af03d38 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:27:41 2017 +0100 Add a token to the users table commit 56df9e8aa453394f8b83e8f6a28cc41c66d172f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:18:06 2017 +0100 Set default values for config screen commit 0df8217a82cac91c3129acc492b73d6e8cb69b44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:17:14 2017 +0100 Use the helper function to normalize URLs commit d5f882972ec43e766ae7b9288b1ab3645dd471cf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:15:41 2017 +0100 In a dev environment automatically log in as the pre-created user commit 2c3379d0e560226a4db181e7d45ce02b575990ae Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:14:13 2017 +0100 Add a default user of me commit 5c955803a8218c477e2f2b126811e6bed5f20379 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:13:08 2017 +0100 Add a helpers file, currently only has a function to normalize URLs commit ae052d305c835952c83602d305cfdb08d5be975e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Mar 31 16:08:30 2017 +0100 Allow a user to register/login with his domain commit 638ab8085f18c1bdf9c036c0272a8e88079013f5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Mar 28 16:51:42 2017 +0100 Work on allowing people to “register” for the client
2017-04-21 16:38:39 +01:00
if (array_key_exists('syndicate-to', $data)) {
$user->syndication = json_encode($data['syndicate-to']);
}
Squashed commit of the following: commit 1eecb177b6d5aed8fd7ced14ba5a3fb8d528521b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:19:29 2017 +0100 Fix some Style issues commit 490ca7b8e90b08ad1e59714e09ba49a853cb753e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:06:13 2017 +0100 Run check on POST as well GET methods commit fb588798ce4e6548a0e0be8ec00673b24a41fe40 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:04:47 2017 +0100 Check for exceptions when validating token commit da2ce1a2893c03ae058c07361d860f4e509ac0ee Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:57:27 2017 +0100 Go back to doing all dusk tests commit c34fbf519a0cc528c49e8d5d9628a8891540c294 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:53:17 2017 +0100 Don’t check for error message now commit bd48859f7faf279296c0a15f2f6b18f83a951ebd Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:49:23 2017 +0100 Escape the facade call with backslash commit fcb405d8caf0d23cb70abb67da35cc68e2e86e4f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:43:19 2017 +0100 Regenerate the token within dusk commit 8732f100a075742802447e65a2ba56b7cc69149a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:36:39 2017 +0100 Slight refactor of token verification commit cb0ec39bba5765d55ad024fe3d73ad81877034da Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:29:46 2017 +0100 Stupid forgetting to root the namespace commit 1f2b309d7e77ff195ac8a4aa2f755044d15b4b92 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:22:54 2017 +0100 Try throwing my own exception commit 41dab30389cd04746051b8552e605eb3693ad0f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:12:18 2017 +0100 Checked headers commit 5eb12543adf999c4887a1e63b8d174fb7321202b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:08:37 2017 +0100 Don’t catch exceptions commit 71dbf8d08a7eed9f3795f06811431b7a3c2ddd6c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:00:22 2017 +0100 Log headers for request commit 1109a394456dd07375ccfab5a8436a902f3b27ce Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:54:19 2017 +0100 Add laravels own logs to the artifacts commit f6cd9ee81385bf4366e0e59fc6c34c9b56b6e52c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:38:18 2017 +0100 Log error commit dadf3b3150c74d2199a87a529151d55fc1e67394 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:33:14 2017 +0100 Look for different error message commit 9df2d1b831e6c65283fb5438967f4517752c31ac Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:24:15 2017 +0100 Look for different error message commit 090736735fe3cc5fb4076b77730f7e39bc92d80c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:14:14 2017 +0100 Just checking error message commit 6a766b1bc4af3dd0e335b3f57287086a6e528340 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:08:16 2017 +0100 Look for error message commit a399af496a440e30a0c0a1d4050121b3e491e968 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:00:29 2017 +0100 Simpler setup of php error log commit 3472c48ed50466c2d150e727cb6c1e43b1298d4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:45:11 2017 +0100 Set the php error log commit 978c17f33e2d9c3dd5166744aef924bf21483737 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:37:04 2017 +0100 Set the php-fpm error log commit 0e3407a4781f83bf3c516578a4594eff92b9d4d8 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:18:45 2017 +0100 Save a token for the user commit 951fe7966e18ac9e38526b6dfdc4a75fd4d68a0c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:56:49 2017 +0100 Use the right phrase commit faedc802a46c35b3b9264348ebbd895f4d2b3895 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:41:03 2017 +0100 Easier phrase to find in log commit 71b3c905bb4be0943254e51604af1293cc63cd0f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:35:07 2017 +0100 Check we are logged in commit fd6e3c79f13b9aada395a53b367e316936787298 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:20:14 2017 +0100 Cleanup output commit 231ac5868070f232f5bd455f0d6070621da9ae91 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:00:36 2017 +0100 Try pausing test before running second check commit 754cbafacdb8dd46db2eee699b8e23009c7d0bf5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 20 13:15:10 2017 +0100 Temporary fix for TLS issues on travis-ci and sensiolab’s security checker commit 8e03bba917ca9ba951bac5197e0008ae7188e19a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:24:51 2017 +0100 Use less strict check on no auth endpoint being found commit 91ee495ae1302f269febdd0e14ecbe81222b1014 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:23:44 2017 +0100 Use newer scope values in token commit 989a242b4ff271f4ac6ee0873dc2924506c0efcf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:30:53 2017 +0100 Missed some array syntax commit 92d11c9a62c2a122b4fef62da8af6bf4be23288d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:21:43 2017 +0100 Fix some styleci issues commit 3a3aa8daca981561594cf3fb542c3e240b174013 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:50:31 2017 +0100 Allow client to send request with JSON syntax, cleanup a but of other code commit dcc3baf2dc554175fdd1de408cb4f7170a6540d4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:47:51 2017 +0100 composer update commit b89dbb6b7a4940b5eed30727f0bd67bc382d98bc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 14 09:50:39 2017 +0100 wip commit 87eb63dc9570f6822324d665bc1658cfcb446554 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 18:44:15 2017 +0100 Allow the syntax for the endpoint to be set in the config page commit 9595a0b68e4b51d77c18e63f9940026aa1325475 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 17:17:34 2017 +0100 Use better scope values in command commit 08e2223a8d56984df826c1cd876f58b00cce8faf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:53:44 2017 +0100 Get media uploads working again commit 4c0d6861324c23afe4145c4ff9a46d8a1ecc10e9 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:09:16 2017 +0100 Show syndication targets properlu in client form and config page commit 63939316a0818c8dfa8cba9919b231c2fdad5821 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:08:40 2017 +0100 Update prism, recompress assets commit 74902237cb227e05386135fb0e2d5330b65e1c4e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:58:41 2017 +0100 Better presentation of syndication targets commit 345cda342051af406d6616a9162a75af625a64e0 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:47:12 2017 +0100 yarn upgrade commit 17de68cc8f26cc472b009bf42942778fac75c890 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:42:49 2017 +0100 composer update commit 7da78294dfdda8c68fc411ab03db65f101c7fc4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:34:56 2017 +0100 Move to using indieauth-client-php client directly, add code to get new tokens commit 0020596b52c1590936d12ec9c458b7e70a06bc8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:31:40 2017 +0100 Add routes for retreiving a new token commit ee0a6763f037629e2a97fa8536c84cbffbbbd7e2 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:30:33 2017 +0100 Show syndication targets as an unformated json string commit 765d032fa883db834a005f61dc553b3b0ef9ee8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:29:21 2017 +0100 Add a migratin for the indieweb users commit 3a5c458f132cf6c308c2e83eb57c61ae64cc2b48 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:28:51 2017 +0100 Add a normlize_url helper function commit fb71bd6418e7903b7d50a90dd600a82a8af03d38 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:27:41 2017 +0100 Add a token to the users table commit 56df9e8aa453394f8b83e8f6a28cc41c66d172f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:18:06 2017 +0100 Set default values for config screen commit 0df8217a82cac91c3129acc492b73d6e8cb69b44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:17:14 2017 +0100 Use the helper function to normalize URLs commit d5f882972ec43e766ae7b9288b1ab3645dd471cf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:15:41 2017 +0100 In a dev environment automatically log in as the pre-created user commit 2c3379d0e560226a4db181e7d45ce02b575990ae Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:14:13 2017 +0100 Add a default user of me commit 5c955803a8218c477e2f2b126811e6bed5f20379 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:13:08 2017 +0100 Add a helpers file, currently only has a function to normalize URLs commit ae052d305c835952c83602d305cfdb08d5be975e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Mar 31 16:08:30 2017 +0100 Allow a user to register/login with his domain commit 638ab8085f18c1bdf9c036c0272a8e88079013f5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Mar 28 16:51:42 2017 +0100 Work on allowing people to “register” for the client
2017-04-21 16:38:39 +01:00
if (array_key_exists('media-endpoint', $data)) {
$user->mediaEndpoint = $data['media-endpoint'];
}
$user->save();
return back();
}
}
2016-05-19 15:01:28 +01:00
/**
Squashed commit of the following: commit 1eecb177b6d5aed8fd7ced14ba5a3fb8d528521b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:19:29 2017 +0100 Fix some Style issues commit 490ca7b8e90b08ad1e59714e09ba49a853cb753e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:06:13 2017 +0100 Run check on POST as well GET methods commit fb588798ce4e6548a0e0be8ec00673b24a41fe40 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:04:47 2017 +0100 Check for exceptions when validating token commit da2ce1a2893c03ae058c07361d860f4e509ac0ee Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:57:27 2017 +0100 Go back to doing all dusk tests commit c34fbf519a0cc528c49e8d5d9628a8891540c294 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:53:17 2017 +0100 Don’t check for error message now commit bd48859f7faf279296c0a15f2f6b18f83a951ebd Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:49:23 2017 +0100 Escape the facade call with backslash commit fcb405d8caf0d23cb70abb67da35cc68e2e86e4f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:43:19 2017 +0100 Regenerate the token within dusk commit 8732f100a075742802447e65a2ba56b7cc69149a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:36:39 2017 +0100 Slight refactor of token verification commit cb0ec39bba5765d55ad024fe3d73ad81877034da Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:29:46 2017 +0100 Stupid forgetting to root the namespace commit 1f2b309d7e77ff195ac8a4aa2f755044d15b4b92 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:22:54 2017 +0100 Try throwing my own exception commit 41dab30389cd04746051b8552e605eb3693ad0f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:12:18 2017 +0100 Checked headers commit 5eb12543adf999c4887a1e63b8d174fb7321202b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:08:37 2017 +0100 Don’t catch exceptions commit 71dbf8d08a7eed9f3795f06811431b7a3c2ddd6c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:00:22 2017 +0100 Log headers for request commit 1109a394456dd07375ccfab5a8436a902f3b27ce Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:54:19 2017 +0100 Add laravels own logs to the artifacts commit f6cd9ee81385bf4366e0e59fc6c34c9b56b6e52c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:38:18 2017 +0100 Log error commit dadf3b3150c74d2199a87a529151d55fc1e67394 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:33:14 2017 +0100 Look for different error message commit 9df2d1b831e6c65283fb5438967f4517752c31ac Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:24:15 2017 +0100 Look for different error message commit 090736735fe3cc5fb4076b77730f7e39bc92d80c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:14:14 2017 +0100 Just checking error message commit 6a766b1bc4af3dd0e335b3f57287086a6e528340 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:08:16 2017 +0100 Look for error message commit a399af496a440e30a0c0a1d4050121b3e491e968 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:00:29 2017 +0100 Simpler setup of php error log commit 3472c48ed50466c2d150e727cb6c1e43b1298d4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:45:11 2017 +0100 Set the php error log commit 978c17f33e2d9c3dd5166744aef924bf21483737 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:37:04 2017 +0100 Set the php-fpm error log commit 0e3407a4781f83bf3c516578a4594eff92b9d4d8 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:18:45 2017 +0100 Save a token for the user commit 951fe7966e18ac9e38526b6dfdc4a75fd4d68a0c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:56:49 2017 +0100 Use the right phrase commit faedc802a46c35b3b9264348ebbd895f4d2b3895 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:41:03 2017 +0100 Easier phrase to find in log commit 71b3c905bb4be0943254e51604af1293cc63cd0f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:35:07 2017 +0100 Check we are logged in commit fd6e3c79f13b9aada395a53b367e316936787298 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:20:14 2017 +0100 Cleanup output commit 231ac5868070f232f5bd455f0d6070621da9ae91 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:00:36 2017 +0100 Try pausing test before running second check commit 754cbafacdb8dd46db2eee699b8e23009c7d0bf5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 20 13:15:10 2017 +0100 Temporary fix for TLS issues on travis-ci and sensiolab’s security checker commit 8e03bba917ca9ba951bac5197e0008ae7188e19a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:24:51 2017 +0100 Use less strict check on no auth endpoint being found commit 91ee495ae1302f269febdd0e14ecbe81222b1014 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:23:44 2017 +0100 Use newer scope values in token commit 989a242b4ff271f4ac6ee0873dc2924506c0efcf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:30:53 2017 +0100 Missed some array syntax commit 92d11c9a62c2a122b4fef62da8af6bf4be23288d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:21:43 2017 +0100 Fix some styleci issues commit 3a3aa8daca981561594cf3fb542c3e240b174013 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:50:31 2017 +0100 Allow client to send request with JSON syntax, cleanup a but of other code commit dcc3baf2dc554175fdd1de408cb4f7170a6540d4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:47:51 2017 +0100 composer update commit b89dbb6b7a4940b5eed30727f0bd67bc382d98bc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 14 09:50:39 2017 +0100 wip commit 87eb63dc9570f6822324d665bc1658cfcb446554 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 18:44:15 2017 +0100 Allow the syntax for the endpoint to be set in the config page commit 9595a0b68e4b51d77c18e63f9940026aa1325475 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 17:17:34 2017 +0100 Use better scope values in command commit 08e2223a8d56984df826c1cd876f58b00cce8faf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:53:44 2017 +0100 Get media uploads working again commit 4c0d6861324c23afe4145c4ff9a46d8a1ecc10e9 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:09:16 2017 +0100 Show syndication targets properlu in client form and config page commit 63939316a0818c8dfa8cba9919b231c2fdad5821 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:08:40 2017 +0100 Update prism, recompress assets commit 74902237cb227e05386135fb0e2d5330b65e1c4e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:58:41 2017 +0100 Better presentation of syndication targets commit 345cda342051af406d6616a9162a75af625a64e0 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:47:12 2017 +0100 yarn upgrade commit 17de68cc8f26cc472b009bf42942778fac75c890 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:42:49 2017 +0100 composer update commit 7da78294dfdda8c68fc411ab03db65f101c7fc4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:34:56 2017 +0100 Move to using indieauth-client-php client directly, add code to get new tokens commit 0020596b52c1590936d12ec9c458b7e70a06bc8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:31:40 2017 +0100 Add routes for retreiving a new token commit ee0a6763f037629e2a97fa8536c84cbffbbbd7e2 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:30:33 2017 +0100 Show syndication targets as an unformated json string commit 765d032fa883db834a005f61dc553b3b0ef9ee8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:29:21 2017 +0100 Add a migratin for the indieweb users commit 3a5c458f132cf6c308c2e83eb57c61ae64cc2b48 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:28:51 2017 +0100 Add a normlize_url helper function commit fb71bd6418e7903b7d50a90dd600a82a8af03d38 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:27:41 2017 +0100 Add a token to the users table commit 56df9e8aa453394f8b83e8f6a28cc41c66d172f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:18:06 2017 +0100 Set default values for config screen commit 0df8217a82cac91c3129acc492b73d6e8cb69b44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:17:14 2017 +0100 Use the helper function to normalize URLs commit d5f882972ec43e766ae7b9288b1ab3645dd471cf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:15:41 2017 +0100 In a dev environment automatically log in as the pre-created user commit 2c3379d0e560226a4db181e7d45ce02b575990ae Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:14:13 2017 +0100 Add a default user of me commit 5c955803a8218c477e2f2b126811e6bed5f20379 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:13:08 2017 +0100 Add a helpers file, currently only has a function to normalize URLs commit ae052d305c835952c83602d305cfdb08d5be975e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Mar 31 16:08:30 2017 +0100 Allow a user to register/login with his domain commit 638ab8085f18c1bdf9c036c0272a8e88079013f5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Mar 28 16:51:42 2017 +0100 Work on allowing people to “register” for the client
2017-04-21 16:38:39 +01:00
* Update the syntax setting.
2016-05-19 15:01:28 +01:00
*
Squashed commit of the following: commit 1eecb177b6d5aed8fd7ced14ba5a3fb8d528521b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:19:29 2017 +0100 Fix some Style issues commit 490ca7b8e90b08ad1e59714e09ba49a853cb753e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:06:13 2017 +0100 Run check on POST as well GET methods commit fb588798ce4e6548a0e0be8ec00673b24a41fe40 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:04:47 2017 +0100 Check for exceptions when validating token commit da2ce1a2893c03ae058c07361d860f4e509ac0ee Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:57:27 2017 +0100 Go back to doing all dusk tests commit c34fbf519a0cc528c49e8d5d9628a8891540c294 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:53:17 2017 +0100 Don’t check for error message now commit bd48859f7faf279296c0a15f2f6b18f83a951ebd Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:49:23 2017 +0100 Escape the facade call with backslash commit fcb405d8caf0d23cb70abb67da35cc68e2e86e4f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:43:19 2017 +0100 Regenerate the token within dusk commit 8732f100a075742802447e65a2ba56b7cc69149a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:36:39 2017 +0100 Slight refactor of token verification commit cb0ec39bba5765d55ad024fe3d73ad81877034da Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:29:46 2017 +0100 Stupid forgetting to root the namespace commit 1f2b309d7e77ff195ac8a4aa2f755044d15b4b92 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:22:54 2017 +0100 Try throwing my own exception commit 41dab30389cd04746051b8552e605eb3693ad0f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:12:18 2017 +0100 Checked headers commit 5eb12543adf999c4887a1e63b8d174fb7321202b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:08:37 2017 +0100 Don’t catch exceptions commit 71dbf8d08a7eed9f3795f06811431b7a3c2ddd6c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:00:22 2017 +0100 Log headers for request commit 1109a394456dd07375ccfab5a8436a902f3b27ce Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:54:19 2017 +0100 Add laravels own logs to the artifacts commit f6cd9ee81385bf4366e0e59fc6c34c9b56b6e52c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:38:18 2017 +0100 Log error commit dadf3b3150c74d2199a87a529151d55fc1e67394 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:33:14 2017 +0100 Look for different error message commit 9df2d1b831e6c65283fb5438967f4517752c31ac Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:24:15 2017 +0100 Look for different error message commit 090736735fe3cc5fb4076b77730f7e39bc92d80c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:14:14 2017 +0100 Just checking error message commit 6a766b1bc4af3dd0e335b3f57287086a6e528340 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:08:16 2017 +0100 Look for error message commit a399af496a440e30a0c0a1d4050121b3e491e968 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:00:29 2017 +0100 Simpler setup of php error log commit 3472c48ed50466c2d150e727cb6c1e43b1298d4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:45:11 2017 +0100 Set the php error log commit 978c17f33e2d9c3dd5166744aef924bf21483737 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:37:04 2017 +0100 Set the php-fpm error log commit 0e3407a4781f83bf3c516578a4594eff92b9d4d8 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:18:45 2017 +0100 Save a token for the user commit 951fe7966e18ac9e38526b6dfdc4a75fd4d68a0c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:56:49 2017 +0100 Use the right phrase commit faedc802a46c35b3b9264348ebbd895f4d2b3895 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:41:03 2017 +0100 Easier phrase to find in log commit 71b3c905bb4be0943254e51604af1293cc63cd0f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:35:07 2017 +0100 Check we are logged in commit fd6e3c79f13b9aada395a53b367e316936787298 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:20:14 2017 +0100 Cleanup output commit 231ac5868070f232f5bd455f0d6070621da9ae91 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:00:36 2017 +0100 Try pausing test before running second check commit 754cbafacdb8dd46db2eee699b8e23009c7d0bf5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 20 13:15:10 2017 +0100 Temporary fix for TLS issues on travis-ci and sensiolab’s security checker commit 8e03bba917ca9ba951bac5197e0008ae7188e19a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:24:51 2017 +0100 Use less strict check on no auth endpoint being found commit 91ee495ae1302f269febdd0e14ecbe81222b1014 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:23:44 2017 +0100 Use newer scope values in token commit 989a242b4ff271f4ac6ee0873dc2924506c0efcf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:30:53 2017 +0100 Missed some array syntax commit 92d11c9a62c2a122b4fef62da8af6bf4be23288d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:21:43 2017 +0100 Fix some styleci issues commit 3a3aa8daca981561594cf3fb542c3e240b174013 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:50:31 2017 +0100 Allow client to send request with JSON syntax, cleanup a but of other code commit dcc3baf2dc554175fdd1de408cb4f7170a6540d4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:47:51 2017 +0100 composer update commit b89dbb6b7a4940b5eed30727f0bd67bc382d98bc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 14 09:50:39 2017 +0100 wip commit 87eb63dc9570f6822324d665bc1658cfcb446554 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 18:44:15 2017 +0100 Allow the syntax for the endpoint to be set in the config page commit 9595a0b68e4b51d77c18e63f9940026aa1325475 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 17:17:34 2017 +0100 Use better scope values in command commit 08e2223a8d56984df826c1cd876f58b00cce8faf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:53:44 2017 +0100 Get media uploads working again commit 4c0d6861324c23afe4145c4ff9a46d8a1ecc10e9 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:09:16 2017 +0100 Show syndication targets properlu in client form and config page commit 63939316a0818c8dfa8cba9919b231c2fdad5821 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:08:40 2017 +0100 Update prism, recompress assets commit 74902237cb227e05386135fb0e2d5330b65e1c4e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:58:41 2017 +0100 Better presentation of syndication targets commit 345cda342051af406d6616a9162a75af625a64e0 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:47:12 2017 +0100 yarn upgrade commit 17de68cc8f26cc472b009bf42942778fac75c890 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:42:49 2017 +0100 composer update commit 7da78294dfdda8c68fc411ab03db65f101c7fc4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:34:56 2017 +0100 Move to using indieauth-client-php client directly, add code to get new tokens commit 0020596b52c1590936d12ec9c458b7e70a06bc8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:31:40 2017 +0100 Add routes for retreiving a new token commit ee0a6763f037629e2a97fa8536c84cbffbbbd7e2 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:30:33 2017 +0100 Show syndication targets as an unformated json string commit 765d032fa883db834a005f61dc553b3b0ef9ee8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:29:21 2017 +0100 Add a migratin for the indieweb users commit 3a5c458f132cf6c308c2e83eb57c61ae64cc2b48 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:28:51 2017 +0100 Add a normlize_url helper function commit fb71bd6418e7903b7d50a90dd600a82a8af03d38 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:27:41 2017 +0100 Add a token to the users table commit 56df9e8aa453394f8b83e8f6a28cc41c66d172f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:18:06 2017 +0100 Set default values for config screen commit 0df8217a82cac91c3129acc492b73d6e8cb69b44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:17:14 2017 +0100 Use the helper function to normalize URLs commit d5f882972ec43e766ae7b9288b1ab3645dd471cf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:15:41 2017 +0100 In a dev environment automatically log in as the pre-created user commit 2c3379d0e560226a4db181e7d45ce02b575990ae Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:14:13 2017 +0100 Add a default user of me commit 5c955803a8218c477e2f2b126811e6bed5f20379 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:13:08 2017 +0100 Add a helpers file, currently only has a function to normalize URLs commit ae052d305c835952c83602d305cfdb08d5be975e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Mar 31 16:08:30 2017 +0100 Allow a user to register/login with his domain commit 638ab8085f18c1bdf9c036c0272a8e88079013f5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Mar 28 16:51:42 2017 +0100 Work on allowing people to “register” for the client
2017-04-21 16:38:39 +01:00
* @param Illuminate\Http\Request $request
* @return Illuminate\Http\RedirectResponse
* @todo validate input
2016-05-19 15:01:28 +01:00
*/
Squashed commit of the following: commit 1eecb177b6d5aed8fd7ced14ba5a3fb8d528521b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:19:29 2017 +0100 Fix some Style issues commit 490ca7b8e90b08ad1e59714e09ba49a853cb753e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:06:13 2017 +0100 Run check on POST as well GET methods commit fb588798ce4e6548a0e0be8ec00673b24a41fe40 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:04:47 2017 +0100 Check for exceptions when validating token commit da2ce1a2893c03ae058c07361d860f4e509ac0ee Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:57:27 2017 +0100 Go back to doing all dusk tests commit c34fbf519a0cc528c49e8d5d9628a8891540c294 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:53:17 2017 +0100 Don’t check for error message now commit bd48859f7faf279296c0a15f2f6b18f83a951ebd Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:49:23 2017 +0100 Escape the facade call with backslash commit fcb405d8caf0d23cb70abb67da35cc68e2e86e4f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:43:19 2017 +0100 Regenerate the token within dusk commit 8732f100a075742802447e65a2ba56b7cc69149a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:36:39 2017 +0100 Slight refactor of token verification commit cb0ec39bba5765d55ad024fe3d73ad81877034da Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:29:46 2017 +0100 Stupid forgetting to root the namespace commit 1f2b309d7e77ff195ac8a4aa2f755044d15b4b92 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:22:54 2017 +0100 Try throwing my own exception commit 41dab30389cd04746051b8552e605eb3693ad0f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:12:18 2017 +0100 Checked headers commit 5eb12543adf999c4887a1e63b8d174fb7321202b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:08:37 2017 +0100 Don’t catch exceptions commit 71dbf8d08a7eed9f3795f06811431b7a3c2ddd6c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:00:22 2017 +0100 Log headers for request commit 1109a394456dd07375ccfab5a8436a902f3b27ce Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:54:19 2017 +0100 Add laravels own logs to the artifacts commit f6cd9ee81385bf4366e0e59fc6c34c9b56b6e52c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:38:18 2017 +0100 Log error commit dadf3b3150c74d2199a87a529151d55fc1e67394 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:33:14 2017 +0100 Look for different error message commit 9df2d1b831e6c65283fb5438967f4517752c31ac Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:24:15 2017 +0100 Look for different error message commit 090736735fe3cc5fb4076b77730f7e39bc92d80c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:14:14 2017 +0100 Just checking error message commit 6a766b1bc4af3dd0e335b3f57287086a6e528340 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:08:16 2017 +0100 Look for error message commit a399af496a440e30a0c0a1d4050121b3e491e968 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:00:29 2017 +0100 Simpler setup of php error log commit 3472c48ed50466c2d150e727cb6c1e43b1298d4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:45:11 2017 +0100 Set the php error log commit 978c17f33e2d9c3dd5166744aef924bf21483737 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:37:04 2017 +0100 Set the php-fpm error log commit 0e3407a4781f83bf3c516578a4594eff92b9d4d8 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:18:45 2017 +0100 Save a token for the user commit 951fe7966e18ac9e38526b6dfdc4a75fd4d68a0c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:56:49 2017 +0100 Use the right phrase commit faedc802a46c35b3b9264348ebbd895f4d2b3895 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:41:03 2017 +0100 Easier phrase to find in log commit 71b3c905bb4be0943254e51604af1293cc63cd0f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:35:07 2017 +0100 Check we are logged in commit fd6e3c79f13b9aada395a53b367e316936787298 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:20:14 2017 +0100 Cleanup output commit 231ac5868070f232f5bd455f0d6070621da9ae91 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:00:36 2017 +0100 Try pausing test before running second check commit 754cbafacdb8dd46db2eee699b8e23009c7d0bf5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 20 13:15:10 2017 +0100 Temporary fix for TLS issues on travis-ci and sensiolab’s security checker commit 8e03bba917ca9ba951bac5197e0008ae7188e19a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:24:51 2017 +0100 Use less strict check on no auth endpoint being found commit 91ee495ae1302f269febdd0e14ecbe81222b1014 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:23:44 2017 +0100 Use newer scope values in token commit 989a242b4ff271f4ac6ee0873dc2924506c0efcf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:30:53 2017 +0100 Missed some array syntax commit 92d11c9a62c2a122b4fef62da8af6bf4be23288d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:21:43 2017 +0100 Fix some styleci issues commit 3a3aa8daca981561594cf3fb542c3e240b174013 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:50:31 2017 +0100 Allow client to send request with JSON syntax, cleanup a but of other code commit dcc3baf2dc554175fdd1de408cb4f7170a6540d4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:47:51 2017 +0100 composer update commit b89dbb6b7a4940b5eed30727f0bd67bc382d98bc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 14 09:50:39 2017 +0100 wip commit 87eb63dc9570f6822324d665bc1658cfcb446554 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 18:44:15 2017 +0100 Allow the syntax for the endpoint to be set in the config page commit 9595a0b68e4b51d77c18e63f9940026aa1325475 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 17:17:34 2017 +0100 Use better scope values in command commit 08e2223a8d56984df826c1cd876f58b00cce8faf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:53:44 2017 +0100 Get media uploads working again commit 4c0d6861324c23afe4145c4ff9a46d8a1ecc10e9 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:09:16 2017 +0100 Show syndication targets properlu in client form and config page commit 63939316a0818c8dfa8cba9919b231c2fdad5821 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:08:40 2017 +0100 Update prism, recompress assets commit 74902237cb227e05386135fb0e2d5330b65e1c4e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:58:41 2017 +0100 Better presentation of syndication targets commit 345cda342051af406d6616a9162a75af625a64e0 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:47:12 2017 +0100 yarn upgrade commit 17de68cc8f26cc472b009bf42942778fac75c890 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:42:49 2017 +0100 composer update commit 7da78294dfdda8c68fc411ab03db65f101c7fc4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:34:56 2017 +0100 Move to using indieauth-client-php client directly, add code to get new tokens commit 0020596b52c1590936d12ec9c458b7e70a06bc8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:31:40 2017 +0100 Add routes for retreiving a new token commit ee0a6763f037629e2a97fa8536c84cbffbbbd7e2 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:30:33 2017 +0100 Show syndication targets as an unformated json string commit 765d032fa883db834a005f61dc553b3b0ef9ee8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:29:21 2017 +0100 Add a migratin for the indieweb users commit 3a5c458f132cf6c308c2e83eb57c61ae64cc2b48 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:28:51 2017 +0100 Add a normlize_url helper function commit fb71bd6418e7903b7d50a90dd600a82a8af03d38 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:27:41 2017 +0100 Add a token to the users table commit 56df9e8aa453394f8b83e8f6a28cc41c66d172f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:18:06 2017 +0100 Set default values for config screen commit 0df8217a82cac91c3129acc492b73d6e8cb69b44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:17:14 2017 +0100 Use the helper function to normalize URLs commit d5f882972ec43e766ae7b9288b1ab3645dd471cf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:15:41 2017 +0100 In a dev environment automatically log in as the pre-created user commit 2c3379d0e560226a4db181e7d45ce02b575990ae Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:14:13 2017 +0100 Add a default user of me commit 5c955803a8218c477e2f2b126811e6bed5f20379 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:13:08 2017 +0100 Add a helpers file, currently only has a function to normalize URLs commit ae052d305c835952c83602d305cfdb08d5be975e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Mar 31 16:08:30 2017 +0100 Allow a user to register/login with his domain commit 638ab8085f18c1bdf9c036c0272a8e88079013f5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Mar 28 16:51:42 2017 +0100 Work on allowing people to “register” for the client
2017-04-21 16:38:39 +01:00
public function updateSyntax(Request $request)
{
$user = IndieWebUser::where('me', $request->session()->get('me'))->firstOrFail();
$user->syntax = $request->syntax;
$user->save();
2016-05-19 15:01:28 +01:00
return redirect()->route('micropub-config');
2016-05-19 15:01:28 +01:00
}
/**
* Create a new place.
*
* @param \Illuminate\Http\Request $request
* @return mixed
*/
public function newPlace(Request $request)
2016-05-19 15:01:28 +01:00
{
Squashed commit of the following: commit 1eecb177b6d5aed8fd7ced14ba5a3fb8d528521b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:19:29 2017 +0100 Fix some Style issues commit 490ca7b8e90b08ad1e59714e09ba49a853cb753e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:06:13 2017 +0100 Run check on POST as well GET methods commit fb588798ce4e6548a0e0be8ec00673b24a41fe40 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:04:47 2017 +0100 Check for exceptions when validating token commit da2ce1a2893c03ae058c07361d860f4e509ac0ee Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:57:27 2017 +0100 Go back to doing all dusk tests commit c34fbf519a0cc528c49e8d5d9628a8891540c294 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:53:17 2017 +0100 Don’t check for error message now commit bd48859f7faf279296c0a15f2f6b18f83a951ebd Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:49:23 2017 +0100 Escape the facade call with backslash commit fcb405d8caf0d23cb70abb67da35cc68e2e86e4f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:43:19 2017 +0100 Regenerate the token within dusk commit 8732f100a075742802447e65a2ba56b7cc69149a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:36:39 2017 +0100 Slight refactor of token verification commit cb0ec39bba5765d55ad024fe3d73ad81877034da Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:29:46 2017 +0100 Stupid forgetting to root the namespace commit 1f2b309d7e77ff195ac8a4aa2f755044d15b4b92 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:22:54 2017 +0100 Try throwing my own exception commit 41dab30389cd04746051b8552e605eb3693ad0f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:12:18 2017 +0100 Checked headers commit 5eb12543adf999c4887a1e63b8d174fb7321202b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:08:37 2017 +0100 Don’t catch exceptions commit 71dbf8d08a7eed9f3795f06811431b7a3c2ddd6c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:00:22 2017 +0100 Log headers for request commit 1109a394456dd07375ccfab5a8436a902f3b27ce Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:54:19 2017 +0100 Add laravels own logs to the artifacts commit f6cd9ee81385bf4366e0e59fc6c34c9b56b6e52c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:38:18 2017 +0100 Log error commit dadf3b3150c74d2199a87a529151d55fc1e67394 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:33:14 2017 +0100 Look for different error message commit 9df2d1b831e6c65283fb5438967f4517752c31ac Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:24:15 2017 +0100 Look for different error message commit 090736735fe3cc5fb4076b77730f7e39bc92d80c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:14:14 2017 +0100 Just checking error message commit 6a766b1bc4af3dd0e335b3f57287086a6e528340 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:08:16 2017 +0100 Look for error message commit a399af496a440e30a0c0a1d4050121b3e491e968 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:00:29 2017 +0100 Simpler setup of php error log commit 3472c48ed50466c2d150e727cb6c1e43b1298d4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:45:11 2017 +0100 Set the php error log commit 978c17f33e2d9c3dd5166744aef924bf21483737 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:37:04 2017 +0100 Set the php-fpm error log commit 0e3407a4781f83bf3c516578a4594eff92b9d4d8 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:18:45 2017 +0100 Save a token for the user commit 951fe7966e18ac9e38526b6dfdc4a75fd4d68a0c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:56:49 2017 +0100 Use the right phrase commit faedc802a46c35b3b9264348ebbd895f4d2b3895 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:41:03 2017 +0100 Easier phrase to find in log commit 71b3c905bb4be0943254e51604af1293cc63cd0f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:35:07 2017 +0100 Check we are logged in commit fd6e3c79f13b9aada395a53b367e316936787298 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:20:14 2017 +0100 Cleanup output commit 231ac5868070f232f5bd455f0d6070621da9ae91 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:00:36 2017 +0100 Try pausing test before running second check commit 754cbafacdb8dd46db2eee699b8e23009c7d0bf5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 20 13:15:10 2017 +0100 Temporary fix for TLS issues on travis-ci and sensiolab’s security checker commit 8e03bba917ca9ba951bac5197e0008ae7188e19a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:24:51 2017 +0100 Use less strict check on no auth endpoint being found commit 91ee495ae1302f269febdd0e14ecbe81222b1014 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:23:44 2017 +0100 Use newer scope values in token commit 989a242b4ff271f4ac6ee0873dc2924506c0efcf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:30:53 2017 +0100 Missed some array syntax commit 92d11c9a62c2a122b4fef62da8af6bf4be23288d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:21:43 2017 +0100 Fix some styleci issues commit 3a3aa8daca981561594cf3fb542c3e240b174013 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:50:31 2017 +0100 Allow client to send request with JSON syntax, cleanup a but of other code commit dcc3baf2dc554175fdd1de408cb4f7170a6540d4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:47:51 2017 +0100 composer update commit b89dbb6b7a4940b5eed30727f0bd67bc382d98bc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 14 09:50:39 2017 +0100 wip commit 87eb63dc9570f6822324d665bc1658cfcb446554 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 18:44:15 2017 +0100 Allow the syntax for the endpoint to be set in the config page commit 9595a0b68e4b51d77c18e63f9940026aa1325475 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 17:17:34 2017 +0100 Use better scope values in command commit 08e2223a8d56984df826c1cd876f58b00cce8faf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:53:44 2017 +0100 Get media uploads working again commit 4c0d6861324c23afe4145c4ff9a46d8a1ecc10e9 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:09:16 2017 +0100 Show syndication targets properlu in client form and config page commit 63939316a0818c8dfa8cba9919b231c2fdad5821 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:08:40 2017 +0100 Update prism, recompress assets commit 74902237cb227e05386135fb0e2d5330b65e1c4e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:58:41 2017 +0100 Better presentation of syndication targets commit 345cda342051af406d6616a9162a75af625a64e0 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:47:12 2017 +0100 yarn upgrade commit 17de68cc8f26cc472b009bf42942778fac75c890 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:42:49 2017 +0100 composer update commit 7da78294dfdda8c68fc411ab03db65f101c7fc4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:34:56 2017 +0100 Move to using indieauth-client-php client directly, add code to get new tokens commit 0020596b52c1590936d12ec9c458b7e70a06bc8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:31:40 2017 +0100 Add routes for retreiving a new token commit ee0a6763f037629e2a97fa8536c84cbffbbbd7e2 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:30:33 2017 +0100 Show syndication targets as an unformated json string commit 765d032fa883db834a005f61dc553b3b0ef9ee8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:29:21 2017 +0100 Add a migratin for the indieweb users commit 3a5c458f132cf6c308c2e83eb57c61ae64cc2b48 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:28:51 2017 +0100 Add a normlize_url helper function commit fb71bd6418e7903b7d50a90dd600a82a8af03d38 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:27:41 2017 +0100 Add a token to the users table commit 56df9e8aa453394f8b83e8f6a28cc41c66d172f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:18:06 2017 +0100 Set default values for config screen commit 0df8217a82cac91c3129acc492b73d6e8cb69b44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:17:14 2017 +0100 Use the helper function to normalize URLs commit d5f882972ec43e766ae7b9288b1ab3645dd471cf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:15:41 2017 +0100 In a dev environment automatically log in as the pre-created user commit 2c3379d0e560226a4db181e7d45ce02b575990ae Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:14:13 2017 +0100 Add a default user of me commit 5c955803a8218c477e2f2b126811e6bed5f20379 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:13:08 2017 +0100 Add a helpers file, currently only has a function to normalize URLs commit ae052d305c835952c83602d305cfdb08d5be975e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Mar 31 16:08:30 2017 +0100 Allow a user to register/login with his domain commit 638ab8085f18c1bdf9c036c0272a8e88079013f5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Mar 28 16:51:42 2017 +0100 Work on allowing people to “register” for the client
2017-04-21 16:38:39 +01:00
$url = normalize_url($request->session()->get('me'));
$user = IndieWebUser::where('me', $url)->firstOrFail();
if ($user->token === null) {
return response()->json([
'error' => true,
'error_description' => 'No known token',
], 400);
}
2016-05-19 15:01:28 +01:00
Squashed commit of the following: commit 1eecb177b6d5aed8fd7ced14ba5a3fb8d528521b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:19:29 2017 +0100 Fix some Style issues commit 490ca7b8e90b08ad1e59714e09ba49a853cb753e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:06:13 2017 +0100 Run check on POST as well GET methods commit fb588798ce4e6548a0e0be8ec00673b24a41fe40 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:04:47 2017 +0100 Check for exceptions when validating token commit da2ce1a2893c03ae058c07361d860f4e509ac0ee Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:57:27 2017 +0100 Go back to doing all dusk tests commit c34fbf519a0cc528c49e8d5d9628a8891540c294 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:53:17 2017 +0100 Don’t check for error message now commit bd48859f7faf279296c0a15f2f6b18f83a951ebd Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:49:23 2017 +0100 Escape the facade call with backslash commit fcb405d8caf0d23cb70abb67da35cc68e2e86e4f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:43:19 2017 +0100 Regenerate the token within dusk commit 8732f100a075742802447e65a2ba56b7cc69149a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:36:39 2017 +0100 Slight refactor of token verification commit cb0ec39bba5765d55ad024fe3d73ad81877034da Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:29:46 2017 +0100 Stupid forgetting to root the namespace commit 1f2b309d7e77ff195ac8a4aa2f755044d15b4b92 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:22:54 2017 +0100 Try throwing my own exception commit 41dab30389cd04746051b8552e605eb3693ad0f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:12:18 2017 +0100 Checked headers commit 5eb12543adf999c4887a1e63b8d174fb7321202b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:08:37 2017 +0100 Don’t catch exceptions commit 71dbf8d08a7eed9f3795f06811431b7a3c2ddd6c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:00:22 2017 +0100 Log headers for request commit 1109a394456dd07375ccfab5a8436a902f3b27ce Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:54:19 2017 +0100 Add laravels own logs to the artifacts commit f6cd9ee81385bf4366e0e59fc6c34c9b56b6e52c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:38:18 2017 +0100 Log error commit dadf3b3150c74d2199a87a529151d55fc1e67394 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:33:14 2017 +0100 Look for different error message commit 9df2d1b831e6c65283fb5438967f4517752c31ac Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:24:15 2017 +0100 Look for different error message commit 090736735fe3cc5fb4076b77730f7e39bc92d80c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:14:14 2017 +0100 Just checking error message commit 6a766b1bc4af3dd0e335b3f57287086a6e528340 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:08:16 2017 +0100 Look for error message commit a399af496a440e30a0c0a1d4050121b3e491e968 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:00:29 2017 +0100 Simpler setup of php error log commit 3472c48ed50466c2d150e727cb6c1e43b1298d4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:45:11 2017 +0100 Set the php error log commit 978c17f33e2d9c3dd5166744aef924bf21483737 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:37:04 2017 +0100 Set the php-fpm error log commit 0e3407a4781f83bf3c516578a4594eff92b9d4d8 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:18:45 2017 +0100 Save a token for the user commit 951fe7966e18ac9e38526b6dfdc4a75fd4d68a0c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:56:49 2017 +0100 Use the right phrase commit faedc802a46c35b3b9264348ebbd895f4d2b3895 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:41:03 2017 +0100 Easier phrase to find in log commit 71b3c905bb4be0943254e51604af1293cc63cd0f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:35:07 2017 +0100 Check we are logged in commit fd6e3c79f13b9aada395a53b367e316936787298 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:20:14 2017 +0100 Cleanup output commit 231ac5868070f232f5bd455f0d6070621da9ae91 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:00:36 2017 +0100 Try pausing test before running second check commit 754cbafacdb8dd46db2eee699b8e23009c7d0bf5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 20 13:15:10 2017 +0100 Temporary fix for TLS issues on travis-ci and sensiolab’s security checker commit 8e03bba917ca9ba951bac5197e0008ae7188e19a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:24:51 2017 +0100 Use less strict check on no auth endpoint being found commit 91ee495ae1302f269febdd0e14ecbe81222b1014 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:23:44 2017 +0100 Use newer scope values in token commit 989a242b4ff271f4ac6ee0873dc2924506c0efcf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:30:53 2017 +0100 Missed some array syntax commit 92d11c9a62c2a122b4fef62da8af6bf4be23288d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:21:43 2017 +0100 Fix some styleci issues commit 3a3aa8daca981561594cf3fb542c3e240b174013 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:50:31 2017 +0100 Allow client to send request with JSON syntax, cleanup a but of other code commit dcc3baf2dc554175fdd1de408cb4f7170a6540d4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:47:51 2017 +0100 composer update commit b89dbb6b7a4940b5eed30727f0bd67bc382d98bc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 14 09:50:39 2017 +0100 wip commit 87eb63dc9570f6822324d665bc1658cfcb446554 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 18:44:15 2017 +0100 Allow the syntax for the endpoint to be set in the config page commit 9595a0b68e4b51d77c18e63f9940026aa1325475 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 17:17:34 2017 +0100 Use better scope values in command commit 08e2223a8d56984df826c1cd876f58b00cce8faf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:53:44 2017 +0100 Get media uploads working again commit 4c0d6861324c23afe4145c4ff9a46d8a1ecc10e9 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:09:16 2017 +0100 Show syndication targets properlu in client form and config page commit 63939316a0818c8dfa8cba9919b231c2fdad5821 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:08:40 2017 +0100 Update prism, recompress assets commit 74902237cb227e05386135fb0e2d5330b65e1c4e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:58:41 2017 +0100 Better presentation of syndication targets commit 345cda342051af406d6616a9162a75af625a64e0 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:47:12 2017 +0100 yarn upgrade commit 17de68cc8f26cc472b009bf42942778fac75c890 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:42:49 2017 +0100 composer update commit 7da78294dfdda8c68fc411ab03db65f101c7fc4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:34:56 2017 +0100 Move to using indieauth-client-php client directly, add code to get new tokens commit 0020596b52c1590936d12ec9c458b7e70a06bc8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:31:40 2017 +0100 Add routes for retreiving a new token commit ee0a6763f037629e2a97fa8536c84cbffbbbd7e2 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:30:33 2017 +0100 Show syndication targets as an unformated json string commit 765d032fa883db834a005f61dc553b3b0ef9ee8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:29:21 2017 +0100 Add a migratin for the indieweb users commit 3a5c458f132cf6c308c2e83eb57c61ae64cc2b48 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:28:51 2017 +0100 Add a normlize_url helper function commit fb71bd6418e7903b7d50a90dd600a82a8af03d38 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:27:41 2017 +0100 Add a token to the users table commit 56df9e8aa453394f8b83e8f6a28cc41c66d172f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:18:06 2017 +0100 Set default values for config screen commit 0df8217a82cac91c3129acc492b73d6e8cb69b44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:17:14 2017 +0100 Use the helper function to normalize URLs commit d5f882972ec43e766ae7b9288b1ab3645dd471cf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:15:41 2017 +0100 In a dev environment automatically log in as the pre-created user commit 2c3379d0e560226a4db181e7d45ce02b575990ae Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:14:13 2017 +0100 Add a default user of me commit 5c955803a8218c477e2f2b126811e6bed5f20379 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:13:08 2017 +0100 Add a helpers file, currently only has a function to normalize URLs commit ae052d305c835952c83602d305cfdb08d5be975e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Mar 31 16:08:30 2017 +0100 Allow a user to register/login with his domain commit 638ab8085f18c1bdf9c036c0272a8e88079013f5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Mar 28 16:51:42 2017 +0100 Work on allowing people to “register” for the client
2017-04-21 16:38:39 +01:00
$micropubEndpoint = $this->indieClient->discoverMicropubEndpoint($url);
2016-05-19 15:01:28 +01:00
if (! $micropubEndpoint) {
return response()->json([
2016-05-19 15:01:28 +01:00
'error' => true,
'error_description' => 'Could not determine the micropub endpoint.',
], 400);
2016-05-19 15:01:28 +01:00
}
$formParams = [
'h' => 'card',
'name' => $request->input('place-name'),
'description' => $request->input('place-description'),
'geo' => 'geo:' . $request->input('place-latitude') . ',' . $request->input('place-longitude'),
];
$headers = [
Squashed commit of the following: commit 1eecb177b6d5aed8fd7ced14ba5a3fb8d528521b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:19:29 2017 +0100 Fix some Style issues commit 490ca7b8e90b08ad1e59714e09ba49a853cb753e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:06:13 2017 +0100 Run check on POST as well GET methods commit fb588798ce4e6548a0e0be8ec00673b24a41fe40 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:04:47 2017 +0100 Check for exceptions when validating token commit da2ce1a2893c03ae058c07361d860f4e509ac0ee Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:57:27 2017 +0100 Go back to doing all dusk tests commit c34fbf519a0cc528c49e8d5d9628a8891540c294 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:53:17 2017 +0100 Don’t check for error message now commit bd48859f7faf279296c0a15f2f6b18f83a951ebd Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:49:23 2017 +0100 Escape the facade call with backslash commit fcb405d8caf0d23cb70abb67da35cc68e2e86e4f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:43:19 2017 +0100 Regenerate the token within dusk commit 8732f100a075742802447e65a2ba56b7cc69149a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:36:39 2017 +0100 Slight refactor of token verification commit cb0ec39bba5765d55ad024fe3d73ad81877034da Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:29:46 2017 +0100 Stupid forgetting to root the namespace commit 1f2b309d7e77ff195ac8a4aa2f755044d15b4b92 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:22:54 2017 +0100 Try throwing my own exception commit 41dab30389cd04746051b8552e605eb3693ad0f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:12:18 2017 +0100 Checked headers commit 5eb12543adf999c4887a1e63b8d174fb7321202b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:08:37 2017 +0100 Don’t catch exceptions commit 71dbf8d08a7eed9f3795f06811431b7a3c2ddd6c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:00:22 2017 +0100 Log headers for request commit 1109a394456dd07375ccfab5a8436a902f3b27ce Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:54:19 2017 +0100 Add laravels own logs to the artifacts commit f6cd9ee81385bf4366e0e59fc6c34c9b56b6e52c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:38:18 2017 +0100 Log error commit dadf3b3150c74d2199a87a529151d55fc1e67394 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:33:14 2017 +0100 Look for different error message commit 9df2d1b831e6c65283fb5438967f4517752c31ac Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:24:15 2017 +0100 Look for different error message commit 090736735fe3cc5fb4076b77730f7e39bc92d80c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:14:14 2017 +0100 Just checking error message commit 6a766b1bc4af3dd0e335b3f57287086a6e528340 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:08:16 2017 +0100 Look for error message commit a399af496a440e30a0c0a1d4050121b3e491e968 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:00:29 2017 +0100 Simpler setup of php error log commit 3472c48ed50466c2d150e727cb6c1e43b1298d4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:45:11 2017 +0100 Set the php error log commit 978c17f33e2d9c3dd5166744aef924bf21483737 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:37:04 2017 +0100 Set the php-fpm error log commit 0e3407a4781f83bf3c516578a4594eff92b9d4d8 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:18:45 2017 +0100 Save a token for the user commit 951fe7966e18ac9e38526b6dfdc4a75fd4d68a0c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:56:49 2017 +0100 Use the right phrase commit faedc802a46c35b3b9264348ebbd895f4d2b3895 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:41:03 2017 +0100 Easier phrase to find in log commit 71b3c905bb4be0943254e51604af1293cc63cd0f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:35:07 2017 +0100 Check we are logged in commit fd6e3c79f13b9aada395a53b367e316936787298 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:20:14 2017 +0100 Cleanup output commit 231ac5868070f232f5bd455f0d6070621da9ae91 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:00:36 2017 +0100 Try pausing test before running second check commit 754cbafacdb8dd46db2eee699b8e23009c7d0bf5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 20 13:15:10 2017 +0100 Temporary fix for TLS issues on travis-ci and sensiolab’s security checker commit 8e03bba917ca9ba951bac5197e0008ae7188e19a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:24:51 2017 +0100 Use less strict check on no auth endpoint being found commit 91ee495ae1302f269febdd0e14ecbe81222b1014 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:23:44 2017 +0100 Use newer scope values in token commit 989a242b4ff271f4ac6ee0873dc2924506c0efcf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:30:53 2017 +0100 Missed some array syntax commit 92d11c9a62c2a122b4fef62da8af6bf4be23288d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:21:43 2017 +0100 Fix some styleci issues commit 3a3aa8daca981561594cf3fb542c3e240b174013 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:50:31 2017 +0100 Allow client to send request with JSON syntax, cleanup a but of other code commit dcc3baf2dc554175fdd1de408cb4f7170a6540d4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:47:51 2017 +0100 composer update commit b89dbb6b7a4940b5eed30727f0bd67bc382d98bc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 14 09:50:39 2017 +0100 wip commit 87eb63dc9570f6822324d665bc1658cfcb446554 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 18:44:15 2017 +0100 Allow the syntax for the endpoint to be set in the config page commit 9595a0b68e4b51d77c18e63f9940026aa1325475 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 17:17:34 2017 +0100 Use better scope values in command commit 08e2223a8d56984df826c1cd876f58b00cce8faf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:53:44 2017 +0100 Get media uploads working again commit 4c0d6861324c23afe4145c4ff9a46d8a1ecc10e9 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:09:16 2017 +0100 Show syndication targets properlu in client form and config page commit 63939316a0818c8dfa8cba9919b231c2fdad5821 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:08:40 2017 +0100 Update prism, recompress assets commit 74902237cb227e05386135fb0e2d5330b65e1c4e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:58:41 2017 +0100 Better presentation of syndication targets commit 345cda342051af406d6616a9162a75af625a64e0 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:47:12 2017 +0100 yarn upgrade commit 17de68cc8f26cc472b009bf42942778fac75c890 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:42:49 2017 +0100 composer update commit 7da78294dfdda8c68fc411ab03db65f101c7fc4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:34:56 2017 +0100 Move to using indieauth-client-php client directly, add code to get new tokens commit 0020596b52c1590936d12ec9c458b7e70a06bc8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:31:40 2017 +0100 Add routes for retreiving a new token commit ee0a6763f037629e2a97fa8536c84cbffbbbd7e2 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:30:33 2017 +0100 Show syndication targets as an unformated json string commit 765d032fa883db834a005f61dc553b3b0ef9ee8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:29:21 2017 +0100 Add a migratin for the indieweb users commit 3a5c458f132cf6c308c2e83eb57c61ae64cc2b48 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:28:51 2017 +0100 Add a normlize_url helper function commit fb71bd6418e7903b7d50a90dd600a82a8af03d38 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:27:41 2017 +0100 Add a token to the users table commit 56df9e8aa453394f8b83e8f6a28cc41c66d172f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:18:06 2017 +0100 Set default values for config screen commit 0df8217a82cac91c3129acc492b73d6e8cb69b44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:17:14 2017 +0100 Use the helper function to normalize URLs commit d5f882972ec43e766ae7b9288b1ab3645dd471cf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:15:41 2017 +0100 In a dev environment automatically log in as the pre-created user commit 2c3379d0e560226a4db181e7d45ce02b575990ae Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:14:13 2017 +0100 Add a default user of me commit 5c955803a8218c477e2f2b126811e6bed5f20379 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:13:08 2017 +0100 Add a helpers file, currently only has a function to normalize URLs commit ae052d305c835952c83602d305cfdb08d5be975e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Mar 31 16:08:30 2017 +0100 Allow a user to register/login with his domain commit 638ab8085f18c1bdf9c036c0272a8e88079013f5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Mar 28 16:51:42 2017 +0100 Work on allowing people to “register” for the client
2017-04-21 16:38:39 +01:00
'Authorization' => 'Bearer ' . $user->token,
2016-05-19 15:01:28 +01:00
];
try {
$response = $this->guzzleClient->request('POST', $micropubEndpoint, [
'form_params' => $formParams,
'headers' => $headers,
]);
} catch (ClientException $e) {
Squashed commit of the following: commit 1eecb177b6d5aed8fd7ced14ba5a3fb8d528521b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:19:29 2017 +0100 Fix some Style issues commit 490ca7b8e90b08ad1e59714e09ba49a853cb753e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:06:13 2017 +0100 Run check on POST as well GET methods commit fb588798ce4e6548a0e0be8ec00673b24a41fe40 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:04:47 2017 +0100 Check for exceptions when validating token commit da2ce1a2893c03ae058c07361d860f4e509ac0ee Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:57:27 2017 +0100 Go back to doing all dusk tests commit c34fbf519a0cc528c49e8d5d9628a8891540c294 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:53:17 2017 +0100 Don’t check for error message now commit bd48859f7faf279296c0a15f2f6b18f83a951ebd Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:49:23 2017 +0100 Escape the facade call with backslash commit fcb405d8caf0d23cb70abb67da35cc68e2e86e4f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:43:19 2017 +0100 Regenerate the token within dusk commit 8732f100a075742802447e65a2ba56b7cc69149a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:36:39 2017 +0100 Slight refactor of token verification commit cb0ec39bba5765d55ad024fe3d73ad81877034da Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:29:46 2017 +0100 Stupid forgetting to root the namespace commit 1f2b309d7e77ff195ac8a4aa2f755044d15b4b92 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:22:54 2017 +0100 Try throwing my own exception commit 41dab30389cd04746051b8552e605eb3693ad0f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:12:18 2017 +0100 Checked headers commit 5eb12543adf999c4887a1e63b8d174fb7321202b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:08:37 2017 +0100 Don’t catch exceptions commit 71dbf8d08a7eed9f3795f06811431b7a3c2ddd6c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:00:22 2017 +0100 Log headers for request commit 1109a394456dd07375ccfab5a8436a902f3b27ce Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:54:19 2017 +0100 Add laravels own logs to the artifacts commit f6cd9ee81385bf4366e0e59fc6c34c9b56b6e52c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:38:18 2017 +0100 Log error commit dadf3b3150c74d2199a87a529151d55fc1e67394 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:33:14 2017 +0100 Look for different error message commit 9df2d1b831e6c65283fb5438967f4517752c31ac Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:24:15 2017 +0100 Look for different error message commit 090736735fe3cc5fb4076b77730f7e39bc92d80c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:14:14 2017 +0100 Just checking error message commit 6a766b1bc4af3dd0e335b3f57287086a6e528340 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:08:16 2017 +0100 Look for error message commit a399af496a440e30a0c0a1d4050121b3e491e968 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:00:29 2017 +0100 Simpler setup of php error log commit 3472c48ed50466c2d150e727cb6c1e43b1298d4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:45:11 2017 +0100 Set the php error log commit 978c17f33e2d9c3dd5166744aef924bf21483737 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:37:04 2017 +0100 Set the php-fpm error log commit 0e3407a4781f83bf3c516578a4594eff92b9d4d8 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:18:45 2017 +0100 Save a token for the user commit 951fe7966e18ac9e38526b6dfdc4a75fd4d68a0c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:56:49 2017 +0100 Use the right phrase commit faedc802a46c35b3b9264348ebbd895f4d2b3895 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:41:03 2017 +0100 Easier phrase to find in log commit 71b3c905bb4be0943254e51604af1293cc63cd0f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:35:07 2017 +0100 Check we are logged in commit fd6e3c79f13b9aada395a53b367e316936787298 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:20:14 2017 +0100 Cleanup output commit 231ac5868070f232f5bd455f0d6070621da9ae91 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:00:36 2017 +0100 Try pausing test before running second check commit 754cbafacdb8dd46db2eee699b8e23009c7d0bf5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 20 13:15:10 2017 +0100 Temporary fix for TLS issues on travis-ci and sensiolab’s security checker commit 8e03bba917ca9ba951bac5197e0008ae7188e19a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:24:51 2017 +0100 Use less strict check on no auth endpoint being found commit 91ee495ae1302f269febdd0e14ecbe81222b1014 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:23:44 2017 +0100 Use newer scope values in token commit 989a242b4ff271f4ac6ee0873dc2924506c0efcf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:30:53 2017 +0100 Missed some array syntax commit 92d11c9a62c2a122b4fef62da8af6bf4be23288d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:21:43 2017 +0100 Fix some styleci issues commit 3a3aa8daca981561594cf3fb542c3e240b174013 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:50:31 2017 +0100 Allow client to send request with JSON syntax, cleanup a but of other code commit dcc3baf2dc554175fdd1de408cb4f7170a6540d4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:47:51 2017 +0100 composer update commit b89dbb6b7a4940b5eed30727f0bd67bc382d98bc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 14 09:50:39 2017 +0100 wip commit 87eb63dc9570f6822324d665bc1658cfcb446554 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 18:44:15 2017 +0100 Allow the syntax for the endpoint to be set in the config page commit 9595a0b68e4b51d77c18e63f9940026aa1325475 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 17:17:34 2017 +0100 Use better scope values in command commit 08e2223a8d56984df826c1cd876f58b00cce8faf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:53:44 2017 +0100 Get media uploads working again commit 4c0d6861324c23afe4145c4ff9a46d8a1ecc10e9 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:09:16 2017 +0100 Show syndication targets properlu in client form and config page commit 63939316a0818c8dfa8cba9919b231c2fdad5821 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:08:40 2017 +0100 Update prism, recompress assets commit 74902237cb227e05386135fb0e2d5330b65e1c4e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:58:41 2017 +0100 Better presentation of syndication targets commit 345cda342051af406d6616a9162a75af625a64e0 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:47:12 2017 +0100 yarn upgrade commit 17de68cc8f26cc472b009bf42942778fac75c890 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:42:49 2017 +0100 composer update commit 7da78294dfdda8c68fc411ab03db65f101c7fc4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:34:56 2017 +0100 Move to using indieauth-client-php client directly, add code to get new tokens commit 0020596b52c1590936d12ec9c458b7e70a06bc8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:31:40 2017 +0100 Add routes for retreiving a new token commit ee0a6763f037629e2a97fa8536c84cbffbbbd7e2 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:30:33 2017 +0100 Show syndication targets as an unformated json string commit 765d032fa883db834a005f61dc553b3b0ef9ee8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:29:21 2017 +0100 Add a migratin for the indieweb users commit 3a5c458f132cf6c308c2e83eb57c61ae64cc2b48 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:28:51 2017 +0100 Add a normlize_url helper function commit fb71bd6418e7903b7d50a90dd600a82a8af03d38 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:27:41 2017 +0100 Add a token to the users table commit 56df9e8aa453394f8b83e8f6a28cc41c66d172f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:18:06 2017 +0100 Set default values for config screen commit 0df8217a82cac91c3129acc492b73d6e8cb69b44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:17:14 2017 +0100 Use the helper function to normalize URLs commit d5f882972ec43e766ae7b9288b1ab3645dd471cf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:15:41 2017 +0100 In a dev environment automatically log in as the pre-created user commit 2c3379d0e560226a4db181e7d45ce02b575990ae Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:14:13 2017 +0100 Add a default user of me commit 5c955803a8218c477e2f2b126811e6bed5f20379 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:13:08 2017 +0100 Add a helpers file, currently only has a function to normalize URLs commit ae052d305c835952c83602d305cfdb08d5be975e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Mar 31 16:08:30 2017 +0100 Allow a user to register/login with his domain commit 638ab8085f18c1bdf9c036c0272a8e88079013f5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Mar 28 16:51:42 2017 +0100 Work on allowing people to “register” for the client
2017-04-21 16:38:39 +01:00
return response()->json([
'error' => true,
'error_description' => 'Unable to create the new place',
], 400);
2016-05-19 15:01:28 +01:00
}
Squashed commit of the following: commit 1eecb177b6d5aed8fd7ced14ba5a3fb8d528521b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:19:29 2017 +0100 Fix some Style issues commit 490ca7b8e90b08ad1e59714e09ba49a853cb753e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:06:13 2017 +0100 Run check on POST as well GET methods commit fb588798ce4e6548a0e0be8ec00673b24a41fe40 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:04:47 2017 +0100 Check for exceptions when validating token commit da2ce1a2893c03ae058c07361d860f4e509ac0ee Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:57:27 2017 +0100 Go back to doing all dusk tests commit c34fbf519a0cc528c49e8d5d9628a8891540c294 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:53:17 2017 +0100 Don’t check for error message now commit bd48859f7faf279296c0a15f2f6b18f83a951ebd Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:49:23 2017 +0100 Escape the facade call with backslash commit fcb405d8caf0d23cb70abb67da35cc68e2e86e4f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:43:19 2017 +0100 Regenerate the token within dusk commit 8732f100a075742802447e65a2ba56b7cc69149a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:36:39 2017 +0100 Slight refactor of token verification commit cb0ec39bba5765d55ad024fe3d73ad81877034da Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:29:46 2017 +0100 Stupid forgetting to root the namespace commit 1f2b309d7e77ff195ac8a4aa2f755044d15b4b92 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:22:54 2017 +0100 Try throwing my own exception commit 41dab30389cd04746051b8552e605eb3693ad0f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:12:18 2017 +0100 Checked headers commit 5eb12543adf999c4887a1e63b8d174fb7321202b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:08:37 2017 +0100 Don’t catch exceptions commit 71dbf8d08a7eed9f3795f06811431b7a3c2ddd6c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:00:22 2017 +0100 Log headers for request commit 1109a394456dd07375ccfab5a8436a902f3b27ce Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:54:19 2017 +0100 Add laravels own logs to the artifacts commit f6cd9ee81385bf4366e0e59fc6c34c9b56b6e52c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:38:18 2017 +0100 Log error commit dadf3b3150c74d2199a87a529151d55fc1e67394 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:33:14 2017 +0100 Look for different error message commit 9df2d1b831e6c65283fb5438967f4517752c31ac Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:24:15 2017 +0100 Look for different error message commit 090736735fe3cc5fb4076b77730f7e39bc92d80c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:14:14 2017 +0100 Just checking error message commit 6a766b1bc4af3dd0e335b3f57287086a6e528340 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:08:16 2017 +0100 Look for error message commit a399af496a440e30a0c0a1d4050121b3e491e968 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:00:29 2017 +0100 Simpler setup of php error log commit 3472c48ed50466c2d150e727cb6c1e43b1298d4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:45:11 2017 +0100 Set the php error log commit 978c17f33e2d9c3dd5166744aef924bf21483737 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:37:04 2017 +0100 Set the php-fpm error log commit 0e3407a4781f83bf3c516578a4594eff92b9d4d8 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:18:45 2017 +0100 Save a token for the user commit 951fe7966e18ac9e38526b6dfdc4a75fd4d68a0c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:56:49 2017 +0100 Use the right phrase commit faedc802a46c35b3b9264348ebbd895f4d2b3895 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:41:03 2017 +0100 Easier phrase to find in log commit 71b3c905bb4be0943254e51604af1293cc63cd0f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:35:07 2017 +0100 Check we are logged in commit fd6e3c79f13b9aada395a53b367e316936787298 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:20:14 2017 +0100 Cleanup output commit 231ac5868070f232f5bd455f0d6070621da9ae91 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:00:36 2017 +0100 Try pausing test before running second check commit 754cbafacdb8dd46db2eee699b8e23009c7d0bf5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 20 13:15:10 2017 +0100 Temporary fix for TLS issues on travis-ci and sensiolab’s security checker commit 8e03bba917ca9ba951bac5197e0008ae7188e19a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:24:51 2017 +0100 Use less strict check on no auth endpoint being found commit 91ee495ae1302f269febdd0e14ecbe81222b1014 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:23:44 2017 +0100 Use newer scope values in token commit 989a242b4ff271f4ac6ee0873dc2924506c0efcf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:30:53 2017 +0100 Missed some array syntax commit 92d11c9a62c2a122b4fef62da8af6bf4be23288d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:21:43 2017 +0100 Fix some styleci issues commit 3a3aa8daca981561594cf3fb542c3e240b174013 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:50:31 2017 +0100 Allow client to send request with JSON syntax, cleanup a but of other code commit dcc3baf2dc554175fdd1de408cb4f7170a6540d4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:47:51 2017 +0100 composer update commit b89dbb6b7a4940b5eed30727f0bd67bc382d98bc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 14 09:50:39 2017 +0100 wip commit 87eb63dc9570f6822324d665bc1658cfcb446554 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 18:44:15 2017 +0100 Allow the syntax for the endpoint to be set in the config page commit 9595a0b68e4b51d77c18e63f9940026aa1325475 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 17:17:34 2017 +0100 Use better scope values in command commit 08e2223a8d56984df826c1cd876f58b00cce8faf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:53:44 2017 +0100 Get media uploads working again commit 4c0d6861324c23afe4145c4ff9a46d8a1ecc10e9 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:09:16 2017 +0100 Show syndication targets properlu in client form and config page commit 63939316a0818c8dfa8cba9919b231c2fdad5821 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:08:40 2017 +0100 Update prism, recompress assets commit 74902237cb227e05386135fb0e2d5330b65e1c4e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:58:41 2017 +0100 Better presentation of syndication targets commit 345cda342051af406d6616a9162a75af625a64e0 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:47:12 2017 +0100 yarn upgrade commit 17de68cc8f26cc472b009bf42942778fac75c890 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:42:49 2017 +0100 composer update commit 7da78294dfdda8c68fc411ab03db65f101c7fc4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:34:56 2017 +0100 Move to using indieauth-client-php client directly, add code to get new tokens commit 0020596b52c1590936d12ec9c458b7e70a06bc8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:31:40 2017 +0100 Add routes for retreiving a new token commit ee0a6763f037629e2a97fa8536c84cbffbbbd7e2 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:30:33 2017 +0100 Show syndication targets as an unformated json string commit 765d032fa883db834a005f61dc553b3b0ef9ee8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:29:21 2017 +0100 Add a migratin for the indieweb users commit 3a5c458f132cf6c308c2e83eb57c61ae64cc2b48 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:28:51 2017 +0100 Add a normlize_url helper function commit fb71bd6418e7903b7d50a90dd600a82a8af03d38 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:27:41 2017 +0100 Add a token to the users table commit 56df9e8aa453394f8b83e8f6a28cc41c66d172f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:18:06 2017 +0100 Set default values for config screen commit 0df8217a82cac91c3129acc492b73d6e8cb69b44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:17:14 2017 +0100 Use the helper function to normalize URLs commit d5f882972ec43e766ae7b9288b1ab3645dd471cf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:15:41 2017 +0100 In a dev environment automatically log in as the pre-created user commit 2c3379d0e560226a4db181e7d45ce02b575990ae Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:14:13 2017 +0100 Add a default user of me commit 5c955803a8218c477e2f2b126811e6bed5f20379 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:13:08 2017 +0100 Add a helpers file, currently only has a function to normalize URLs commit ae052d305c835952c83602d305cfdb08d5be975e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Mar 31 16:08:30 2017 +0100 Allow a user to register/login with his domain commit 638ab8085f18c1bdf9c036c0272a8e88079013f5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Mar 28 16:51:42 2017 +0100 Work on allowing people to “register” for the client
2017-04-21 16:38:39 +01:00
$place = $response->getHeader('Location')[0];
2016-05-19 15:01:28 +01:00
Squashed commit of the following: commit 1eecb177b6d5aed8fd7ced14ba5a3fb8d528521b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:19:29 2017 +0100 Fix some Style issues commit 490ca7b8e90b08ad1e59714e09ba49a853cb753e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:06:13 2017 +0100 Run check on POST as well GET methods commit fb588798ce4e6548a0e0be8ec00673b24a41fe40 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:04:47 2017 +0100 Check for exceptions when validating token commit da2ce1a2893c03ae058c07361d860f4e509ac0ee Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:57:27 2017 +0100 Go back to doing all dusk tests commit c34fbf519a0cc528c49e8d5d9628a8891540c294 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:53:17 2017 +0100 Don’t check for error message now commit bd48859f7faf279296c0a15f2f6b18f83a951ebd Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:49:23 2017 +0100 Escape the facade call with backslash commit fcb405d8caf0d23cb70abb67da35cc68e2e86e4f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:43:19 2017 +0100 Regenerate the token within dusk commit 8732f100a075742802447e65a2ba56b7cc69149a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:36:39 2017 +0100 Slight refactor of token verification commit cb0ec39bba5765d55ad024fe3d73ad81877034da Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:29:46 2017 +0100 Stupid forgetting to root the namespace commit 1f2b309d7e77ff195ac8a4aa2f755044d15b4b92 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:22:54 2017 +0100 Try throwing my own exception commit 41dab30389cd04746051b8552e605eb3693ad0f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:12:18 2017 +0100 Checked headers commit 5eb12543adf999c4887a1e63b8d174fb7321202b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:08:37 2017 +0100 Don’t catch exceptions commit 71dbf8d08a7eed9f3795f06811431b7a3c2ddd6c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:00:22 2017 +0100 Log headers for request commit 1109a394456dd07375ccfab5a8436a902f3b27ce Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:54:19 2017 +0100 Add laravels own logs to the artifacts commit f6cd9ee81385bf4366e0e59fc6c34c9b56b6e52c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:38:18 2017 +0100 Log error commit dadf3b3150c74d2199a87a529151d55fc1e67394 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:33:14 2017 +0100 Look for different error message commit 9df2d1b831e6c65283fb5438967f4517752c31ac Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:24:15 2017 +0100 Look for different error message commit 090736735fe3cc5fb4076b77730f7e39bc92d80c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:14:14 2017 +0100 Just checking error message commit 6a766b1bc4af3dd0e335b3f57287086a6e528340 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:08:16 2017 +0100 Look for error message commit a399af496a440e30a0c0a1d4050121b3e491e968 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:00:29 2017 +0100 Simpler setup of php error log commit 3472c48ed50466c2d150e727cb6c1e43b1298d4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:45:11 2017 +0100 Set the php error log commit 978c17f33e2d9c3dd5166744aef924bf21483737 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:37:04 2017 +0100 Set the php-fpm error log commit 0e3407a4781f83bf3c516578a4594eff92b9d4d8 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:18:45 2017 +0100 Save a token for the user commit 951fe7966e18ac9e38526b6dfdc4a75fd4d68a0c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:56:49 2017 +0100 Use the right phrase commit faedc802a46c35b3b9264348ebbd895f4d2b3895 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:41:03 2017 +0100 Easier phrase to find in log commit 71b3c905bb4be0943254e51604af1293cc63cd0f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:35:07 2017 +0100 Check we are logged in commit fd6e3c79f13b9aada395a53b367e316936787298 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:20:14 2017 +0100 Cleanup output commit 231ac5868070f232f5bd455f0d6070621da9ae91 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:00:36 2017 +0100 Try pausing test before running second check commit 754cbafacdb8dd46db2eee699b8e23009c7d0bf5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 20 13:15:10 2017 +0100 Temporary fix for TLS issues on travis-ci and sensiolab’s security checker commit 8e03bba917ca9ba951bac5197e0008ae7188e19a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:24:51 2017 +0100 Use less strict check on no auth endpoint being found commit 91ee495ae1302f269febdd0e14ecbe81222b1014 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:23:44 2017 +0100 Use newer scope values in token commit 989a242b4ff271f4ac6ee0873dc2924506c0efcf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:30:53 2017 +0100 Missed some array syntax commit 92d11c9a62c2a122b4fef62da8af6bf4be23288d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:21:43 2017 +0100 Fix some styleci issues commit 3a3aa8daca981561594cf3fb542c3e240b174013 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:50:31 2017 +0100 Allow client to send request with JSON syntax, cleanup a but of other code commit dcc3baf2dc554175fdd1de408cb4f7170a6540d4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:47:51 2017 +0100 composer update commit b89dbb6b7a4940b5eed30727f0bd67bc382d98bc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 14 09:50:39 2017 +0100 wip commit 87eb63dc9570f6822324d665bc1658cfcb446554 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 18:44:15 2017 +0100 Allow the syntax for the endpoint to be set in the config page commit 9595a0b68e4b51d77c18e63f9940026aa1325475 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 17:17:34 2017 +0100 Use better scope values in command commit 08e2223a8d56984df826c1cd876f58b00cce8faf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:53:44 2017 +0100 Get media uploads working again commit 4c0d6861324c23afe4145c4ff9a46d8a1ecc10e9 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:09:16 2017 +0100 Show syndication targets properlu in client form and config page commit 63939316a0818c8dfa8cba9919b231c2fdad5821 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:08:40 2017 +0100 Update prism, recompress assets commit 74902237cb227e05386135fb0e2d5330b65e1c4e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:58:41 2017 +0100 Better presentation of syndication targets commit 345cda342051af406d6616a9162a75af625a64e0 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:47:12 2017 +0100 yarn upgrade commit 17de68cc8f26cc472b009bf42942778fac75c890 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:42:49 2017 +0100 composer update commit 7da78294dfdda8c68fc411ab03db65f101c7fc4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:34:56 2017 +0100 Move to using indieauth-client-php client directly, add code to get new tokens commit 0020596b52c1590936d12ec9c458b7e70a06bc8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:31:40 2017 +0100 Add routes for retreiving a new token commit ee0a6763f037629e2a97fa8536c84cbffbbbd7e2 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:30:33 2017 +0100 Show syndication targets as an unformated json string commit 765d032fa883db834a005f61dc553b3b0ef9ee8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:29:21 2017 +0100 Add a migratin for the indieweb users commit 3a5c458f132cf6c308c2e83eb57c61ae64cc2b48 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:28:51 2017 +0100 Add a normlize_url helper function commit fb71bd6418e7903b7d50a90dd600a82a8af03d38 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:27:41 2017 +0100 Add a token to the users table commit 56df9e8aa453394f8b83e8f6a28cc41c66d172f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:18:06 2017 +0100 Set default values for config screen commit 0df8217a82cac91c3129acc492b73d6e8cb69b44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:17:14 2017 +0100 Use the helper function to normalize URLs commit d5f882972ec43e766ae7b9288b1ab3645dd471cf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:15:41 2017 +0100 In a dev environment automatically log in as the pre-created user commit 2c3379d0e560226a4db181e7d45ce02b575990ae Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:14:13 2017 +0100 Add a default user of me commit 5c955803a8218c477e2f2b126811e6bed5f20379 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:13:08 2017 +0100 Add a helpers file, currently only has a function to normalize URLs commit ae052d305c835952c83602d305cfdb08d5be975e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Mar 31 16:08:30 2017 +0100 Allow a user to register/login with his domain commit 638ab8085f18c1bdf9c036c0272a8e88079013f5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Mar 28 16:51:42 2017 +0100 Work on allowing people to “register” for the client
2017-04-21 16:38:39 +01:00
return response()->json([
'uri' => $place,
'name' => $request->input('place-name'),
'latitude' => $request->input('place-latitude'),
'longitude' => $request->input('place-longitude'),
]);
2016-05-19 15:01:28 +01:00
}
/**
* Make a request to the micropub endpoint requesting any nearby places.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function nearbyPlaces(Request $request)
{
Squashed commit of the following: commit 1eecb177b6d5aed8fd7ced14ba5a3fb8d528521b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:19:29 2017 +0100 Fix some Style issues commit 490ca7b8e90b08ad1e59714e09ba49a853cb753e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:06:13 2017 +0100 Run check on POST as well GET methods commit fb588798ce4e6548a0e0be8ec00673b24a41fe40 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:04:47 2017 +0100 Check for exceptions when validating token commit da2ce1a2893c03ae058c07361d860f4e509ac0ee Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:57:27 2017 +0100 Go back to doing all dusk tests commit c34fbf519a0cc528c49e8d5d9628a8891540c294 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:53:17 2017 +0100 Don’t check for error message now commit bd48859f7faf279296c0a15f2f6b18f83a951ebd Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:49:23 2017 +0100 Escape the facade call with backslash commit fcb405d8caf0d23cb70abb67da35cc68e2e86e4f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:43:19 2017 +0100 Regenerate the token within dusk commit 8732f100a075742802447e65a2ba56b7cc69149a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:36:39 2017 +0100 Slight refactor of token verification commit cb0ec39bba5765d55ad024fe3d73ad81877034da Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:29:46 2017 +0100 Stupid forgetting to root the namespace commit 1f2b309d7e77ff195ac8a4aa2f755044d15b4b92 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:22:54 2017 +0100 Try throwing my own exception commit 41dab30389cd04746051b8552e605eb3693ad0f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:12:18 2017 +0100 Checked headers commit 5eb12543adf999c4887a1e63b8d174fb7321202b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:08:37 2017 +0100 Don’t catch exceptions commit 71dbf8d08a7eed9f3795f06811431b7a3c2ddd6c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:00:22 2017 +0100 Log headers for request commit 1109a394456dd07375ccfab5a8436a902f3b27ce Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:54:19 2017 +0100 Add laravels own logs to the artifacts commit f6cd9ee81385bf4366e0e59fc6c34c9b56b6e52c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:38:18 2017 +0100 Log error commit dadf3b3150c74d2199a87a529151d55fc1e67394 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:33:14 2017 +0100 Look for different error message commit 9df2d1b831e6c65283fb5438967f4517752c31ac Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:24:15 2017 +0100 Look for different error message commit 090736735fe3cc5fb4076b77730f7e39bc92d80c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:14:14 2017 +0100 Just checking error message commit 6a766b1bc4af3dd0e335b3f57287086a6e528340 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:08:16 2017 +0100 Look for error message commit a399af496a440e30a0c0a1d4050121b3e491e968 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:00:29 2017 +0100 Simpler setup of php error log commit 3472c48ed50466c2d150e727cb6c1e43b1298d4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:45:11 2017 +0100 Set the php error log commit 978c17f33e2d9c3dd5166744aef924bf21483737 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:37:04 2017 +0100 Set the php-fpm error log commit 0e3407a4781f83bf3c516578a4594eff92b9d4d8 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:18:45 2017 +0100 Save a token for the user commit 951fe7966e18ac9e38526b6dfdc4a75fd4d68a0c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:56:49 2017 +0100 Use the right phrase commit faedc802a46c35b3b9264348ebbd895f4d2b3895 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:41:03 2017 +0100 Easier phrase to find in log commit 71b3c905bb4be0943254e51604af1293cc63cd0f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:35:07 2017 +0100 Check we are logged in commit fd6e3c79f13b9aada395a53b367e316936787298 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:20:14 2017 +0100 Cleanup output commit 231ac5868070f232f5bd455f0d6070621da9ae91 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:00:36 2017 +0100 Try pausing test before running second check commit 754cbafacdb8dd46db2eee699b8e23009c7d0bf5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 20 13:15:10 2017 +0100 Temporary fix for TLS issues on travis-ci and sensiolab’s security checker commit 8e03bba917ca9ba951bac5197e0008ae7188e19a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:24:51 2017 +0100 Use less strict check on no auth endpoint being found commit 91ee495ae1302f269febdd0e14ecbe81222b1014 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:23:44 2017 +0100 Use newer scope values in token commit 989a242b4ff271f4ac6ee0873dc2924506c0efcf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:30:53 2017 +0100 Missed some array syntax commit 92d11c9a62c2a122b4fef62da8af6bf4be23288d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:21:43 2017 +0100 Fix some styleci issues commit 3a3aa8daca981561594cf3fb542c3e240b174013 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:50:31 2017 +0100 Allow client to send request with JSON syntax, cleanup a but of other code commit dcc3baf2dc554175fdd1de408cb4f7170a6540d4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:47:51 2017 +0100 composer update commit b89dbb6b7a4940b5eed30727f0bd67bc382d98bc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 14 09:50:39 2017 +0100 wip commit 87eb63dc9570f6822324d665bc1658cfcb446554 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 18:44:15 2017 +0100 Allow the syntax for the endpoint to be set in the config page commit 9595a0b68e4b51d77c18e63f9940026aa1325475 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 17:17:34 2017 +0100 Use better scope values in command commit 08e2223a8d56984df826c1cd876f58b00cce8faf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:53:44 2017 +0100 Get media uploads working again commit 4c0d6861324c23afe4145c4ff9a46d8a1ecc10e9 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:09:16 2017 +0100 Show syndication targets properlu in client form and config page commit 63939316a0818c8dfa8cba9919b231c2fdad5821 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:08:40 2017 +0100 Update prism, recompress assets commit 74902237cb227e05386135fb0e2d5330b65e1c4e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:58:41 2017 +0100 Better presentation of syndication targets commit 345cda342051af406d6616a9162a75af625a64e0 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:47:12 2017 +0100 yarn upgrade commit 17de68cc8f26cc472b009bf42942778fac75c890 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:42:49 2017 +0100 composer update commit 7da78294dfdda8c68fc411ab03db65f101c7fc4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:34:56 2017 +0100 Move to using indieauth-client-php client directly, add code to get new tokens commit 0020596b52c1590936d12ec9c458b7e70a06bc8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:31:40 2017 +0100 Add routes for retreiving a new token commit ee0a6763f037629e2a97fa8536c84cbffbbbd7e2 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:30:33 2017 +0100 Show syndication targets as an unformated json string commit 765d032fa883db834a005f61dc553b3b0ef9ee8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:29:21 2017 +0100 Add a migratin for the indieweb users commit 3a5c458f132cf6c308c2e83eb57c61ae64cc2b48 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:28:51 2017 +0100 Add a normlize_url helper function commit fb71bd6418e7903b7d50a90dd600a82a8af03d38 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:27:41 2017 +0100 Add a token to the users table commit 56df9e8aa453394f8b83e8f6a28cc41c66d172f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:18:06 2017 +0100 Set default values for config screen commit 0df8217a82cac91c3129acc492b73d6e8cb69b44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:17:14 2017 +0100 Use the helper function to normalize URLs commit d5f882972ec43e766ae7b9288b1ab3645dd471cf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:15:41 2017 +0100 In a dev environment automatically log in as the pre-created user commit 2c3379d0e560226a4db181e7d45ce02b575990ae Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:14:13 2017 +0100 Add a default user of me commit 5c955803a8218c477e2f2b126811e6bed5f20379 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:13:08 2017 +0100 Add a helpers file, currently only has a function to normalize URLs commit ae052d305c835952c83602d305cfdb08d5be975e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Mar 31 16:08:30 2017 +0100 Allow a user to register/login with his domain commit 638ab8085f18c1bdf9c036c0272a8e88079013f5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Mar 28 16:51:42 2017 +0100 Work on allowing people to “register” for the client
2017-04-21 16:38:39 +01:00
$url = normalize_url($request->session()->get('me'));
$user = IndieWebUser::where('me', $url)->firstOrFail();
if ($user->token === null) {
return response()->json([
'error' => true,
'error_description' => 'No known token',
], 400);
}
Squashed commit of the following: commit 1eecb177b6d5aed8fd7ced14ba5a3fb8d528521b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:19:29 2017 +0100 Fix some Style issues commit 490ca7b8e90b08ad1e59714e09ba49a853cb753e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:06:13 2017 +0100 Run check on POST as well GET methods commit fb588798ce4e6548a0e0be8ec00673b24a41fe40 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:04:47 2017 +0100 Check for exceptions when validating token commit da2ce1a2893c03ae058c07361d860f4e509ac0ee Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:57:27 2017 +0100 Go back to doing all dusk tests commit c34fbf519a0cc528c49e8d5d9628a8891540c294 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:53:17 2017 +0100 Don’t check for error message now commit bd48859f7faf279296c0a15f2f6b18f83a951ebd Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:49:23 2017 +0100 Escape the facade call with backslash commit fcb405d8caf0d23cb70abb67da35cc68e2e86e4f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:43:19 2017 +0100 Regenerate the token within dusk commit 8732f100a075742802447e65a2ba56b7cc69149a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:36:39 2017 +0100 Slight refactor of token verification commit cb0ec39bba5765d55ad024fe3d73ad81877034da Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:29:46 2017 +0100 Stupid forgetting to root the namespace commit 1f2b309d7e77ff195ac8a4aa2f755044d15b4b92 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:22:54 2017 +0100 Try throwing my own exception commit 41dab30389cd04746051b8552e605eb3693ad0f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:12:18 2017 +0100 Checked headers commit 5eb12543adf999c4887a1e63b8d174fb7321202b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:08:37 2017 +0100 Don’t catch exceptions commit 71dbf8d08a7eed9f3795f06811431b7a3c2ddd6c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:00:22 2017 +0100 Log headers for request commit 1109a394456dd07375ccfab5a8436a902f3b27ce Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:54:19 2017 +0100 Add laravels own logs to the artifacts commit f6cd9ee81385bf4366e0e59fc6c34c9b56b6e52c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:38:18 2017 +0100 Log error commit dadf3b3150c74d2199a87a529151d55fc1e67394 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:33:14 2017 +0100 Look for different error message commit 9df2d1b831e6c65283fb5438967f4517752c31ac Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:24:15 2017 +0100 Look for different error message commit 090736735fe3cc5fb4076b77730f7e39bc92d80c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:14:14 2017 +0100 Just checking error message commit 6a766b1bc4af3dd0e335b3f57287086a6e528340 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:08:16 2017 +0100 Look for error message commit a399af496a440e30a0c0a1d4050121b3e491e968 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:00:29 2017 +0100 Simpler setup of php error log commit 3472c48ed50466c2d150e727cb6c1e43b1298d4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:45:11 2017 +0100 Set the php error log commit 978c17f33e2d9c3dd5166744aef924bf21483737 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:37:04 2017 +0100 Set the php-fpm error log commit 0e3407a4781f83bf3c516578a4594eff92b9d4d8 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:18:45 2017 +0100 Save a token for the user commit 951fe7966e18ac9e38526b6dfdc4a75fd4d68a0c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:56:49 2017 +0100 Use the right phrase commit faedc802a46c35b3b9264348ebbd895f4d2b3895 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:41:03 2017 +0100 Easier phrase to find in log commit 71b3c905bb4be0943254e51604af1293cc63cd0f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:35:07 2017 +0100 Check we are logged in commit fd6e3c79f13b9aada395a53b367e316936787298 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:20:14 2017 +0100 Cleanup output commit 231ac5868070f232f5bd455f0d6070621da9ae91 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:00:36 2017 +0100 Try pausing test before running second check commit 754cbafacdb8dd46db2eee699b8e23009c7d0bf5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 20 13:15:10 2017 +0100 Temporary fix for TLS issues on travis-ci and sensiolab’s security checker commit 8e03bba917ca9ba951bac5197e0008ae7188e19a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:24:51 2017 +0100 Use less strict check on no auth endpoint being found commit 91ee495ae1302f269febdd0e14ecbe81222b1014 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:23:44 2017 +0100 Use newer scope values in token commit 989a242b4ff271f4ac6ee0873dc2924506c0efcf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:30:53 2017 +0100 Missed some array syntax commit 92d11c9a62c2a122b4fef62da8af6bf4be23288d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:21:43 2017 +0100 Fix some styleci issues commit 3a3aa8daca981561594cf3fb542c3e240b174013 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:50:31 2017 +0100 Allow client to send request with JSON syntax, cleanup a but of other code commit dcc3baf2dc554175fdd1de408cb4f7170a6540d4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:47:51 2017 +0100 composer update commit b89dbb6b7a4940b5eed30727f0bd67bc382d98bc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 14 09:50:39 2017 +0100 wip commit 87eb63dc9570f6822324d665bc1658cfcb446554 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 18:44:15 2017 +0100 Allow the syntax for the endpoint to be set in the config page commit 9595a0b68e4b51d77c18e63f9940026aa1325475 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 17:17:34 2017 +0100 Use better scope values in command commit 08e2223a8d56984df826c1cd876f58b00cce8faf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:53:44 2017 +0100 Get media uploads working again commit 4c0d6861324c23afe4145c4ff9a46d8a1ecc10e9 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:09:16 2017 +0100 Show syndication targets properlu in client form and config page commit 63939316a0818c8dfa8cba9919b231c2fdad5821 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:08:40 2017 +0100 Update prism, recompress assets commit 74902237cb227e05386135fb0e2d5330b65e1c4e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:58:41 2017 +0100 Better presentation of syndication targets commit 345cda342051af406d6616a9162a75af625a64e0 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:47:12 2017 +0100 yarn upgrade commit 17de68cc8f26cc472b009bf42942778fac75c890 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:42:49 2017 +0100 composer update commit 7da78294dfdda8c68fc411ab03db65f101c7fc4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:34:56 2017 +0100 Move to using indieauth-client-php client directly, add code to get new tokens commit 0020596b52c1590936d12ec9c458b7e70a06bc8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:31:40 2017 +0100 Add routes for retreiving a new token commit ee0a6763f037629e2a97fa8536c84cbffbbbd7e2 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:30:33 2017 +0100 Show syndication targets as an unformated json string commit 765d032fa883db834a005f61dc553b3b0ef9ee8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:29:21 2017 +0100 Add a migratin for the indieweb users commit 3a5c458f132cf6c308c2e83eb57c61ae64cc2b48 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:28:51 2017 +0100 Add a normlize_url helper function commit fb71bd6418e7903b7d50a90dd600a82a8af03d38 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:27:41 2017 +0100 Add a token to the users table commit 56df9e8aa453394f8b83e8f6a28cc41c66d172f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:18:06 2017 +0100 Set default values for config screen commit 0df8217a82cac91c3129acc492b73d6e8cb69b44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:17:14 2017 +0100 Use the helper function to normalize URLs commit d5f882972ec43e766ae7b9288b1ab3645dd471cf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:15:41 2017 +0100 In a dev environment automatically log in as the pre-created user commit 2c3379d0e560226a4db181e7d45ce02b575990ae Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:14:13 2017 +0100 Add a default user of me commit 5c955803a8218c477e2f2b126811e6bed5f20379 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:13:08 2017 +0100 Add a helpers file, currently only has a function to normalize URLs commit ae052d305c835952c83602d305cfdb08d5be975e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Mar 31 16:08:30 2017 +0100 Allow a user to register/login with his domain commit 638ab8085f18c1bdf9c036c0272a8e88079013f5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Mar 28 16:51:42 2017 +0100 Work on allowing people to “register” for the client
2017-04-21 16:38:39 +01:00
$micropubEndpoint = $this->indieClient->discoverMicropubEndpoint($url);
2016-05-19 15:01:28 +01:00
if (! $micropubEndpoint) {
return response()->json([
'error' => true,
'error_description' => 'No known endpoint',
], 400);
2016-05-19 15:01:28 +01:00
}
try {
$query = 'geo:' . $request->input('latitude') . ',' . $request->input('longitude');
2016-10-03 14:46:53 +01:00
if ($request->input('u') !== null) {
$query .= ';u=' . $request->input('u');
Squashed commit of the following: commit e7f1c4c84579b959fe2997ff4d2315ee53acfe9a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Sep 29 11:22:44 2016 +0100 Add latest change, fix spelling errors in rest of changelog commit 637b5107b557f1c2a56327a40b3d7b4b7297fa29 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Sep 28 21:13:06 2016 +0100 Add a test for uncertainty parameter commit 5e7504b323debf9c91e0cca428b4dca7dda0789d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Sep 28 21:11:12 2016 +0100 Format the ternaty operator correctly commit 19c978a5ac59cd7dfdceee9a8f1aaa6539d8ac66 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Sep 28 20:46:19 2016 +0100 Fix typo commit d4e5b5fc384d0ccd715ea28a51821f958f6c2caa Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Sep 28 20:41:23 2016 +0100 Add paraphanalia commit a96f104894de6c06dc5e41044482de2355cb4965 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Sep 28 20:35:17 2016 +0100 Add the geolocation uncertainty to nearby places request commit 0f6d5649e2f3316040d7453f5fcc96ac1f0ac783 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Sep 28 20:34:38 2016 +0100 Use a query parameter for geolocation uncertainty commit a9147a074315fabb0d76e5991b34a70b2143761c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Sep 28 19:58:08 2016 +0100 Make use of uncertainty parameter when finding nearby places commit bad384b5d8be3ea8905d8f6ca3c20f448869853d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Sep 28 19:28:42 2016 +0100 Support sending uncertainty value to micropub endpoint
2016-09-29 11:28:31 +01:00
}
2016-05-19 15:01:28 +01:00
$response = $this->guzzleClient->get($micropubEndpoint, [
Squashed commit of the following: commit 1eecb177b6d5aed8fd7ced14ba5a3fb8d528521b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:19:29 2017 +0100 Fix some Style issues commit 490ca7b8e90b08ad1e59714e09ba49a853cb753e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:06:13 2017 +0100 Run check on POST as well GET methods commit fb588798ce4e6548a0e0be8ec00673b24a41fe40 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:04:47 2017 +0100 Check for exceptions when validating token commit da2ce1a2893c03ae058c07361d860f4e509ac0ee Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:57:27 2017 +0100 Go back to doing all dusk tests commit c34fbf519a0cc528c49e8d5d9628a8891540c294 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:53:17 2017 +0100 Don’t check for error message now commit bd48859f7faf279296c0a15f2f6b18f83a951ebd Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:49:23 2017 +0100 Escape the facade call with backslash commit fcb405d8caf0d23cb70abb67da35cc68e2e86e4f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:43:19 2017 +0100 Regenerate the token within dusk commit 8732f100a075742802447e65a2ba56b7cc69149a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:36:39 2017 +0100 Slight refactor of token verification commit cb0ec39bba5765d55ad024fe3d73ad81877034da Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:29:46 2017 +0100 Stupid forgetting to root the namespace commit 1f2b309d7e77ff195ac8a4aa2f755044d15b4b92 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:22:54 2017 +0100 Try throwing my own exception commit 41dab30389cd04746051b8552e605eb3693ad0f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:12:18 2017 +0100 Checked headers commit 5eb12543adf999c4887a1e63b8d174fb7321202b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:08:37 2017 +0100 Don’t catch exceptions commit 71dbf8d08a7eed9f3795f06811431b7a3c2ddd6c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:00:22 2017 +0100 Log headers for request commit 1109a394456dd07375ccfab5a8436a902f3b27ce Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:54:19 2017 +0100 Add laravels own logs to the artifacts commit f6cd9ee81385bf4366e0e59fc6c34c9b56b6e52c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:38:18 2017 +0100 Log error commit dadf3b3150c74d2199a87a529151d55fc1e67394 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:33:14 2017 +0100 Look for different error message commit 9df2d1b831e6c65283fb5438967f4517752c31ac Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:24:15 2017 +0100 Look for different error message commit 090736735fe3cc5fb4076b77730f7e39bc92d80c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:14:14 2017 +0100 Just checking error message commit 6a766b1bc4af3dd0e335b3f57287086a6e528340 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:08:16 2017 +0100 Look for error message commit a399af496a440e30a0c0a1d4050121b3e491e968 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:00:29 2017 +0100 Simpler setup of php error log commit 3472c48ed50466c2d150e727cb6c1e43b1298d4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:45:11 2017 +0100 Set the php error log commit 978c17f33e2d9c3dd5166744aef924bf21483737 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:37:04 2017 +0100 Set the php-fpm error log commit 0e3407a4781f83bf3c516578a4594eff92b9d4d8 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:18:45 2017 +0100 Save a token for the user commit 951fe7966e18ac9e38526b6dfdc4a75fd4d68a0c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:56:49 2017 +0100 Use the right phrase commit faedc802a46c35b3b9264348ebbd895f4d2b3895 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:41:03 2017 +0100 Easier phrase to find in log commit 71b3c905bb4be0943254e51604af1293cc63cd0f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:35:07 2017 +0100 Check we are logged in commit fd6e3c79f13b9aada395a53b367e316936787298 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:20:14 2017 +0100 Cleanup output commit 231ac5868070f232f5bd455f0d6070621da9ae91 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:00:36 2017 +0100 Try pausing test before running second check commit 754cbafacdb8dd46db2eee699b8e23009c7d0bf5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 20 13:15:10 2017 +0100 Temporary fix for TLS issues on travis-ci and sensiolab’s security checker commit 8e03bba917ca9ba951bac5197e0008ae7188e19a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:24:51 2017 +0100 Use less strict check on no auth endpoint being found commit 91ee495ae1302f269febdd0e14ecbe81222b1014 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:23:44 2017 +0100 Use newer scope values in token commit 989a242b4ff271f4ac6ee0873dc2924506c0efcf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:30:53 2017 +0100 Missed some array syntax commit 92d11c9a62c2a122b4fef62da8af6bf4be23288d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:21:43 2017 +0100 Fix some styleci issues commit 3a3aa8daca981561594cf3fb542c3e240b174013 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:50:31 2017 +0100 Allow client to send request with JSON syntax, cleanup a but of other code commit dcc3baf2dc554175fdd1de408cb4f7170a6540d4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:47:51 2017 +0100 composer update commit b89dbb6b7a4940b5eed30727f0bd67bc382d98bc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 14 09:50:39 2017 +0100 wip commit 87eb63dc9570f6822324d665bc1658cfcb446554 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 18:44:15 2017 +0100 Allow the syntax for the endpoint to be set in the config page commit 9595a0b68e4b51d77c18e63f9940026aa1325475 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 17:17:34 2017 +0100 Use better scope values in command commit 08e2223a8d56984df826c1cd876f58b00cce8faf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:53:44 2017 +0100 Get media uploads working again commit 4c0d6861324c23afe4145c4ff9a46d8a1ecc10e9 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:09:16 2017 +0100 Show syndication targets properlu in client form and config page commit 63939316a0818c8dfa8cba9919b231c2fdad5821 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:08:40 2017 +0100 Update prism, recompress assets commit 74902237cb227e05386135fb0e2d5330b65e1c4e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:58:41 2017 +0100 Better presentation of syndication targets commit 345cda342051af406d6616a9162a75af625a64e0 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:47:12 2017 +0100 yarn upgrade commit 17de68cc8f26cc472b009bf42942778fac75c890 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:42:49 2017 +0100 composer update commit 7da78294dfdda8c68fc411ab03db65f101c7fc4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:34:56 2017 +0100 Move to using indieauth-client-php client directly, add code to get new tokens commit 0020596b52c1590936d12ec9c458b7e70a06bc8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:31:40 2017 +0100 Add routes for retreiving a new token commit ee0a6763f037629e2a97fa8536c84cbffbbbd7e2 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:30:33 2017 +0100 Show syndication targets as an unformated json string commit 765d032fa883db834a005f61dc553b3b0ef9ee8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:29:21 2017 +0100 Add a migratin for the indieweb users commit 3a5c458f132cf6c308c2e83eb57c61ae64cc2b48 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:28:51 2017 +0100 Add a normlize_url helper function commit fb71bd6418e7903b7d50a90dd600a82a8af03d38 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:27:41 2017 +0100 Add a token to the users table commit 56df9e8aa453394f8b83e8f6a28cc41c66d172f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:18:06 2017 +0100 Set default values for config screen commit 0df8217a82cac91c3129acc492b73d6e8cb69b44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:17:14 2017 +0100 Use the helper function to normalize URLs commit d5f882972ec43e766ae7b9288b1ab3645dd471cf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:15:41 2017 +0100 In a dev environment automatically log in as the pre-created user commit 2c3379d0e560226a4db181e7d45ce02b575990ae Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:14:13 2017 +0100 Add a default user of me commit 5c955803a8218c477e2f2b126811e6bed5f20379 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:13:08 2017 +0100 Add a helpers file, currently only has a function to normalize URLs commit ae052d305c835952c83602d305cfdb08d5be975e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Mar 31 16:08:30 2017 +0100 Allow a user to register/login with his domain commit 638ab8085f18c1bdf9c036c0272a8e88079013f5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Mar 28 16:51:42 2017 +0100 Work on allowing people to “register” for the client
2017-04-21 16:38:39 +01:00
'headers' => ['Authorization' => 'Bearer ' . $user->token],
Squashed commit of the following: commit e7f1c4c84579b959fe2997ff4d2315ee53acfe9a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Sep 29 11:22:44 2016 +0100 Add latest change, fix spelling errors in rest of changelog commit 637b5107b557f1c2a56327a40b3d7b4b7297fa29 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Sep 28 21:13:06 2016 +0100 Add a test for uncertainty parameter commit 5e7504b323debf9c91e0cca428b4dca7dda0789d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Sep 28 21:11:12 2016 +0100 Format the ternaty operator correctly commit 19c978a5ac59cd7dfdceee9a8f1aaa6539d8ac66 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Sep 28 20:46:19 2016 +0100 Fix typo commit d4e5b5fc384d0ccd715ea28a51821f958f6c2caa Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Sep 28 20:41:23 2016 +0100 Add paraphanalia commit a96f104894de6c06dc5e41044482de2355cb4965 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Sep 28 20:35:17 2016 +0100 Add the geolocation uncertainty to nearby places request commit 0f6d5649e2f3316040d7453f5fcc96ac1f0ac783 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Sep 28 20:34:38 2016 +0100 Use a query parameter for geolocation uncertainty commit a9147a074315fabb0d76e5991b34a70b2143761c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Sep 28 19:58:08 2016 +0100 Make use of uncertainty parameter when finding nearby places commit bad384b5d8be3ea8905d8f6ca3c20f448869853d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Sep 28 19:28:42 2016 +0100 Support sending uncertainty value to micropub endpoint
2016-09-29 11:28:31 +01:00
'query' => ['q' => $query],
2016-05-19 15:01:28 +01:00
]);
} catch (\GuzzleHttp\Exception\BadResponseException $e) {
return response()->json([
'error' => true,
Squashed commit of the following: commit 19ec350ca9c3a2ec9da6ee3823f3b0a09efe3eaa Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 22 16:07:42 2016 +0000 Update changelog commit 73428d3d94c659e5e4431b6740ba10dc2a609e44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 22 16:03:37 2016 +0000 output of gulp compress commit 4bb8038e787e35b5d38be9d63600b10bb9d75a07 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 22 16:03:11 2016 +0000 import Guzzle’s ClientException namespace commit 4bcb676bb95274da2422023fefa88b8d246b7f97 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 22 16:02:24 2016 +0000 Update manual testing token commit d902de76f00b4f3bba94ce6528f87e43f6c113f9 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 22 16:01:52 2016 +0000 output of gulp js-assets commit 0a495956e4f540aae0d1515229dd29c30c76fd64 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 22 16:01:27 2016 +0000 Update new note page to use Mapbox GL JS commit bf22004256179c9487c668eb77785a9bc90227bc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Nov 21 18:47:59 2016 +0000 output of gulp js-assets commit 22ed61cb853d98a4638754d44f042841e2b4495c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Nov 21 18:47:06 2016 +0000 Attempting to use mapbox gl on the newnote page commit 47fd891f1b3f0da59d10e937f7ed11f3b603c4af Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sat Nov 19 17:21:53 2016 +0000 gulp derived assets commit 19e83f33b1c8c7a90a74d0ad17a6cace8761bcef Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sat Nov 19 17:21:16 2016 +0000 Move .map styles into mapbox.scss commit 3d848d59126032671907a1e354cf121441d9a6e3 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sat Nov 19 17:12:51 2016 +0000 gulp derived assets commit 9e51e8690ac8b782bc56663e7ec682837b27d4a1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sat Nov 19 17:12:32 2016 +0000 Link to mapbox-gl files commit 296b5fd7770f2a1c5c26ed4efedd99a7a0ad0bed Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sat Nov 19 17:12:08 2016 +0000 Use mapbox gl to add maps to notes commit bd031df6e969b7af741730acabe41465f68bd3a1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sat Nov 19 17:11:27 2016 +0000 Update sass to style mapbox gl maps commit a7cd5e6eaa9510b5c9de672b6d5ed6917dabd7c6 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 16:19:45 2016 +0000 output of gulp compress commit fe63c7ed394d62cd0e47a9ef718d9629d8643e71 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 16:18:47 2016 +0000 output of gulp sass commit 15ac4012681635753a4b1f52d81f7f9e24830eb4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 16:18:05 2016 +0000 Add a dividing line between notes and bio on the homepage commit 5ada66b1a01ae57359145eb757cab65769400f1e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 16:12:01 2016 +0000 output of gulp sass commit 86adf97c3831c3310683a25c2671c7560700de1a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 16:11:33 2016 +0000 Resize note metadata for spacial flow commit 3f3fc51ea8df8206d5b13512295ac09827bb2ede Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 15:37:21 2016 +0000 output of gulp sass commit df6f7f827641dc4deca621d099357757f760ece4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 15:36:51 2016 +0000 Use system UI fonts commit b71950275ddaf274b26195694a07c1b58f746725 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 15:31:30 2016 +0000 output of gulp compress commit 5ff5d73a803b9bcc4e2f314946c1d757dcabae67 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 15:30:12 2016 +0000 output of gulp js-assets commit d8ff563569223bddc836ab9f8fc7c43970273b44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 15:29:27 2016 +0000 use containing divs in new place section of form commit 3cbf3083612210cdd7609c930737cf7a698ec024 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 14:39:27 2016 +0000 gulp sass output commit 239b742a355a397f5b84377b26b2d7a4254bd50e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 14:38:52 2016 +0000 Better spacing of form elements on mobile commit a20279e3f4216b87ff59ed4e507b6de9e212db9f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 13:41:31 2016 +0000 Derived assets commit 86ebd05472498814084e86fb0c2d674633f00096 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 18 13:40:42 2016 +0000 Use containing divs for flex layout commit 00e0e6f3f462ca575e92209a86ada67b7f5ff757 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Nov 17 14:38:39 2016 +0000 Correct scss according to stylelint commit 6dd8ff4d13c3ab83c6a811501b817c45b89338ce Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Nov 17 14:33:46 2016 +0000 Get stylelint working commit 9b9a64defd9335014b46070e2b92a392929f4aa5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Nov 17 09:48:28 2016 +0000 Add missing new-line to match style commit 2521446f32420047d6d5f7372f4f7afc17200a1c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 15 13:16:45 2016 +0000 Add logging during an error, improve the error message commit 095507bec225992aac510a2ca852f65c197f0298 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 15 13:15:59 2016 +0000 Update test token commit 374ef70fecaedf041f12a57688ed9596e25a2ce6 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 15 13:15:16 2016 +0000 Remove typekit for now commit f5671ad435732ddb3288a2e02de7631a6acb4183 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 11 16:06:01 2016 +0000 Better designed new note form commit f38df507b85502e733fa38e970cd584f7d79bca1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 11 13:28:21 2016 +0000 More styling, use normal pagination, improve bio commit 077076d4f92014d488bca5d4dbbab5af913e6cf0 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 11 00:05:56 2016 +0000 Use an anchor for permalinks, re-word projects page commit 37c6e862b693c2bfd3a39654a533627e0f73fd1a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Nov 10 23:58:54 2016 +0000 The resulting CSS files commit 1a3b6d7064b1b67238ffd3909d6d1ae54a4f78e1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Nov 10 23:31:53 2016 +0000 Sass for very basic redesign commit e5d9e9d41b50d7f316fcae9bae75863aa09a7d63 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Nov 10 23:00:35 2016 +0000 Use app.(s)css commit 231c5292e68220f588e9d300975bb19dfea20b4f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Nov 10 22:59:50 2016 +0000 Restructure homepage to show notes, also show bio when on '/', but note '/notes' commit 11a272b2a3050297dd84105a6c70adc937a0c409 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Nov 10 17:49:30 2016 +0000 Set my homepage to the stream of notes commit 2e46ccad4038be64b5007f15dabee0321061fe98 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 8 23:58:11 2016 +0000 Drop sanitize.css and use normalize.css instead, also fix compress method commit 8082403d7464a873691fabab07ae4f6116993cdf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 8 23:48:35 2016 +0000 Sort out yarn dependencies commit 8ef7137d160ae8577e42ab1fd19e957aa37cf08b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 8 23:39:49 2016 +0000 Remove the compiled css commit 8284cdf838f5222eff87c942f119d6000a1b6fc6 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 8 23:16:27 2016 +0000 Remove sass files
2016-11-22 16:08:02 +00:00
'error_description' => 'The endpoint ' . $micropubEndpoint . ' returned a non-good response',
], 400);
2016-05-19 15:01:28 +01:00
}
return response($response->getBody(), 200)
2016-05-19 15:01:28 +01:00
->header('Content-Type', 'application/json');
}
/**
Squashed commit of the following: commit 1eecb177b6d5aed8fd7ced14ba5a3fb8d528521b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:19:29 2017 +0100 Fix some Style issues commit 490ca7b8e90b08ad1e59714e09ba49a853cb753e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:06:13 2017 +0100 Run check on POST as well GET methods commit fb588798ce4e6548a0e0be8ec00673b24a41fe40 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:04:47 2017 +0100 Check for exceptions when validating token commit da2ce1a2893c03ae058c07361d860f4e509ac0ee Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:57:27 2017 +0100 Go back to doing all dusk tests commit c34fbf519a0cc528c49e8d5d9628a8891540c294 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:53:17 2017 +0100 Don’t check for error message now commit bd48859f7faf279296c0a15f2f6b18f83a951ebd Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:49:23 2017 +0100 Escape the facade call with backslash commit fcb405d8caf0d23cb70abb67da35cc68e2e86e4f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:43:19 2017 +0100 Regenerate the token within dusk commit 8732f100a075742802447e65a2ba56b7cc69149a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:36:39 2017 +0100 Slight refactor of token verification commit cb0ec39bba5765d55ad024fe3d73ad81877034da Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:29:46 2017 +0100 Stupid forgetting to root the namespace commit 1f2b309d7e77ff195ac8a4aa2f755044d15b4b92 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:22:54 2017 +0100 Try throwing my own exception commit 41dab30389cd04746051b8552e605eb3693ad0f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:12:18 2017 +0100 Checked headers commit 5eb12543adf999c4887a1e63b8d174fb7321202b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:08:37 2017 +0100 Don’t catch exceptions commit 71dbf8d08a7eed9f3795f06811431b7a3c2ddd6c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:00:22 2017 +0100 Log headers for request commit 1109a394456dd07375ccfab5a8436a902f3b27ce Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:54:19 2017 +0100 Add laravels own logs to the artifacts commit f6cd9ee81385bf4366e0e59fc6c34c9b56b6e52c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:38:18 2017 +0100 Log error commit dadf3b3150c74d2199a87a529151d55fc1e67394 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:33:14 2017 +0100 Look for different error message commit 9df2d1b831e6c65283fb5438967f4517752c31ac Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:24:15 2017 +0100 Look for different error message commit 090736735fe3cc5fb4076b77730f7e39bc92d80c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:14:14 2017 +0100 Just checking error message commit 6a766b1bc4af3dd0e335b3f57287086a6e528340 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:08:16 2017 +0100 Look for error message commit a399af496a440e30a0c0a1d4050121b3e491e968 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:00:29 2017 +0100 Simpler setup of php error log commit 3472c48ed50466c2d150e727cb6c1e43b1298d4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:45:11 2017 +0100 Set the php error log commit 978c17f33e2d9c3dd5166744aef924bf21483737 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:37:04 2017 +0100 Set the php-fpm error log commit 0e3407a4781f83bf3c516578a4594eff92b9d4d8 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:18:45 2017 +0100 Save a token for the user commit 951fe7966e18ac9e38526b6dfdc4a75fd4d68a0c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:56:49 2017 +0100 Use the right phrase commit faedc802a46c35b3b9264348ebbd895f4d2b3895 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:41:03 2017 +0100 Easier phrase to find in log commit 71b3c905bb4be0943254e51604af1293cc63cd0f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:35:07 2017 +0100 Check we are logged in commit fd6e3c79f13b9aada395a53b367e316936787298 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:20:14 2017 +0100 Cleanup output commit 231ac5868070f232f5bd455f0d6070621da9ae91 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:00:36 2017 +0100 Try pausing test before running second check commit 754cbafacdb8dd46db2eee699b8e23009c7d0bf5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 20 13:15:10 2017 +0100 Temporary fix for TLS issues on travis-ci and sensiolab’s security checker commit 8e03bba917ca9ba951bac5197e0008ae7188e19a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:24:51 2017 +0100 Use less strict check on no auth endpoint being found commit 91ee495ae1302f269febdd0e14ecbe81222b1014 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:23:44 2017 +0100 Use newer scope values in token commit 989a242b4ff271f4ac6ee0873dc2924506c0efcf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:30:53 2017 +0100 Missed some array syntax commit 92d11c9a62c2a122b4fef62da8af6bf4be23288d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:21:43 2017 +0100 Fix some styleci issues commit 3a3aa8daca981561594cf3fb542c3e240b174013 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:50:31 2017 +0100 Allow client to send request with JSON syntax, cleanup a but of other code commit dcc3baf2dc554175fdd1de408cb4f7170a6540d4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:47:51 2017 +0100 composer update commit b89dbb6b7a4940b5eed30727f0bd67bc382d98bc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 14 09:50:39 2017 +0100 wip commit 87eb63dc9570f6822324d665bc1658cfcb446554 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 18:44:15 2017 +0100 Allow the syntax for the endpoint to be set in the config page commit 9595a0b68e4b51d77c18e63f9940026aa1325475 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 17:17:34 2017 +0100 Use better scope values in command commit 08e2223a8d56984df826c1cd876f58b00cce8faf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:53:44 2017 +0100 Get media uploads working again commit 4c0d6861324c23afe4145c4ff9a46d8a1ecc10e9 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:09:16 2017 +0100 Show syndication targets properlu in client form and config page commit 63939316a0818c8dfa8cba9919b231c2fdad5821 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:08:40 2017 +0100 Update prism, recompress assets commit 74902237cb227e05386135fb0e2d5330b65e1c4e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:58:41 2017 +0100 Better presentation of syndication targets commit 345cda342051af406d6616a9162a75af625a64e0 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:47:12 2017 +0100 yarn upgrade commit 17de68cc8f26cc472b009bf42942778fac75c890 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:42:49 2017 +0100 composer update commit 7da78294dfdda8c68fc411ab03db65f101c7fc4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:34:56 2017 +0100 Move to using indieauth-client-php client directly, add code to get new tokens commit 0020596b52c1590936d12ec9c458b7e70a06bc8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:31:40 2017 +0100 Add routes for retreiving a new token commit ee0a6763f037629e2a97fa8536c84cbffbbbd7e2 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:30:33 2017 +0100 Show syndication targets as an unformated json string commit 765d032fa883db834a005f61dc553b3b0ef9ee8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:29:21 2017 +0100 Add a migratin for the indieweb users commit 3a5c458f132cf6c308c2e83eb57c61ae64cc2b48 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:28:51 2017 +0100 Add a normlize_url helper function commit fb71bd6418e7903b7d50a90dd600a82a8af03d38 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:27:41 2017 +0100 Add a token to the users table commit 56df9e8aa453394f8b83e8f6a28cc41c66d172f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:18:06 2017 +0100 Set default values for config screen commit 0df8217a82cac91c3129acc492b73d6e8cb69b44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:17:14 2017 +0100 Use the helper function to normalize URLs commit d5f882972ec43e766ae7b9288b1ab3645dd471cf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:15:41 2017 +0100 In a dev environment automatically log in as the pre-created user commit 2c3379d0e560226a4db181e7d45ce02b575990ae Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:14:13 2017 +0100 Add a default user of me commit 5c955803a8218c477e2f2b126811e6bed5f20379 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:13:08 2017 +0100 Add a helpers file, currently only has a function to normalize URLs commit ae052d305c835952c83602d305cfdb08d5be975e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Mar 31 16:08:30 2017 +0100 Allow a user to register/login with his domain commit 638ab8085f18c1bdf9c036c0272a8e88079013f5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Mar 28 16:51:42 2017 +0100 Work on allowing people to “register” for the client
2017-04-21 16:38:39 +01:00
* Parse the syndication targets JSON into a an array.
2016-05-19 15:01:28 +01:00
*
Squashed commit of the following: commit 1eecb177b6d5aed8fd7ced14ba5a3fb8d528521b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:19:29 2017 +0100 Fix some Style issues commit 490ca7b8e90b08ad1e59714e09ba49a853cb753e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:06:13 2017 +0100 Run check on POST as well GET methods commit fb588798ce4e6548a0e0be8ec00673b24a41fe40 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:04:47 2017 +0100 Check for exceptions when validating token commit da2ce1a2893c03ae058c07361d860f4e509ac0ee Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:57:27 2017 +0100 Go back to doing all dusk tests commit c34fbf519a0cc528c49e8d5d9628a8891540c294 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:53:17 2017 +0100 Don’t check for error message now commit bd48859f7faf279296c0a15f2f6b18f83a951ebd Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:49:23 2017 +0100 Escape the facade call with backslash commit fcb405d8caf0d23cb70abb67da35cc68e2e86e4f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:43:19 2017 +0100 Regenerate the token within dusk commit 8732f100a075742802447e65a2ba56b7cc69149a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:36:39 2017 +0100 Slight refactor of token verification commit cb0ec39bba5765d55ad024fe3d73ad81877034da Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:29:46 2017 +0100 Stupid forgetting to root the namespace commit 1f2b309d7e77ff195ac8a4aa2f755044d15b4b92 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:22:54 2017 +0100 Try throwing my own exception commit 41dab30389cd04746051b8552e605eb3693ad0f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:12:18 2017 +0100 Checked headers commit 5eb12543adf999c4887a1e63b8d174fb7321202b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:08:37 2017 +0100 Don’t catch exceptions commit 71dbf8d08a7eed9f3795f06811431b7a3c2ddd6c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:00:22 2017 +0100 Log headers for request commit 1109a394456dd07375ccfab5a8436a902f3b27ce Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:54:19 2017 +0100 Add laravels own logs to the artifacts commit f6cd9ee81385bf4366e0e59fc6c34c9b56b6e52c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:38:18 2017 +0100 Log error commit dadf3b3150c74d2199a87a529151d55fc1e67394 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:33:14 2017 +0100 Look for different error message commit 9df2d1b831e6c65283fb5438967f4517752c31ac Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:24:15 2017 +0100 Look for different error message commit 090736735fe3cc5fb4076b77730f7e39bc92d80c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:14:14 2017 +0100 Just checking error message commit 6a766b1bc4af3dd0e335b3f57287086a6e528340 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:08:16 2017 +0100 Look for error message commit a399af496a440e30a0c0a1d4050121b3e491e968 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:00:29 2017 +0100 Simpler setup of php error log commit 3472c48ed50466c2d150e727cb6c1e43b1298d4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:45:11 2017 +0100 Set the php error log commit 978c17f33e2d9c3dd5166744aef924bf21483737 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:37:04 2017 +0100 Set the php-fpm error log commit 0e3407a4781f83bf3c516578a4594eff92b9d4d8 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:18:45 2017 +0100 Save a token for the user commit 951fe7966e18ac9e38526b6dfdc4a75fd4d68a0c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:56:49 2017 +0100 Use the right phrase commit faedc802a46c35b3b9264348ebbd895f4d2b3895 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:41:03 2017 +0100 Easier phrase to find in log commit 71b3c905bb4be0943254e51604af1293cc63cd0f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:35:07 2017 +0100 Check we are logged in commit fd6e3c79f13b9aada395a53b367e316936787298 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:20:14 2017 +0100 Cleanup output commit 231ac5868070f232f5bd455f0d6070621da9ae91 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:00:36 2017 +0100 Try pausing test before running second check commit 754cbafacdb8dd46db2eee699b8e23009c7d0bf5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 20 13:15:10 2017 +0100 Temporary fix for TLS issues on travis-ci and sensiolab’s security checker commit 8e03bba917ca9ba951bac5197e0008ae7188e19a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:24:51 2017 +0100 Use less strict check on no auth endpoint being found commit 91ee495ae1302f269febdd0e14ecbe81222b1014 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:23:44 2017 +0100 Use newer scope values in token commit 989a242b4ff271f4ac6ee0873dc2924506c0efcf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:30:53 2017 +0100 Missed some array syntax commit 92d11c9a62c2a122b4fef62da8af6bf4be23288d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:21:43 2017 +0100 Fix some styleci issues commit 3a3aa8daca981561594cf3fb542c3e240b174013 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:50:31 2017 +0100 Allow client to send request with JSON syntax, cleanup a but of other code commit dcc3baf2dc554175fdd1de408cb4f7170a6540d4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:47:51 2017 +0100 composer update commit b89dbb6b7a4940b5eed30727f0bd67bc382d98bc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 14 09:50:39 2017 +0100 wip commit 87eb63dc9570f6822324d665bc1658cfcb446554 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 18:44:15 2017 +0100 Allow the syntax for the endpoint to be set in the config page commit 9595a0b68e4b51d77c18e63f9940026aa1325475 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 17:17:34 2017 +0100 Use better scope values in command commit 08e2223a8d56984df826c1cd876f58b00cce8faf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:53:44 2017 +0100 Get media uploads working again commit 4c0d6861324c23afe4145c4ff9a46d8a1ecc10e9 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:09:16 2017 +0100 Show syndication targets properlu in client form and config page commit 63939316a0818c8dfa8cba9919b231c2fdad5821 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:08:40 2017 +0100 Update prism, recompress assets commit 74902237cb227e05386135fb0e2d5330b65e1c4e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:58:41 2017 +0100 Better presentation of syndication targets commit 345cda342051af406d6616a9162a75af625a64e0 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:47:12 2017 +0100 yarn upgrade commit 17de68cc8f26cc472b009bf42942778fac75c890 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:42:49 2017 +0100 composer update commit 7da78294dfdda8c68fc411ab03db65f101c7fc4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:34:56 2017 +0100 Move to using indieauth-client-php client directly, add code to get new tokens commit 0020596b52c1590936d12ec9c458b7e70a06bc8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:31:40 2017 +0100 Add routes for retreiving a new token commit ee0a6763f037629e2a97fa8536c84cbffbbbd7e2 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:30:33 2017 +0100 Show syndication targets as an unformated json string commit 765d032fa883db834a005f61dc553b3b0ef9ee8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:29:21 2017 +0100 Add a migratin for the indieweb users commit 3a5c458f132cf6c308c2e83eb57c61ae64cc2b48 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:28:51 2017 +0100 Add a normlize_url helper function commit fb71bd6418e7903b7d50a90dd600a82a8af03d38 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:27:41 2017 +0100 Add a token to the users table commit 56df9e8aa453394f8b83e8f6a28cc41c66d172f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:18:06 2017 +0100 Set default values for config screen commit 0df8217a82cac91c3129acc492b73d6e8cb69b44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:17:14 2017 +0100 Use the helper function to normalize URLs commit d5f882972ec43e766ae7b9288b1ab3645dd471cf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:15:41 2017 +0100 In a dev environment automatically log in as the pre-created user commit 2c3379d0e560226a4db181e7d45ce02b575990ae Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:14:13 2017 +0100 Add a default user of me commit 5c955803a8218c477e2f2b126811e6bed5f20379 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:13:08 2017 +0100 Add a helpers file, currently only has a function to normalize URLs commit ae052d305c835952c83602d305cfdb08d5be975e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Mar 31 16:08:30 2017 +0100 Allow a user to register/login with his domain commit 638ab8085f18c1bdf9c036c0272a8e88079013f5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Mar 28 16:51:42 2017 +0100 Work on allowing people to “register” for the client
2017-04-21 16:38:39 +01:00
* @param string|null
2016-05-19 15:01:28 +01:00
* @return array|null
*/
private function parseSyndicationTargets($syndicationTargets = null)
{
Squashed commit of the following: commit 1eecb177b6d5aed8fd7ced14ba5a3fb8d528521b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:19:29 2017 +0100 Fix some Style issues commit 490ca7b8e90b08ad1e59714e09ba49a853cb753e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:06:13 2017 +0100 Run check on POST as well GET methods commit fb588798ce4e6548a0e0be8ec00673b24a41fe40 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:04:47 2017 +0100 Check for exceptions when validating token commit da2ce1a2893c03ae058c07361d860f4e509ac0ee Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:57:27 2017 +0100 Go back to doing all dusk tests commit c34fbf519a0cc528c49e8d5d9628a8891540c294 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:53:17 2017 +0100 Don’t check for error message now commit bd48859f7faf279296c0a15f2f6b18f83a951ebd Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:49:23 2017 +0100 Escape the facade call with backslash commit fcb405d8caf0d23cb70abb67da35cc68e2e86e4f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:43:19 2017 +0100 Regenerate the token within dusk commit 8732f100a075742802447e65a2ba56b7cc69149a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:36:39 2017 +0100 Slight refactor of token verification commit cb0ec39bba5765d55ad024fe3d73ad81877034da Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:29:46 2017 +0100 Stupid forgetting to root the namespace commit 1f2b309d7e77ff195ac8a4aa2f755044d15b4b92 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:22:54 2017 +0100 Try throwing my own exception commit 41dab30389cd04746051b8552e605eb3693ad0f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:12:18 2017 +0100 Checked headers commit 5eb12543adf999c4887a1e63b8d174fb7321202b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:08:37 2017 +0100 Don’t catch exceptions commit 71dbf8d08a7eed9f3795f06811431b7a3c2ddd6c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:00:22 2017 +0100 Log headers for request commit 1109a394456dd07375ccfab5a8436a902f3b27ce Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:54:19 2017 +0100 Add laravels own logs to the artifacts commit f6cd9ee81385bf4366e0e59fc6c34c9b56b6e52c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:38:18 2017 +0100 Log error commit dadf3b3150c74d2199a87a529151d55fc1e67394 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:33:14 2017 +0100 Look for different error message commit 9df2d1b831e6c65283fb5438967f4517752c31ac Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:24:15 2017 +0100 Look for different error message commit 090736735fe3cc5fb4076b77730f7e39bc92d80c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:14:14 2017 +0100 Just checking error message commit 6a766b1bc4af3dd0e335b3f57287086a6e528340 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:08:16 2017 +0100 Look for error message commit a399af496a440e30a0c0a1d4050121b3e491e968 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:00:29 2017 +0100 Simpler setup of php error log commit 3472c48ed50466c2d150e727cb6c1e43b1298d4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:45:11 2017 +0100 Set the php error log commit 978c17f33e2d9c3dd5166744aef924bf21483737 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:37:04 2017 +0100 Set the php-fpm error log commit 0e3407a4781f83bf3c516578a4594eff92b9d4d8 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:18:45 2017 +0100 Save a token for the user commit 951fe7966e18ac9e38526b6dfdc4a75fd4d68a0c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:56:49 2017 +0100 Use the right phrase commit faedc802a46c35b3b9264348ebbd895f4d2b3895 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:41:03 2017 +0100 Easier phrase to find in log commit 71b3c905bb4be0943254e51604af1293cc63cd0f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:35:07 2017 +0100 Check we are logged in commit fd6e3c79f13b9aada395a53b367e316936787298 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:20:14 2017 +0100 Cleanup output commit 231ac5868070f232f5bd455f0d6070621da9ae91 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:00:36 2017 +0100 Try pausing test before running second check commit 754cbafacdb8dd46db2eee699b8e23009c7d0bf5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 20 13:15:10 2017 +0100 Temporary fix for TLS issues on travis-ci and sensiolab’s security checker commit 8e03bba917ca9ba951bac5197e0008ae7188e19a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:24:51 2017 +0100 Use less strict check on no auth endpoint being found commit 91ee495ae1302f269febdd0e14ecbe81222b1014 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:23:44 2017 +0100 Use newer scope values in token commit 989a242b4ff271f4ac6ee0873dc2924506c0efcf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:30:53 2017 +0100 Missed some array syntax commit 92d11c9a62c2a122b4fef62da8af6bf4be23288d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:21:43 2017 +0100 Fix some styleci issues commit 3a3aa8daca981561594cf3fb542c3e240b174013 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:50:31 2017 +0100 Allow client to send request with JSON syntax, cleanup a but of other code commit dcc3baf2dc554175fdd1de408cb4f7170a6540d4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:47:51 2017 +0100 composer update commit b89dbb6b7a4940b5eed30727f0bd67bc382d98bc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 14 09:50:39 2017 +0100 wip commit 87eb63dc9570f6822324d665bc1658cfcb446554 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 18:44:15 2017 +0100 Allow the syntax for the endpoint to be set in the config page commit 9595a0b68e4b51d77c18e63f9940026aa1325475 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 17:17:34 2017 +0100 Use better scope values in command commit 08e2223a8d56984df826c1cd876f58b00cce8faf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:53:44 2017 +0100 Get media uploads working again commit 4c0d6861324c23afe4145c4ff9a46d8a1ecc10e9 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:09:16 2017 +0100 Show syndication targets properlu in client form and config page commit 63939316a0818c8dfa8cba9919b231c2fdad5821 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:08:40 2017 +0100 Update prism, recompress assets commit 74902237cb227e05386135fb0e2d5330b65e1c4e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:58:41 2017 +0100 Better presentation of syndication targets commit 345cda342051af406d6616a9162a75af625a64e0 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:47:12 2017 +0100 yarn upgrade commit 17de68cc8f26cc472b009bf42942778fac75c890 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:42:49 2017 +0100 composer update commit 7da78294dfdda8c68fc411ab03db65f101c7fc4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:34:56 2017 +0100 Move to using indieauth-client-php client directly, add code to get new tokens commit 0020596b52c1590936d12ec9c458b7e70a06bc8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:31:40 2017 +0100 Add routes for retreiving a new token commit ee0a6763f037629e2a97fa8536c84cbffbbbd7e2 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:30:33 2017 +0100 Show syndication targets as an unformated json string commit 765d032fa883db834a005f61dc553b3b0ef9ee8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:29:21 2017 +0100 Add a migratin for the indieweb users commit 3a5c458f132cf6c308c2e83eb57c61ae64cc2b48 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:28:51 2017 +0100 Add a normlize_url helper function commit fb71bd6418e7903b7d50a90dd600a82a8af03d38 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:27:41 2017 +0100 Add a token to the users table commit 56df9e8aa453394f8b83e8f6a28cc41c66d172f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:18:06 2017 +0100 Set default values for config screen commit 0df8217a82cac91c3129acc492b73d6e8cb69b44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:17:14 2017 +0100 Use the helper function to normalize URLs commit d5f882972ec43e766ae7b9288b1ab3645dd471cf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:15:41 2017 +0100 In a dev environment automatically log in as the pre-created user commit 2c3379d0e560226a4db181e7d45ce02b575990ae Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:14:13 2017 +0100 Add a default user of me commit 5c955803a8218c477e2f2b126811e6bed5f20379 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:13:08 2017 +0100 Add a helpers file, currently only has a function to normalize URLs commit ae052d305c835952c83602d305cfdb08d5be975e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Mar 31 16:08:30 2017 +0100 Allow a user to register/login with his domain commit 638ab8085f18c1bdf9c036c0272a8e88079013f5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Mar 28 16:51:42 2017 +0100 Work on allowing people to “register” for the client
2017-04-21 16:38:39 +01:00
if ($syndicationTargets === null || $syndicationTargets === '') {
2017-02-24 14:38:52 +00:00
return;
2016-05-19 15:01:28 +01:00
}
$syndicateTo = [];
$data = json_decode($syndicationTargets, true);
Squashed commit of the following: commit 1eecb177b6d5aed8fd7ced14ba5a3fb8d528521b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:19:29 2017 +0100 Fix some Style issues commit 490ca7b8e90b08ad1e59714e09ba49a853cb753e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:06:13 2017 +0100 Run check on POST as well GET methods commit fb588798ce4e6548a0e0be8ec00673b24a41fe40 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:04:47 2017 +0100 Check for exceptions when validating token commit da2ce1a2893c03ae058c07361d860f4e509ac0ee Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:57:27 2017 +0100 Go back to doing all dusk tests commit c34fbf519a0cc528c49e8d5d9628a8891540c294 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:53:17 2017 +0100 Don’t check for error message now commit bd48859f7faf279296c0a15f2f6b18f83a951ebd Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:49:23 2017 +0100 Escape the facade call with backslash commit fcb405d8caf0d23cb70abb67da35cc68e2e86e4f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:43:19 2017 +0100 Regenerate the token within dusk commit 8732f100a075742802447e65a2ba56b7cc69149a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:36:39 2017 +0100 Slight refactor of token verification commit cb0ec39bba5765d55ad024fe3d73ad81877034da Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:29:46 2017 +0100 Stupid forgetting to root the namespace commit 1f2b309d7e77ff195ac8a4aa2f755044d15b4b92 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:22:54 2017 +0100 Try throwing my own exception commit 41dab30389cd04746051b8552e605eb3693ad0f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:12:18 2017 +0100 Checked headers commit 5eb12543adf999c4887a1e63b8d174fb7321202b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:08:37 2017 +0100 Don’t catch exceptions commit 71dbf8d08a7eed9f3795f06811431b7a3c2ddd6c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:00:22 2017 +0100 Log headers for request commit 1109a394456dd07375ccfab5a8436a902f3b27ce Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:54:19 2017 +0100 Add laravels own logs to the artifacts commit f6cd9ee81385bf4366e0e59fc6c34c9b56b6e52c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:38:18 2017 +0100 Log error commit dadf3b3150c74d2199a87a529151d55fc1e67394 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:33:14 2017 +0100 Look for different error message commit 9df2d1b831e6c65283fb5438967f4517752c31ac Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:24:15 2017 +0100 Look for different error message commit 090736735fe3cc5fb4076b77730f7e39bc92d80c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:14:14 2017 +0100 Just checking error message commit 6a766b1bc4af3dd0e335b3f57287086a6e528340 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:08:16 2017 +0100 Look for error message commit a399af496a440e30a0c0a1d4050121b3e491e968 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:00:29 2017 +0100 Simpler setup of php error log commit 3472c48ed50466c2d150e727cb6c1e43b1298d4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:45:11 2017 +0100 Set the php error log commit 978c17f33e2d9c3dd5166744aef924bf21483737 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:37:04 2017 +0100 Set the php-fpm error log commit 0e3407a4781f83bf3c516578a4594eff92b9d4d8 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:18:45 2017 +0100 Save a token for the user commit 951fe7966e18ac9e38526b6dfdc4a75fd4d68a0c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:56:49 2017 +0100 Use the right phrase commit faedc802a46c35b3b9264348ebbd895f4d2b3895 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:41:03 2017 +0100 Easier phrase to find in log commit 71b3c905bb4be0943254e51604af1293cc63cd0f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:35:07 2017 +0100 Check we are logged in commit fd6e3c79f13b9aada395a53b367e316936787298 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:20:14 2017 +0100 Cleanup output commit 231ac5868070f232f5bd455f0d6070621da9ae91 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:00:36 2017 +0100 Try pausing test before running second check commit 754cbafacdb8dd46db2eee699b8e23009c7d0bf5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 20 13:15:10 2017 +0100 Temporary fix for TLS issues on travis-ci and sensiolab’s security checker commit 8e03bba917ca9ba951bac5197e0008ae7188e19a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:24:51 2017 +0100 Use less strict check on no auth endpoint being found commit 91ee495ae1302f269febdd0e14ecbe81222b1014 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:23:44 2017 +0100 Use newer scope values in token commit 989a242b4ff271f4ac6ee0873dc2924506c0efcf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:30:53 2017 +0100 Missed some array syntax commit 92d11c9a62c2a122b4fef62da8af6bf4be23288d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:21:43 2017 +0100 Fix some styleci issues commit 3a3aa8daca981561594cf3fb542c3e240b174013 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:50:31 2017 +0100 Allow client to send request with JSON syntax, cleanup a but of other code commit dcc3baf2dc554175fdd1de408cb4f7170a6540d4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:47:51 2017 +0100 composer update commit b89dbb6b7a4940b5eed30727f0bd67bc382d98bc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 14 09:50:39 2017 +0100 wip commit 87eb63dc9570f6822324d665bc1658cfcb446554 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 18:44:15 2017 +0100 Allow the syntax for the endpoint to be set in the config page commit 9595a0b68e4b51d77c18e63f9940026aa1325475 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 17:17:34 2017 +0100 Use better scope values in command commit 08e2223a8d56984df826c1cd876f58b00cce8faf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:53:44 2017 +0100 Get media uploads working again commit 4c0d6861324c23afe4145c4ff9a46d8a1ecc10e9 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:09:16 2017 +0100 Show syndication targets properlu in client form and config page commit 63939316a0818c8dfa8cba9919b231c2fdad5821 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:08:40 2017 +0100 Update prism, recompress assets commit 74902237cb227e05386135fb0e2d5330b65e1c4e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:58:41 2017 +0100 Better presentation of syndication targets commit 345cda342051af406d6616a9162a75af625a64e0 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:47:12 2017 +0100 yarn upgrade commit 17de68cc8f26cc472b009bf42942778fac75c890 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:42:49 2017 +0100 composer update commit 7da78294dfdda8c68fc411ab03db65f101c7fc4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:34:56 2017 +0100 Move to using indieauth-client-php client directly, add code to get new tokens commit 0020596b52c1590936d12ec9c458b7e70a06bc8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:31:40 2017 +0100 Add routes for retreiving a new token commit ee0a6763f037629e2a97fa8536c84cbffbbbd7e2 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:30:33 2017 +0100 Show syndication targets as an unformated json string commit 765d032fa883db834a005f61dc553b3b0ef9ee8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:29:21 2017 +0100 Add a migratin for the indieweb users commit 3a5c458f132cf6c308c2e83eb57c61ae64cc2b48 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:28:51 2017 +0100 Add a normlize_url helper function commit fb71bd6418e7903b7d50a90dd600a82a8af03d38 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:27:41 2017 +0100 Add a token to the users table commit 56df9e8aa453394f8b83e8f6a28cc41c66d172f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:18:06 2017 +0100 Set default values for config screen commit 0df8217a82cac91c3129acc492b73d6e8cb69b44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:17:14 2017 +0100 Use the helper function to normalize URLs commit d5f882972ec43e766ae7b9288b1ab3645dd471cf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:15:41 2017 +0100 In a dev environment automatically log in as the pre-created user commit 2c3379d0e560226a4db181e7d45ce02b575990ae Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:14:13 2017 +0100 Add a default user of me commit 5c955803a8218c477e2f2b126811e6bed5f20379 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:13:08 2017 +0100 Add a helpers file, currently only has a function to normalize URLs commit ae052d305c835952c83602d305cfdb08d5be975e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Mar 31 16:08:30 2017 +0100 Allow a user to register/login with his domain commit 638ab8085f18c1bdf9c036c0272a8e88079013f5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Mar 28 16:51:42 2017 +0100 Work on allowing people to “register” for the client
2017-04-21 16:38:39 +01:00
if (array_key_exists('uid', $data)) {
$syndicateTo[] = [
'target' => $data['uid'],
'name' => $data['name'],
];
}
foreach ($data as $syn) {
if (array_key_exists('uid', $syn)) {
2016-07-13 17:32:10 +01:00
$syndicateTo[] = [
'target' => $syn['uid'],
'name' => $syn['name'],
];
}
2016-05-19 15:01:28 +01:00
}
Squashed commit of the following: commit 1eecb177b6d5aed8fd7ced14ba5a3fb8d528521b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:19:29 2017 +0100 Fix some Style issues commit 490ca7b8e90b08ad1e59714e09ba49a853cb753e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:06:13 2017 +0100 Run check on POST as well GET methods commit fb588798ce4e6548a0e0be8ec00673b24a41fe40 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 16:04:47 2017 +0100 Check for exceptions when validating token commit da2ce1a2893c03ae058c07361d860f4e509ac0ee Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:57:27 2017 +0100 Go back to doing all dusk tests commit c34fbf519a0cc528c49e8d5d9628a8891540c294 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:53:17 2017 +0100 Don’t check for error message now commit bd48859f7faf279296c0a15f2f6b18f83a951ebd Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:49:23 2017 +0100 Escape the facade call with backslash commit fcb405d8caf0d23cb70abb67da35cc68e2e86e4f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:43:19 2017 +0100 Regenerate the token within dusk commit 8732f100a075742802447e65a2ba56b7cc69149a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:36:39 2017 +0100 Slight refactor of token verification commit cb0ec39bba5765d55ad024fe3d73ad81877034da Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:29:46 2017 +0100 Stupid forgetting to root the namespace commit 1f2b309d7e77ff195ac8a4aa2f755044d15b4b92 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:22:54 2017 +0100 Try throwing my own exception commit 41dab30389cd04746051b8552e605eb3693ad0f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:12:18 2017 +0100 Checked headers commit 5eb12543adf999c4887a1e63b8d174fb7321202b Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:08:37 2017 +0100 Don’t catch exceptions commit 71dbf8d08a7eed9f3795f06811431b7a3c2ddd6c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 15:00:22 2017 +0100 Log headers for request commit 1109a394456dd07375ccfab5a8436a902f3b27ce Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:54:19 2017 +0100 Add laravels own logs to the artifacts commit f6cd9ee81385bf4366e0e59fc6c34c9b56b6e52c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:38:18 2017 +0100 Log error commit dadf3b3150c74d2199a87a529151d55fc1e67394 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:33:14 2017 +0100 Look for different error message commit 9df2d1b831e6c65283fb5438967f4517752c31ac Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:24:15 2017 +0100 Look for different error message commit 090736735fe3cc5fb4076b77730f7e39bc92d80c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:14:14 2017 +0100 Just checking error message commit 6a766b1bc4af3dd0e335b3f57287086a6e528340 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:08:16 2017 +0100 Look for error message commit a399af496a440e30a0c0a1d4050121b3e491e968 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 14:00:29 2017 +0100 Simpler setup of php error log commit 3472c48ed50466c2d150e727cb6c1e43b1298d4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:45:11 2017 +0100 Set the php error log commit 978c17f33e2d9c3dd5166744aef924bf21483737 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:37:04 2017 +0100 Set the php-fpm error log commit 0e3407a4781f83bf3c516578a4594eff92b9d4d8 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 13:18:45 2017 +0100 Save a token for the user commit 951fe7966e18ac9e38526b6dfdc4a75fd4d68a0c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:56:49 2017 +0100 Use the right phrase commit faedc802a46c35b3b9264348ebbd895f4d2b3895 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:41:03 2017 +0100 Easier phrase to find in log commit 71b3c905bb4be0943254e51604af1293cc63cd0f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:35:07 2017 +0100 Check we are logged in commit fd6e3c79f13b9aada395a53b367e316936787298 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:20:14 2017 +0100 Cleanup output commit 231ac5868070f232f5bd455f0d6070621da9ae91 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 21 12:00:36 2017 +0100 Try pausing test before running second check commit 754cbafacdb8dd46db2eee699b8e23009c7d0bf5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 20 13:15:10 2017 +0100 Temporary fix for TLS issues on travis-ci and sensiolab’s security checker commit 8e03bba917ca9ba951bac5197e0008ae7188e19a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:24:51 2017 +0100 Use less strict check on no auth endpoint being found commit 91ee495ae1302f269febdd0e14ecbe81222b1014 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 19 21:23:44 2017 +0100 Use newer scope values in token commit 989a242b4ff271f4ac6ee0873dc2924506c0efcf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:30:53 2017 +0100 Missed some array syntax commit 92d11c9a62c2a122b4fef62da8af6bf4be23288d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 22:21:43 2017 +0100 Fix some styleci issues commit 3a3aa8daca981561594cf3fb542c3e240b174013 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:50:31 2017 +0100 Allow client to send request with JSON syntax, cleanup a but of other code commit dcc3baf2dc554175fdd1de408cb4f7170a6540d4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Apr 18 21:47:51 2017 +0100 composer update commit b89dbb6b7a4940b5eed30727f0bd67bc382d98bc Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Apr 14 09:50:39 2017 +0100 wip commit 87eb63dc9570f6822324d665bc1658cfcb446554 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 18:44:15 2017 +0100 Allow the syntax for the endpoint to be set in the config page commit 9595a0b68e4b51d77c18e63f9940026aa1325475 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 13 17:17:34 2017 +0100 Use better scope values in command commit 08e2223a8d56984df826c1cd876f58b00cce8faf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:53:44 2017 +0100 Get media uploads working again commit 4c0d6861324c23afe4145c4ff9a46d8a1ecc10e9 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:09:16 2017 +0100 Show syndication targets properlu in client form and config page commit 63939316a0818c8dfa8cba9919b231c2fdad5821 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 21:08:40 2017 +0100 Update prism, recompress assets commit 74902237cb227e05386135fb0e2d5330b65e1c4e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:58:41 2017 +0100 Better presentation of syndication targets commit 345cda342051af406d6616a9162a75af625a64e0 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:47:12 2017 +0100 yarn upgrade commit 17de68cc8f26cc472b009bf42942778fac75c890 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Apr 12 17:42:49 2017 +0100 composer update commit 7da78294dfdda8c68fc411ab03db65f101c7fc4c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:34:56 2017 +0100 Move to using indieauth-client-php client directly, add code to get new tokens commit 0020596b52c1590936d12ec9c458b7e70a06bc8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:31:40 2017 +0100 Add routes for retreiving a new token commit ee0a6763f037629e2a97fa8536c84cbffbbbd7e2 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:30:33 2017 +0100 Show syndication targets as an unformated json string commit 765d032fa883db834a005f61dc553b3b0ef9ee8e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:29:21 2017 +0100 Add a migratin for the indieweb users commit 3a5c458f132cf6c308c2e83eb57c61ae64cc2b48 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:28:51 2017 +0100 Add a normlize_url helper function commit fb71bd6418e7903b7d50a90dd600a82a8af03d38 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 10 18:27:41 2017 +0100 Add a token to the users table commit 56df9e8aa453394f8b83e8f6a28cc41c66d172f1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:18:06 2017 +0100 Set default values for config screen commit 0df8217a82cac91c3129acc492b73d6e8cb69b44 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:17:14 2017 +0100 Use the helper function to normalize URLs commit d5f882972ec43e766ae7b9288b1ab3645dd471cf Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:15:41 2017 +0100 In a dev environment automatically log in as the pre-created user commit 2c3379d0e560226a4db181e7d45ce02b575990ae Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:14:13 2017 +0100 Add a default user of me commit 5c955803a8218c477e2f2b126811e6bed5f20379 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Mon Apr 3 09:13:08 2017 +0100 Add a helpers file, currently only has a function to normalize URLs commit ae052d305c835952c83602d305cfdb08d5be975e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Mar 31 16:08:30 2017 +0100 Allow a user to register/login with his domain commit 638ab8085f18c1bdf9c036c0272a8e88079013f5 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Mar 28 16:51:42 2017 +0100 Work on allowing people to “register” for the client
2017-04-21 16:38:39 +01:00
return $syndicateTo;
2016-05-19 15:01:28 +01:00
}
/**
* Parse the media-endpoint retrieved from querying a micropub endpoint.
*
* @param string|null
* @return string
*/
private function parseMediaEndpoint($queryResponse = null)
{
if ($queryResponse === null) {
return;
}
$data = json_decode($queryResponse, true);
if (array_key_exists('media-endpoint', $data)) {
return $data['media-endpoint'];
}
}
2016-05-19 15:01:28 +01:00
}