{"record":{"id":"7e738c87b8dcd36e","repo":"gravitational/teleport","slug":"windows-webauthn-unavailable-in-current-build","errorCode":null,"errorMessage":"windows webauthn unavailable in current build","messagePattern":"windows webauthn unavailable in current build","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"lib/auth/webauthnwin/webauthn_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 webauthnwin\n\nimport (\n\t\"errors\"\n\n\twantypes \"github.com/gravitational/teleport/lib/auth/webauthntypes\"\n)\n\nvar native nativeWebauthn = noopNative{}\n\nvar errUnavailable = errors.New(\"windows webauthn unavailable in current build\")\n\ntype noopNative struct{}\n\nfunc (n noopNative) CheckSupport() CheckSupportResult {\n\treturn CheckSupportResult{\n\t\tHasCompileSupport: false,\n\t}\n}\n\nfunc (n noopNative) GetAssertion(origin string, in *getAssertionRequest) (*wantypes.CredentialAssertionResponse, error) {\n\treturn nil, errUnavailable\n}\n\nfunc (n noopNative) MakeCredential(origin string, in *makeCredentialRequest) (*wantypes.CredentialCreationResponse, error) {\n\treturn nil, errUnavailable\n}\n","sourceCodeStart":13,"sourceCodeEnd":48,"githubUrl":"https://github.com/gravitational/teleport/blob/1283425b60ec5f60d509ba4c791183d452923ff7/lib/auth/webauthnwin/webauthn_other.go#L13-L48","documentation":"Build-time sentinel in webauthnwin for non-Windows targets: the native Windows WebAuthn API bindings are replaced by noopNative, so GetAssertion and MakeCredential always return it, signaling the binary lacks Windows WebAuthn support.","triggerScenarios":"Thrown at lib/auth/webauthnwin/webauthn_other.go:31 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Run on Windows where the native webauthn.dll bindings are compiled in","Use tsh on a platform with a supported WebAuthn implementation, or another MFA method such as 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"}