idp

command
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: CC0-1.0 Imports: 15 Imported by: 0

README

idp

idp: IDentity Provider

This is a poor man's implementation of indieauth's authorization endpoint. Setup and usage is simple:

  • go build -o idp .
  • Set up a domain in your nginx/caddy/whatever configuration for the idp(1) server
  • Set up idp(1) to listen on a local port: ./idp -port 5484
  • Generate a TOTP key: ./idp -secret-gen 16
  • Make a config file
  • Configure idp to start on boot: idp -config /etc/within.x/idp.conf
  • Add <link rel="authorization_endpoint" href="https://idp.christine.website/auth"> to your homepage/index.html where idp.christine.website is your domain from the second step
  • Test here

Config File

// Example idp(1) config file

port 9040
otp-secret 4S62BZNFXXSZLCRO
owner https://example.com
domain idp.example.com

Put this in /etc/within.x/idp.conf

Documentation

Overview

Command idp is a primitive identity provider based on TOTP challenge from Google Authenticator codes.

Directories

Path Synopsis
Package idpmiddleware is a simple HTTP middleware that protects routes using idp(1).
Package idpmiddleware is a simple HTTP middleware that protects routes using idp(1).

Jump to

Keyboard shortcuts

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