Skip to content
This repository has been archived by the owner on Sep 22, 2020. It is now read-only.

andrewzah/caddy_logingov

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Caddy LoginGov

LoginGov OAuth plugin for Login.Gov, as per these specifications.

NOTE: This is not a registered plugin with Caddy, so you need to fork Caddy and build it manually in another project. Add something like this to your project's go.mod:

module github.com/<your.username>/<your.project>

go 1.13

// for prod
replace github.com/caddyserver/caddy => github.com/<your.username>/caddy master

// for local development
replace github.com/caddyserver/caddy => ../caddy

This plugin is for Caddy v1, NOT v2.

Example

https://your.website.local {
  tls self_signed

  logingov {
    auth_required /
    auth_required /private
    whitelist /public
    whitelist /public2

    client_id <your id registered with Login.Gov>
    redirect_url https://your.website.local/oauth-callback
    scope email
    acr_values http://idmanagement.gov/ns/assurance/loa/1
    login_url /login
  }
}

License

MIT

Contributors

Sponsor

This project was funded by OSSYS - Open Source Systems.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published