Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ticket Endpoint #212

Merged
merged 17 commits into from Sep 12, 2021
Merged

Ticket Endpoint #212

merged 17 commits into from Sep 12, 2021

Conversation

dshanske
Copy link
Member

This merge implements an experimental ticket endpoint to receive tickets. It adds a UI to revoke or verify those tickets. The endpoint is disabled by default and only enabled with a wp-config flag.

@dshanske dshanske requested a review from pfefferle July 10, 2021 23:57
@dshanske
Copy link
Member Author

@pfefferle Can you have a look at this?

@@ -31,7 +31,7 @@ public function indieauth_allow_localhost( $r, $url ) {
public function log_rest_api_errors( $result, $server, $request ) {
$request_route = $request->get_route();
$result_route = $result->get_matched_route();
$routes = array( 'indieauth/1.0/auth', '/indieauth/1.0/token' );
$routes = array( 'indieauth/1.0/auth', '/indieauth/1.0/token', 'indieauth/1.0/ticket' );
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't be a showstopper, but this feels like it may be getting primed for a dedicated method for retrieving routes. Could also potentially get a filter for 3rd party integration.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. This was written a long time ago. I should have it retrieve all indieauth namespace routes.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll likely save the idea for a future PR though.

@tw2113
Copy link

tw2113 commented Sep 10, 2021

Nothing notable standing out to me with this one, code wise. Feels all like pretty well known HTTP process and workflow which is good.

@dshanske
Copy link
Member Author

dshanske commented Sep 10, 2021

Nothing notable standing out to me with this one, code wise. Feels all like pretty well known HTTP process and workflow which is good.

Great, appreciate the help. It's still an experimental spec, but I'd like to merge it in so I can iterate on it.

@dshanske dshanske merged commit 7276401 into indieweb:trunk Sep 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants