I've been on this SSO/oauth rabbit hole these last few weeks. I have implemented vouch-proxy (blog post coming soon, I promise. pls don't hate me! ) I happened to stumble upon indieauth which leadme to indielogin, and so forth continuing my rabbit hole. I heard about it this many years ago but it placed on my, "I know I should look into this soon" filing cabinet. Queue the Spongebob scene.
Indie Web states the following:
The IndieWeb effort is different from previous efforts/communities:
- Principles over project-centrism. Others assume a monoculture of one project for all. We are developing a plurality of projects. The IndieWeb community has a code-of-conduct.
- Publish on your site instead of emailing a list. Show before tell. Prioritize by making what you need, creating, iterating on your own site.
- Design first, protocols & formats second. Focus on good UX & using your own prototype features to create minimum necessary formats & protocols.
Disclamer: By no means is my setup even close to being perfect. I'm still a new to this.
The premise here is that you use your domain. Mine for example:
IndieAuth is a federated login protocol for Web sign-in, enabling users to use their own domain to sign in to other sites and services. IndieAuth can be used to implement OAuth2 login AKA OAuth-based login.
Here are a few examples of sites that use indieauth:
On my site I implemented, selfauth. Selfauth is a single user authorization endpoint written as single-file PHP without a database. For common indielogin/indieauth, it usually requires putting a <link..... rel="me> in my header pointing to Twitter or Github to help identify me and use as a method of authenticating my domain. I instead used selfauth and used a to a directory on my server to use as an authorization_endpoint as shown below.
<link rel="authorization_endpoint" href="https://lifeofpablo.com/auth/" />
So now I can login to any website that authenticates users using indielogin/indieauth
Adding h-entry microformats2
h-entry is the microformats2 vocabulary for marking up blog posts on web sites. It can also be used to mark-up any other episodic or time series based content.
Today, I added h-entry tags to my homepage and to my blog. H-entry tags are simply
html classes added to a specific locations on a page. I am using Datenstrom Yellow. I used their API and the blog layouts (blog-start.html & blog.html )
Your h-entries should have, at minimum, the following properties:
- the main content of the post
- if your post is an article with a name, use this classname.
- the datetime the post was published at, in ISO8601 format, with a timezone
- Datenstrom Yellow does this already in this format
- the canonical URL of the post, especially important on pages listing multiple posts
Use this site to help you validate and make sure the information is pulling correctly. Adjust your code accordingly.
Here is my code reflecting h-entry tags as classes on Datenstrom, (the flat-file cms this site is running on).
I recommend using
<span></span> where you need to place two or h-entry tags on the same line. It will help prevent unnecessary line breaks. Datenstrom, for example puts the date and author in the same line. (Look at example below and then look what I do in my code)
2023-03-19 by Pablo Morales
Webmention is an open web standard (W3C Recommendation) for conversations and interactions across the web, a powerful building block used for a growing distributed network of peer-to-peer comments, likes, reposts, and other responses across the web.
Basically, you sign up using your domain and configure your website with the appropriate steps to webmentions.io to start allowing you to do cross-site interactions.
The steps are
- Sign up using your domain
- Get your mention feeds
- Get your API key.
Joining the community and attending events
There seems to be a big community! I am for sure commited! I will continue to share and contribute to this community. I am always looking to find new people to share things I enjoy.
I am really excited to join my first event virtually. I am going to join the "Homebrew Website Club" this week and meet some cool people! Want to join ? Here is the link.
Here's the link to the entire calendar. Upcoming Events
- That's it! We covered:
- h-entry tags & code examples
- Joining the community
I didn't go too much in detail but it's a start. I am happy to continue experimenting with this protocal and implementation for an open-web. Rabbit holes like this are fun and push my limits! There are so many options on how you can implement indieauth and how you can process your data. It's easier for anyone who is using a popular platform such as Wordpress. Why not try the non-easy route? It's fun!