wordpress, autorise auth with key

I would like to create a website online course. The difficulty is, to access the course you have to connect with an account and a key that I generate myself before. For some days I'm looking for a plugin that does it but I can not find. If you have already been confronted with this problem or some advice .