[TIMOB-13656] CLI needs to support the ability to specify different login endpoints
| GitHub Issue | n/a |
|---|---|
| Type | Story |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2013-08-28T00:35:06.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | 2013 Sprint 18 Core, 2013 Sprint 18, Release 3.2.0 |
| Components | CLI |
| Labels | n/a |
| Reporter | Nam Le |
| Assignee | Chris Barber |
| Created | 2013-04-23T20:48:29.000+0000 |
| Updated | 2017-03-14T18:18:55.000+0000 |
Description
Different environments will have different login endpints: test, dev, pre-prod, enterprise, vpc. To accommodate these different environments, the cli will have to make the login endpoint configurable - currently it is hard-coded to api.appcelerator.net. This can be configured via the config file or via a parameter
This is preventing Studio from working properly against the enterprise cluster, ie unable to login means users can't create projects. As a work-around, users would have to have the same username/password on all api.appcelerator.net type servers
This ticket needs to be scheduled at the latest sprint 10
[~ingo][~cbarber] As previously discussed, this should be done for 3.1.1. Updated the fix version
[~nle] Is this still a priority for 3.1.1? Aren't we past code freeze for 3.1.1? /cc [~ingo]
[~cbarber] It is not a priority for 3.1.1
Fixed by https://github.com/appcelerator/titanium/commit/14dff9f9895167cf84be7715a88996b6ae604e87! The two Titanium CLI config options you need to set are: * cli.auth.loginUrl * cli.auth.logoutUrl You can set these via:
You can pass these in at the command line by running:ti --config "{cli:{auth:{loginUrl:'http://www.google.com',logoutUrl:'http://www.yahoo.com'}}}" loginClosing ticket as fixed.