sshbrowser

package module
v0.0.0-...-a65e946 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

README

sshbrowser

Proof of Concept for registration/login to website using ssh keys

Steps

Registration
  • user selects ssh public key to upload
  • username populated from public key
Login
  • user select ssh private key for signing
    • note: if key requires a passphrase, a prompt is displayed to enter the passphrase. This should really be a modal dialog with a password field so the passphrase is hidden
  • use inputs email address as username
  • server is contacted to obtain a random string
  • random string is signed with private key
  • username, original message and signed message is returned to server
  • server validates signed message using stored public key

Live Demo

  • registrations are stored in map
  • server is restarted daily; thus all registrations are deleted daily

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Login

type Login struct {
	Message string        `json:"message"`
	Sig     ssh.Signature `json:"sig"`
	User    string        `json:"user"`
}

Login contains login information

type Page

type Page struct {
	Page  string
	Links []string
}

Page contains page information

type Registation

type Registation struct {
	User string `json:"user"`
	Key  string `json:"key"`
}

Registration contains information to register a new user

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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