Made oauth2 type field optional
Merge pull request #11 from simov/oauth2-type

Made oauth2 type field optional