Authenticate Ruby On Rails API with Generic OAuth2 Provider