Skip to content

Commit

Permalink
feat-allow-multiple-origins
Browse files Browse the repository at this point in the history
* update Readme
  • Loading branch information
obroshnij committed Sep 9, 2024
1 parent 37a0409 commit 04774a3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,13 @@ WebAuthn.configure do |config|
# the User Agent during registration and authentication ceremonies.
config.origin = "https://auth.example.com"

# For the case when a relying party has multiple origins (e.g. different subdomains, native client sending android:apk-key-hash:... like origins in clientDataJson, etc...), you can set the allowed origins instead of the single origin above
# config.allowed_origins = [
# "https://auth.example.com",
# "android:apk-key-hash:blablablablablalblalla"
# ]
# Note: in this case setting config.rp_id is mandatory

# Relying Party name for display purposes
config.rp_name = "Example Inc."

Expand Down

0 comments on commit 04774a3

Please sign in to comment.