Skip to content
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
data
handler
microformats
random
strategy
web
.gitignore
.travis.yml
README.md
go.mod
go.sum
main.go

README.md

relme-auth

An implementation of http://microformats.org/wiki/RelMeAuth.

What?

Sign-in to websites using your own domain.

For example, say you own https://john.example.com. First you would need to set this domain on your Flickr/GitHub/Twitter profile(s). Then add a <a rel="me" href="..."> link to those profiles from https://john.example.com.

Now you can go to relme-auth, enter https://john.example.com and hit sign-in. You can then select which provider you want to authenticate with.

Running the code

This should be pretty standard for a Go project. It requires modules to pin specific versions of packages.

$ go get hawx.me/code/relme-auth

Go to each of Flickr, GitHub and Twitter and setup a new app. Take the id/apiKey and secret given and put in a config.toml file like so,

[flickr]
id = "..."
secret = "..."

[github]
id = "..."
secret = "..."

[twitter]
id = "..."
secret = "..."

Then run the app and go to http://localhost:8080.

$ relme-auth --example-secret something
You can’t perform that action at this time.