Feature/oauth2 provider testing

@scotdalton There is still a long way to go before this is merge ready, but I thought I'd put it on your radar.
May not need this and the line below.