Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to change the size of the credential handler window? #89

Open
gjgd opened this issue Apr 28, 2021 · 7 comments
Open

Is it possible to change the size of the credential handler window? #89

gjgd opened this issue Apr 28, 2021 · 7 comments

Comments

@gjgd
Copy link

gjgd commented Apr 28, 2021

Its width seems to be set at 600px, is there a way to make it bigger?

@dlongley
Copy link
Contributor

@gjgd, this is being explored. It is very likely that we will make it full screen with an animation in the next release.

@gjgd
Copy link
Author

gjgd commented Apr 29, 2021

Sweet! Any idea of when the next release will be, and is there any workarounds in the meantime?

@dlongley
Copy link
Contributor

@gjgd, no workarounds for right now -- but we are considering adding an advanced/developer option on the mediator site (authn.io) to configure different window sizes (would be per user) for usability testing. If I can find some spare cycles I may look into implementing a larger size this weekend -- which means the earliest release would be next week sometime. But it could get pushed another week or so.

@gjgd
Copy link
Author

gjgd commented Apr 29, 2021

Sounds good, let me know if I can help

@gjgd
Copy link
Author

gjgd commented May 4, 2021

Just noticed that now, the chapi window is full screen by default. That's an improvement, but is there a way to control the size of the modal by passing a size parameter when first loading the polyfill for example?

@dlongley dlongley transferred this issue from credential-handler/credential-handler-polyfill May 4, 2021
@dlongley
Copy link
Contributor

dlongley commented May 4, 2021

@gjgd,

That's an improvement, but is there a way to control the size of the modal by passing a size parameter when first loading the polyfill for example?

There's no way to control it just yet and the mechanism for control would not be via the handler polyfill.

As of right now, we expect that it may be harmful to users for credential handler window sizes to be different across websites. We also don't expect browsers to grant handlers the ability to control the size of the window at this time -- and the polyfill tries to approximate what browser vendors would do. Browser vendors prefer to give their users a consistent experience across sites when it comes to browser chrome/browser mediated flows. This is based on what we heard in the Web Payments WG. Of course, credential handlers may render whatever they like inside of the handler window.

However, as mentioned above, we may add the ability to configure the size of the window via a cookie on the mediator website (authn.io) -- to enable usability testing that would create a consistent UI for each user, but different users could potentially experience different sizes. For now, we've gone full screen for all users because it is not at all clear what a better smaller size would be without usability testing.

@dlongley dlongley changed the title Is it possible to change the size of the credential mediator window? Is it possible to change the size of the credential handler window? May 4, 2021
@dlongley
Copy link
Contributor

dlongley commented Jun 5, 2022

Instead of having the RP decide the credential handler window size (for reasons mentioned above), we may allow credential handler providers to express a preferred size in their manifest.json credential_handler section. This preference would only come into play when CHAPI is used desktop (on mobile full screen would always be used).

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

No branches or pull requests

2 participants