Example usage of github.com/go-webauthn/webauthn

Example

This is an example go + React application which shows off the functionality of the github.com/go-webauthn/webauthn library.

Features

This project implements the following features:

  • Shows off the fact this library can work with practically any http lib (like github.com/valyala/fasthttp) thanks to the hard work by the contributors to github.com/duo-labs/webauthn
  • U2F Registration
  • Attestation:
    • Standard
    • Resident Key / Discoverable
  • Assertion:
    • Standard
    • AppID (U2F Registered Keys)
    • Discoverable (Passwordless)
  • Simulates Username/Password login via a username only login.
  • Shows details about browser support.
  • Shows debug messages relevant to what occurred; for example if the user chooses cancel.
  • Full TypeScript implementation of the Webauthn portions.

Requirements

The following requirements are needed to build the project:

  • npm
  • go (1.17)

Steps

The following steps allow you to run the project:

  • Copy config.example.yml to config.yml.
  • Edit config.yml with your desired settings.
  • Run go generate to generate the react frontend.
  • Run go build ./cmd/server.
  • Run the ./build binary.
  • Configure a HTTPS proxy to answer requests on your desired domain.
  • Visit the domain.
Similar Resources

this is an example of hystrix-go usage in web dev

hystrix-go-example this is an example of hystrix-go usage in web dev Explanation this example contains 2 service: alpha as our main service, circuit b

Apr 22, 2022

The included device-simple example device service demonstrates basic usage of device-sdk-go

device-simple The included device-simple example device service demonstrates basic usage of device-sdk-go. Protocol Driver To make a functional Device

Oct 9, 2021

GoPostgreSQL - An example usage of PostgreSQL with GO, very simple since the objective is that others can read and learn

GoPostgreSQL - An example usage of PostgreSQL with GO, very simple since the objective is that others can read and learn

GoPostgreSQL - An example usage of PostgreSQL with GO, very simple since the objective is that others can read and learn

Feb 10, 2022

Various tools for usage with Golang like installer, github tool and cloud features.

Gopei2 (Go Programming Environment Installer) Gopei shell install Go compiler, LiteIDE and configure for you the entire environment, variables, paths,

Dec 23, 2022

A cli that shows a GitHub-like language usage statistics bar.

A cli that shows a GitHub-like language usage statistics bar.

barley A cli that shows a GitHub-like language usage statistics bar. barley analyses the programming languages used in a directory and creates a used

Jan 8, 2022

Go-github-actions - `go-github-actions` is a package for developing GitHub Actions

go-github-actions go-github-actions is a package for developing GitHub Actions.

Feb 6, 2022

Osin-example - Example of a identity provider powered by OAuth 2.0 in Golang

go mod init github.com/bartmika/osin-example go get github.com/google/uuid go get github.com/rs/cors go get github.com/spf13/cobra go get github.com/g

Jan 5, 2022

Go.work-workspace-example - Go1.18 workspace example

Go.work-workspace-example - Go1.18 workspace example

Jan 20, 2022

This example implements a basic example of how to create your own modules, and how to call them from other modules

This example implements a basic example of how to create your own modules, and how to call them from other modules. In addition, an example of how to do unit tests is developed.

Feb 1, 2022

Pulumi-k8s-operator-example - OpenGitOps Compliant Pulumi Kubernetes Operator Example

Pulumi GitOps Example OpenGitOps Compliant Pulumi Kubernetes Operator Example Pr

May 6, 2022

Dependency-free replacement for GNU parallel, perfect fit for usage in an initramfs.

coshell v0.2.5 A no-frills dependency-free replacement for GNU parallel, perfect for initramfs usage. Licensed under GNU/GPL v2. How it works An sh -c

Dec 19, 2022

Golang source code parsing, usage like reflect package

gotype Golang source code parsing, usage like reflect package English 简体中文 Usage API Documentation Examples License Pouch is licensed under the MIT Li

Dec 9, 2022

A logger for Go SQL database driver without modify existing *sql.DB stdlib usage.

A logger for Go SQL database driver without modify existing *sql.DB stdlib usage.

SQLDB-Logger A logger for Go SQL database driver without modify existing *sql.DB stdlib usage. Colored console writer output above only for sample/dev

Jan 3, 2023

Analyzer: helps uncover bugs by reporting a diagnostic for mistakes of *sql.Rows usage.

sqlrows sqlrows is a static code analyzer which helps uncover bugs by reporting a diagnostic for mistakes of sql.Rows usage. Install You can get sqlro

Mar 24, 2022

Disk Usage/Free Utility - a better 'df' alternative

Disk Usage/Free Utility - a better 'df' alternative

duf Disk Usage/Free Utility (Linux, BSD, macOS & Windows) Features User-friendly, colorful output Adjusts to your terminal's width Sort the results ac

Jan 9, 2023

Generate image plots of processes' memory usage very quickly, within a single binary.

Generate image plots of processes' memory usage very quickly, within a single binary.

