Custom handler for expectedOrigin and expectedRPID
See original GitHub issueHello,
As a followup of #90, when using a browser extension, having multiple origin/rpID possible was really cool but we got into facing another issue which is that some browsers like Firefox are using random IDs for their extensions that means it’s impossible to maintain a hard-coded list of origins/rpID.
For instance here is the way to validate a FF origin:
const originIsMozillaExtension = origin.match(
/^moz-extension:\/\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/
);
I know it’s yet another addition but would you allow to have a custom function handler to validate origins and rpIDs? Let me know if you have a better solution but I guess anyone using SWA with browser extension will face this issue.
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (5 by maintainers)
Top Results From Across the Web
Testing Lambda container images locally - AWS Documentation
Test the container image for your AWS Lambda function locally using the runtime interface emulator.
Read more >fastify/fastify-static: Plugin for serving static file as fast ... - GitHub
A function to set custom headers on the response. Alterations to the headers must be done synchronously. The function is called as fn(res,...
Read more >Sending handled errors to New Relic
To send error data that you are handling in your own code to New Relic, use the Ruby agent API NewRelic::Agent.notice_error call within...
Read more >Using plugins - Chrome Developers
Methods for custom plugins ... For example, if you wanted to know how long the handler took to generate a response, ... No...
Read more >Troubleshoot form issues in model-driven apps - Microsoft Learn
Disables the form handler by specifying the event name, for example, ... Columns or controls don't have the values you expect.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The debugger is a rich idea you had 👍 hopes we make webauthn a great standard everywhere 😄
So here is a reply from Google team: