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

Advertise the appropriate input mechanisms for credentials #10

Open
leonardr opened this issue Oct 26, 2018 · 1 comment
Open

Advertise the appropriate input mechanisms for credentials #10

leonardr opened this issue Oct 26, 2018 · 1 comment

Comments

@leonardr
Copy link
Contributor

This is one of a series of proposals for taking NYPL's extensions to Authentication For OPDS and adding them to the core document.

https://github.com/NYPL-Simplified/Simplified/wiki/Authentication-For-OPDS-Extensions#input-mechanisms


An OPDS server may use the inputs extension to customize the input mechanisms used to gather the patron's credentials.


Of all the proposals this is IMO the most useful one to add to the core spec.

@HadrienGardeur
Copy link
Member

I agree that this would be a useful addition to the spec as well.

For the length of each field, I think that instead of just having a max value we might want to support the following:

  • min
  • max
  • exact

We'll of course need rules when these values contradict one another, but not having min or a specific value feels like a missed opportunity.

For the keyboard, what you've defined is a good starting point, but I'd rather have lowercase tokens without spaces:

  • email
  • number
  • none

This would further align our input types with HTML. Do we really need default when having a null value is enough?

The barcode format feels a little under specified currently with a single value. This might be more suited as an extension.

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

No branches or pull requests

2 participants