Remove oauth2 references when not used
bug fix #306