memplot A small utility written in golang to quickly plot memory usage of processes. memplot constantly samples memory usage of a process, for a given

Apr 17, 2021

Disk usage analyzer with console interface written in Go

Disk usage analyzer with console interface written in Go

Gdu is intended primarily for SSD disks where it can fully utilize parallel processing. However HDDs work as well, but the performance gain is not so huge.

Jan 7, 2023

Integrated console application library, using Go structs as commands, with menus, completions, hints, history, Vim mode, $EDITOR usage, and more ...

Integrated console application library, using Go structs as commands, with menus, completions, hints, history, Vim mode, $EDITOR usage, and more ...

Gonsole - Integrated Console Application library This package rests on a readline console library, (giving advanced completion, hint, input and histor

Nov 20, 2022

Convert SSH Ed25519 keys to age keys. This is useful for usage in sops-nix and sops

ssh-to-age Convert SSH Ed25519 keys to age keys. This is useful for usage in sops-nix and sops Usage Exports the private key: $ ssh-to-age -private-ke

Dec 21, 2022
Comments
  • Configure WhiteSource Bolt for GitHub

    Configure WhiteSource Bolt for GitHub

    Welcome to WhiteSource Bolt for GitHub! This is an onboarding PR to help you understand and configure settings before WhiteSource starts scanning your repository for security vulnerabilities.

    :vertical_traffic_light: WhiteSource Bolt for GitHub will start scanning your repository only once you merge this Pull Request. To disable WhiteSource Bolt for GitHub, simply close this Pull Request.


    What to Expect

    This PR contains a '.whitesource' configuration file which can be customized to your needs. If no changes were applied to this file, WhiteSource Bolt for GitHub will use the default configuration.

    Before merging this PR, Make sure the Issues tab is enabled. Once you merge this PR, WhiteSource Bolt for GitHub will scan your repository and create a GitHub Issue for every vulnerability detected in your repository.

    If you do not want a GitHub Issue to be created for each detected vulnerability, you can edit the '.whitesource' file and set the 'minSeverityLevel' parameter to 'NONE'.


    :question: Got questions? Check out WhiteSource Bolt for GitHub docs. If you need any further assistance then you can also request help here.

  • Configure Renovate

    Configure Renovate

    Mend Renovate

    Welcome to Renovate! This is an onboarding PR to help you understand and configure settings before regular Pull Requests begin.

    🚦 To activate Renovate, merge this Pull Request. To disable Renovate, simply close this Pull Request unmerged.


    Detected Package Files

    • go.mod (gomod)
    • package.json (npm)

    Configuration

    🔡 Renovate has detected a custom config for this PR. Feel free to ask for help if you have any doubts and would like it reviewed.

    Important: Now that this branch is edited, Renovate can't rebase it from the base branch any more. If you make changes to the base branch that could impact this onboarding PR, please merge them manually.

    What to Expect

    With your current configuration, Renovate will create 19 Pull Requests:

    fix(deps): update dependency react-scripts to v5.0.1
    • Schedule: ["at any time"]
    • Branch name: renovate/react-scripts-5.x
    • Merge into: master
    • Upgrade react-scripts to 5.0.1
    fix(deps): update module github.com/fasthttp/router to v1.4.13
    • Schedule: ["at any time"]
    • Branch name: renovate/github.com-fasthttp-router-1.x
    • Merge into: master
    • Upgrade github.com/fasthttp/router to v1.4.13
    fix(deps): update module github.com/fasthttp/session/v2 to v2.4.14
    • Schedule: ["at any time"]
    • Branch name: renovate/github.com-fasthttp-session-v2-2.x
    • Merge into: master
    • Upgrade github.com/fasthttp/session/v2 to v2.4.14
    fix(deps): update module github.com/knadh/koanf to v1.4.4
    • Schedule: ["at any time"]
    • Branch name: renovate/github.com-knadh-koanf-1.x
    • Merge into: master
    • Upgrade github.com/knadh/koanf to v1.4.4
    chore(deps): update module go to 1.19
    • Schedule: ["at any time"]
    • Branch name: renovate/go-1.x
    • Merge into: master
    • Upgrade go to 1.19
    fix(deps): update dependency axios to ^0.27.0
    • Schedule: ["at any time"]
    • Branch name: renovate/axios-0.x
    • Merge into: master
    • Upgrade axios to ^0.27.0
    fix(deps): update module github.com/go-webauthn/webauthn to v0.5.0
    fix(deps): update module github.com/mitchellh/mapstructure to v1.5.0
    fix(deps): update module github.com/valyala/fasthttp to v1.41.0
    • Schedule: ["at any time"]
    • Branch name: renovate/github.com-valyala-fasthttp-1.x
    • Merge into: master
    • Upgrade github.com/valyala/fasthttp to v1.41.0
    fix(deps): update module go.uber.org/zap to v1.23.0
    • Schedule: ["at any time"]
    • Branch name: renovate/go.uber.org-zap-1.x
    • Merge into: master
    • Upgrade go.uber.org/zap to v1.23.0
    fix(deps): update dependency @testing-library/react to v13
    • Schedule: ["at any time"]
    • Branch name: renovate/testing-library-react-13.x
    • Merge into: master
    • Upgrade @testing-library/react to ^13.0.0
    fix(deps): update dependency @testing-library/user-event to v14
    • Schedule: ["at any time"]
    • Branch name: renovate/testing-library-user-event-14.x
    • Merge into: master
    • Upgrade @testing-library/user-event to ^14.0.0
    fix(deps): update dependency @​types/jest to v29
    • Schedule: ["at any time"]
    • Branch name: renovate/major-jest-monorepo
    • Merge into: master
    • Upgrade @types/jest to ^29.0.0
    fix(deps): update dependency @​types/node to v18
    • Schedule: ["at any time"]
    • Branch name: renovate/node-18.x
    • Merge into: master
    • Upgrade @types/node to ^18.0.0
    fix(deps): update dependency @​types/react to v18
    • Schedule: ["at any time"]
    • Branch name: renovate/react-18.x
    • Merge into: master
    • Upgrade @types/react to ^18.0.0
    fix(deps): update dependency @​types/react-dom to v18
    • Schedule: ["at any time"]
    • Branch name: renovate/react-dom-18.x
    • Merge into: master
    • Upgrade @types/react-dom to ^18.0.0
    fix(deps): update dependency axios to v1
    • Schedule: ["at any time"]
    • Branch name: renovate/axios-1.x
    • Merge into: master
    • Upgrade axios to ^1.0.0
    fix(deps): update dependency web-vitals to v3
    • Schedule: ["at any time"]
    • Branch name: renovate/web-vitals-3.x
    • Merge into: master
    • Upgrade web-vitals to ^3.0.0
    fix(deps): update react monorepo to v18 (major)
    • Schedule: ["at any time"]
    • Branch name: renovate/major-react-monorepo
    • Merge into: master
    • Upgrade react to ^18.0.0
    • Upgrade react-dom to ^18.0.0

    🚸 Branch creation will be limited to maximum 2 per hour, so it doesn't swamp any CI resources or spam the project. See docs for prhourlylimit for details.


    ❓ Got questions? Check out Renovate's Docs, particularly the Getting Started section. If you need any further assistance then you can also request help here.


    This PR has been generated by Mend Renovate. View repository job log here.

Example basic fundamental testing in golang
Example basic fundamental testing in golang

Golang Fundamental Testing Example write basic fundamental testing in Golang Installation $ go mod download || go get . Implementation Case 01_testing

Jun 1, 2022
An example of using Oracle DB with Golang

Golang Oracle DB Example This is a small example of connect and use Oracle DB in Golang Container Database: Username: SYS Role: SYSDBA Password: Orado

Nov 22, 2022
Go buildinfo package Example

Go buildinfo package Example Usage Build the binary: $ go build . Get the build info for the resulting binary: $ ./buildinfo -binary buildinfo Outpu

Oct 11, 2022
:octocat: ghdag is a tiny workflow engine for GitHub issue and pull request.

ghdag ghdag is a tiny workflow engine for GitHub issue and pull request. Key features of ghdag are: Simple definition of workflows to improve the life

Nov 5, 2022
go-wrk - a HTTP benchmarking tool based in spirit on the excellent wrk tool (https://github.com/wg/wrk)

go-wrk - an HTTP benchmarking tool go-wrk is a modern HTTP benchmarking tool capable of generating significant load when run on a single multi-core CP

Jan 5, 2023
A library to aid unittesting code that uses Golang's Github SDK

go-github-mock A library to aid unittesting code that uses Golang's Github SDK Installation go get github.com/migueleliasweb/go-github-mock Features C

Dec 30, 2022
System resource usage profiler tool which regularly takes snapshots of the memory and CPU load of one or more running processes so as to dynamically build up a profile of their usage of system resources.
System resource usage profiler tool which regularly takes snapshots of the memory and CPU load of one or more running processes so as to dynamically build up a profile of their usage of system resources.

Vegeta is a system resource usage tracking tool built to regularly take snapshots of the memory and CPU load of one or more running processes, so as to dynamically build up a profile of their usage of system resources.

Jan 16, 2022
an stateless OpenID Connect authorization server that mints ID Tokens from Webauthn challenges

Webauthn-oidc Webauthn-oidc is a very minimal OIDC authorization server that only supports webauthn for authentication. This can be used to bootstrap

Nov 6, 2022
Minimal go implementation of a Webauthn L2 relying party

Webauthn-minimial Webauthn-minimal is an implementation of a Webauthn L2 Relying Party using only the go standard library. It uses the utility functon

Nov 10, 2021
A standalone reverse-proxy to enforce Webauthn authentication
A standalone reverse-proxy to enforce Webauthn authentication

A standalone reverse-proxy to enforce Webauthn authentication. It can be inserted in front of sensitive services or even chained with other proxies (e

Dec 24, 2022