relme-auth

command module
v0.0.0-...-3a2841b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2023 License: MIT Imports: 14 Imported by: 0

README

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 --cookie-secret something

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL