Fix client_type checking bug in oauth provider

* Fixed a bug in both authentication methods where checking client_type was being done improperly, thus defaulting to 'confidential' even if 'client_type' was set to 'public'. There is no mention of the 'confidential' attribute in clientgetter(), I believe you meant to check 'client_type' instead.
* Added swp extension to .gitignore