Skip to content

Commit 04774a3

Browse files
author
Vitalii Tereshchenko
committed
feat-allow-multiple-origins
* update Readme
1 parent 37a0409 commit 04774a3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,13 @@ WebAuthn.configure do |config|
106106
# the User Agent during registration and authentication ceremonies.
107107
config.origin = "https://auth.example.com"
108108

109+
# 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
110+
# config.allowed_origins = [
111+
# "https://auth.example.com",
112+
# "android:apk-key-hash:blablablablablalblalla"
113+
# ]
114+
# Note: in this case setting config.rp_id is mandatory
115+
109116
# Relying Party name for display purposes
110117
config.rp_name = "Example Inc."
111118

0 commit comments

Comments
 (0)