This shows you the differences between two versions of the page.
dev:api:login [2014/05/27 18:09] vikki |
dev:api:login [2015/01/16 15:24] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== AOS Login API Commands - RFC ===== | ||
- | Developer > [[dev: | ||
- | Date: 21 Sep. 2000\\ | ||
- | Available: 21 Oct. 2000\\ | ||
- | Status: Draft\\ | ||
- | Compliant to AOS API Version: AOS 2.0b1\\ | ||
- | Revision: 1 (4 Jan. 2001)\\ | ||
- | Web: http:// | ||
- | By fui@afteroffice.com\\ | ||
- | |||
- | -------------------------------------------------------------------------- | ||
- | |||
- | **Description**\\ | ||
- | Information on implementing different login method - from browsers and DA. | ||
- | |||
- | **Command: | ||
- | Use: Login as valid VO user.\\ | ||
- | Access: HTTP\\ | ||
- | Method: POST and GET\\ | ||
- | Parameters case sensitive: NO, except for password\\ | ||
- | |||
- | **Standard Method:**\\ | ||
- | http:// | ||
- | |||
- | Note: The above standard method URL login mainly use on browser. | ||
- | |||
- | **Parameter: | ||
- | host = [optional] the user host - usually the second part of the email (firstPart@secondPart.com). If this parameter voided, the " | ||
- | name = the user login name - usually the first part of the email (firstPart@host.com)\\ | ||
- | pswd = the user password\\ | ||
- | api = [optional] if " | ||
- | lang = [optional] the language interface\\ | ||
- | timezone = [optional] the time zone.\\ | ||
- | |||
- | **Encrytion Method:** | ||
- | Alternative "eyes encryption" | ||
- | http:// | ||
- | |||
- | **Parameter: | ||
- | api = [optional] if " | ||
- | lang = [optional] the language interface.\\ | ||
- | timezone = [optional] the time zone.\\ | ||
- | specialID = is a code embedded with user host, name and password. Format: | ||
- | userName|userHost|password | ||
- | Encode in base64.\\ | ||
- | |||
- | **Example: | ||
- | User email: liangtyan@lookafter.com, | ||
- | The original ID will be:\\ | ||
- | liangtyan|lookafter.com|abc\\ | ||
- | After base64 encoded:\\ | ||
- | bGlhbmd0eWFufGxvb2thZnRlci5jb218YWJj\\ | ||
- | |||
- | **The final URL**\\ | ||
- | http:// | ||
- | |||
- | **MetaTalk Sample:**\\ | ||
- | put username &" | ||
- | put base64Encode(theID) into theID |