Skip to content

Conversation

@zunda-pixel
Copy link
Contributor

@zunda-pixel zunda-pixel commented Sep 15, 2025

I want to use secure challenge value.

let webAuthn = WebAuthnManager(
  configuration: .init(
    relyingPartyID: "RELYING_PARTY_ID",
    relyingPartyName: "RELYING_PARTY_NAME",
    relyingPartyOrigin: "RELYING_PARTY_ORIGIN"
  ),
  challengeGenerator: .init {
    SymmetricKey(size: .bits256).withUnsafeBytes { Array($0) } // 32 bytes
  }
)

@zunda-pixel zunda-pixel changed the title Custom ChallengeGenerator Support Custom ChallengeGenerator Sep 16, 2025
@zunda-pixel
Copy link
Contributor Author

zunda-pixel commented Sep 16, 2025

duplicate #90

Another solution

@zunda-pixel zunda-pixel force-pushed the custom-ChallengeGenerator branch from 4c15460 to 0ce0ae0 Compare October 13, 2025 20:45
@zunda-pixel
Copy link
Contributor Author

#72

@dimitribouniol
Copy link
Collaborator

FYI, we just now opened up the ability to change the challenge on authorization and registration requests, giving you an override point should you need it: 8e1cb43

If this doesn't work for your use case, please let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants