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

Improve Kindle support by adding Micropub links to articles #2

Open
EdwardHinkle opened this issue Sep 11, 2018 · 2 comments
Open

Improve Kindle support by adding Micropub links to articles #2

EdwardHinkle opened this issue Sep 11, 2018 · 2 comments

Comments

@EdwardHinkle
Copy link

An idea discussed in IRC was adding links to articles that allow a user to:

  • Mark post as read
  • Like post
  • Bookmark post

This would require a couple of things:

  1. If the user wants to enable Micropub actions, they have to "Set up Micropub via IndieAuth". When configuring the Kindle notification type, there would be a Web Sign In form allowing IndieAuth flow to retrieve a Micropub token.

  2. When a post is being sent to Kindle, it could include hyperlinks back to the microsub notifier to a url like: /actions/{JWT}
    The JSON Web Token would be configured on the server so you know someone isn't trying to hijack the url endpoint. The JSON Web Token would contain:

{
  'account': 'https://eddiehinkle.com',
  'action': ('like' | 'archive' | 'bookmark'),
  'url': (post url)
}

This allows for the server to know that the only way this request came to be is a person received the Kindle article, clicked the link which activated the URL with the JSON Web Token in it's path. This seems like enough obscurity and security to authorize the action included in the JSON Web Token to be sent to the Micropub/sub server on behalf of the account listed in the token.

@grantcodes
Copy link
Owner

Well I would apply this to all notification methods. And should include a microsub mark read option as well, maybe even delete.

@EdwardHinkle
Copy link
Author

Ahh okay. I didn’t know if you included html with all Notifications options or not. Yeah, if you’re sending html, makes sense to include the links

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

No branches or pull requests

2 participants