Parse and write auth - prep for #159
Prototyp for auth - references #159