Logging into a website using Envato account and purchase code

Hello everybody

I am looking for a Wordpress plugin. This is the features I need:

1.) User should be able to log into the website using their Envato account.
2.) The plugin should check whether the user has purchased our item (valid purchase code)
3.) If successful, they should be assigned a new role on Wordpress (maybe something like ‘customer’)
4.) With this new user role they should be able to access restricted pages with tutorials and other locked content on our website, related to the item they purchased.

Anything like that available on the market?