simplesamlphp / simplesamlphp-module-webauthn

A module implementing FIDO2 / WebAuthn as a second authentication factor
GNU Lesser General Public License v2.1
15 stars 8 forks source link

Convert credential resource if necessary (postgres uses bytea) #62

Closed billybillyjim closed 6 months ago

billybillyjim commented 6 months ago

When using postgres the credential is stored as a bytea, which doesn't serialize nicely without calling stream_get_contents() first. This checks for if it is a resource and calls stream_get_contents() before returning in the getTokenData function.