NYPL-Simplified / server_core

Shared data model and utilities for Library Simplified server applications
7 stars 11 forks source link

OE-162 / OE-317 fix authentications in authentication_document #1277

Closed keithbauer closed 2 years ago

keithbauer commented 2 years ago

This fixes the authentication list in the authentication_document to ensure it is a list of dictionaries rather than a mixed list that contained lists and dictionaries.

Since BasicAuthenticationProvider is currently returning a list of authentication flow documents (one for Basic Auth and one for OAuth) AuthenticationForOPDSDocument.to_dict() will need to account for it and flatten the list it creates for authentication.