As I open the site up for developers to write external apps for, I'm
thinking I want to log both the developer's api key, as well as make
them register each 'app' they create.
1. Developer creates traditional user account on website
2. Developer applies for API Key
3. Upon approval, we associate user account to API KEY
4. Developer registers his/her first app and gets an 'appID'.
Developer has both API Key and app ID.
5. When making requests via API, they need to include both API Key and appID.
6. AppID and API Key is basically userID and password for the
application to access our site.
This way, I could set permissions/security levels for the apps. For
instance, I could allow someone to develop an APP that's read only.
Their registered app would have an AppID, and we could programatically
limit them to functions that only get data, but they can't post
anything. Any functions that write data would have a simple security
check that queries the permissions of the app making the request.
Does this seem logical?
Example: Password Hint Request
http://company.com/config/cfc/users.cfc?method=getPassHint&email=jason@cnn.com
If you hit that in a browser, you can see it returns in JSON format.
What I'm wanting to do is make it so these requests won't work unless
it's an authorized request. So the URL should look like this
http://company.com/config/cfc/users...son@cnn.com&appID=456&apiKey=XDJKJ39IDL923408
*This will all go over https once I get around to it.
thinking I want to log both the developer's api key, as well as make
them register each 'app' they create.
1. Developer creates traditional user account on website
2. Developer applies for API Key
3. Upon approval, we associate user account to API KEY
4. Developer registers his/her first app and gets an 'appID'.
Developer has both API Key and app ID.
5. When making requests via API, they need to include both API Key and appID.
6. AppID and API Key is basically userID and password for the
application to access our site.
This way, I could set permissions/security levels for the apps. For
instance, I could allow someone to develop an APP that's read only.
Their registered app would have an AppID, and we could programatically
limit them to functions that only get data, but they can't post
anything. Any functions that write data would have a simple security
check that queries the permissions of the app making the request.
Does this seem logical?
Example: Password Hint Request
http://company.com/config/cfc/users.cfc?method=getPassHint&email=jason@cnn.com
If you hit that in a browser, you can see it returns in JSON format.
What I'm wanting to do is make it so these requests won't work unless
it's an authorized request. So the URL should look like this
http://company.com/config/cfc/users...son@cnn.com&appID=456&apiKey=XDJKJ39IDL923408
*This will all go over https once I get around to it.
