example

command
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: BSD-2-Clause Imports: 19 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

This is an example that implements a bitly-esque short link service.

To try it locally, start the example identity provider first and then this service:

go run ./example/idp
go run ./example

The identity provider signs its metadata and writes the certificate it signs with to idp-cert.pem. The service trusts the metadata only if that certificate signed it: the metadata names the certificates trusted to sign assertions, so it must not be taken from the network unchecked.

Then browse to http://localhost:8000/ and log in as alice / hunter2.

Directories

Path Synopsis
Package main contains an example identity provider implementation.
Package main contains an example identity provider implementation.
Package main contains an example service provider implementation.
Package main contains an example service provider implementation.

Jump to

Keyboard shortcuts

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