How to set Authentication for my firefox add-on?

Hi,
I created a plugin and it works fine.
I want to add to that authentication system (Username/Password or activation code or license or etc…)

How do it?
Is there an example?

Hi @AGhil! I wasn’t quite sure what you were looking for but I wanted to point you to two places:

  • If you are trying to connect your extension to an OAuth2 service, you’ll want to look at documentation for the identity API.

  • If you want to charge money for features, you might want to look at this article on extension monetization on Firefox Extension Workshop. The “Implementing a payment and licensing system” has some tips for setting up a licensing system.

1 Like

Thanks for answer dear @caitmuenster
yes, i want setting up a licensing system. licenses stored in my server and validating in add-on.
or
users can login with username/password (stored in a mysql database in server)

It does not matter how you do it
It is important to do that

If there is a sample, I can be inspired by it and develop it for myself