Fix oauth registration with new format client