|
|
Line 7: |
Line 7: |
| <!-- secure login reseller authentication --> | | <!-- secure login reseller authentication --> |
| | | |
− | [[NATS4]] contains a feature that allows [[Ct#Affiliate|affiliates]] to log in to other applications using their NATS usernames and passwords. This Remote Affiliate Authentication script will allow affiliates to log in to includes other Too Much Media products, such as [[CARMA]], [[RSSdish]], and [[TubeStudio]]. | + | [[NATS4]] contains a feature that allows [[Ct#Affiliate|affiliates]] to log in to other applications, such as affiliate-only content areas, using their NATS usernames and passwords. This Remote Affiliate Authentication script will allow you (the client) to verify that an affiliate's credentials exist in your [[NATS]] database, and allow the affiliate to log into your external application. |
| | | |
| Although we have encrypted reseller passwords in the [[NATS]] database in order to protect NATS and your data, we have written a script that will be able to receive the username and password of an affiliate. With this, you will be able to check if that affiliate's information is correct. | | Although we have encrypted reseller passwords in the [[NATS]] database in order to protect NATS and your data, we have written a script that will be able to receive the username and password of an affiliate. With this, you will be able to check if that affiliate's information is correct. |
| + | |
| + | For example, you can set up a password-restricted directory in an external affiliates-only content area that you have created. When an affiliate tries to login to your external area, you can send a post to your Remote Affiliate Authentication script to verify if that affiliate's credentials exist in your [[NATS]] database. |
| | | |
| Before you implement this script, you must first set up the array of allowed IPs in your nats/includes/config.php file like the following example: | | Before you implement this script, you must first set up the array of allowed IPs in your nats/includes/config.php file like the following example: |
Line 17: |
Line 19: |
| </pre> | | </pre> |
| | | |
− | Remember to replace the numeric values inside the parenthesis with your desired affiliates' IP addresses, as well as the IP address of the server authenticating against NATS.
| + | Make sure that you replace the numeric values inside the parentheses with the IP address of the server authenticating against NATS. You can also add your (client) IP address if you want to test your Remote Affiliate Authentication script manually by going to your external URL. |
| | | |
| == The Script == | | == The Script == |