BoxLang 🚀 A New JVM Dynamic Language Learn More...

cbsecurity-passkeys

v1.0.7 Modules

CBSecurity Passkeys

Requirements

  • ColdBox 6+
  • cbSecurity 3+

Installation

  1. Install CBSecurity Passkeys box install cbsecurity-passkeys

  2. Add Java libs from cbsecurity-passkeys

this.javaSettings = {
    loadPaths : [ "./modules/cbsecurity-passkeys/lib" ],
    loadColdFusionClassPath : true,
    reloadOnChange : true
};
  1. Implement the ICredentialRepository interface. (See an example in /resources/examples/quick/Passkey.cfc)

  2. Configure your credentialRepositoryMapping in config/ColdBox.cfc

moduleSettings = {
    "cbsecurity-passkeys": {
        "credentialRepositoryMapping": "Passkey"
    }
}
  1. Configure at least one (1) allowedOrigins
moduleSettings = {
    "cbsecurity-passkeys": {
        "credentialRepositoryMapping": "Passkey",
        "allowedOrigins": [ "example.com" ]
    }
}

Integrate using the includes/passkeys.js library:

<script src="/modules/cbsecurity-passkeys/includes/passkeys.js"></script>
<script type="module">
    if ( await window.cbSecurity.passkeys.isSupported() ) {
        await window.cbSecurity.passkeys.register(
            // redirectLocation ("/")
        );
    }
</script>
<script type="module">
    if ( await window.cbSecurity.passkeys.isSupported() ) {
        await window.cbSecurity.passkeys.login(
            // username (optional)
            // redirectLocation ("/")
            // additionalParams ({})
        )
    }
</script>
<script>
    window.cbSecurity.passkeys.autocomplete(
        // redirectLocation ("/")
        // additionalParams ({})
    );
</script>

v1.0.7

23 Apr 2025 — 17:38: 32 UTC

other

  • *: fix: Fix error handling in Registration (54953fa)

v1.0.6

23 Apr 2025 — 16:28: 51 UTC

other

  • *: fix: Fix serializing Java objects from yubico's webauthn library (8873aeb)

v1.0.5

17 Apr 2025 — 18:20: 29 UTC

other

  • *: feat: Add autocomplete method for seamless login (b2d094d)

v1.0.4

17 Apr 2025 — 17:45: 31 UTC

other

  • *: fix: Return the correct Java types when registering passkeys (81ebe77)

v1.0.1

15 May 2024 — 22:46: 56 UTC

other

$ box install cbsecurity-passkeys

No collaborators yet.
     
  • {{ getFullDate("2024-05-15T20:20:14Z") }}
  • {{ getFullDate("2025-04-23T17:39:08Z") }}
  • 573
  • 76