{"record":{"id":"2f4ea52f16ff14e7","repo":"gravitational/teleport","slug":"fido2-unavailable-in-current-build","errorCode":null,"errorMessage":"FIDO2 unavailable in current build","messagePattern":"FIDO2 unavailable in current build","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"lib/auth/webauthncli/fido2_other.go","lineNumber":31,"sourceCode":" * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage webauthncli\n\nimport (\n\t\"context\"\n\t\"errors\"\n\n\t\"github.com/gravitational/teleport/api/client/proto\"\n\twantypes \"github.com/gravitational/teleport/lib/auth/webauthntypes\"\n)\n\nvar errFIDO2Unavailable = errors.New(\"FIDO2 unavailable in current build\")\n\n// isLibfido2Enabled returns true if libfido2 is available in the current build.\nfunc isLibfido2Enabled() bool {\n\treturn false\n}\n\nfunc fido2Login(\n\tctx context.Context,\n\torigin string, assertion *wantypes.CredentialAssertion, prompt LoginPrompt, opts *LoginOpts,\n) (*proto.MFAAuthenticateResponse, string, error) {\n\treturn nil, \"\", errFIDO2Unavailable\n}\n\nfunc fido2Register(\n\tctx context.Context,\n\torigin string, cc *wantypes.CredentialCreation, prompt RegisterPrompt,\n) (*proto.MFARegisterResponse, error) {\n\treturn nil, errFIDO2Unavailable","sourceCodeStart":13,"sourceCodeEnd":49,"githubUrl":"https://github.com/gravitational/teleport/blob/1283425b60ec5f60d509ba4c791183d452923ff7/lib/auth/webauthncli/fido2_other.go#L13-L49","documentation":"Build-time sentinel used in the non-libfido2 build of webauthncli (fido2_other.go): fido2Login and fido2Register are stubs that immediately return it, indicating the binary was compiled without FIDO2/security-key support.","triggerScenarios":"Thrown at lib/auth/webauthncli/fido2_other.go:31 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a Teleport build compiled with libfido2 support (libfido2-enabled packages)","Use a different authenticator type, e.g. WebAuthn with a browser/platform authenticator, or OTP"],"exampleFix":null,"handlingStrategy":"type-guard","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"1283425b60ec5f60d509ba4c791183d452923ff7","analyzedAt":"2026-09-02T04:06:41.601Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}