added support for oauth state attibute