Removed filedatastore usage and replaced it with mongodatastore
Added scope as a part of user claims in usercredential