gets sso cookie, writes to json file