mirror of
https://github.com/gravitational/teleport.git
synced 2026-10-31 20:39:37 +08:00
Add the necessary logic to perform WebAuthn logins/authentication, including both necessary steps (named "Begin" and "Finish" after the Duo Labs API/reference implementation). Note that the login logic is not yet wired to Teleport, that is to come in a future PR. Part of the WebAuthn Support[1] work. [1] https://github.com/gravitational/teleport/pull/7808 * Vendor duo-labs/webauthn and fxamacker/cbor/v2 * Implement the first step of login * Implement the second step of login * Add WebAuthn support for mock U2F devices * Add tests for the complete login flow * Be explicit about the default attestation value * Refactor "appid" into a constant * Add missing license headers
22 lines
742 B
Go
22 lines
742 B
Go
/*
|
|
Copyright 2021 Gravitational, Inc.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
*/
|
|
|
|
// Package webauthn implements server-side support for the Web Authentication
|
|
// specification.
|
|
//
|
|
// Refer to https://www.w3.org/TR/webauthn-2/ for details.
|
|
package webauthn
|