Skip to content
This repository was archived by the owner on Jun 11, 2025. It is now read-only.

Commit 37286b6

Browse files
committed
update Readme and Changelog
1 parent e40ebcf commit 37286b6

File tree

2 files changed

+37
-9
lines changed

2 files changed

+37
-9
lines changed

CHANGELOG.md

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ Separation between constructor and login phase, decoupling login from constructo
4040
Before:
4141

4242
```javascript
43-
this.alfrescoJsApi = new AlfrescoApi({username, password, alfrescoHost, contextRoot, ticket});
43+
this.alfrescoJsApi = new AlfrescoApi({username, password, host, contextRoot, ticket});
4444
this.alfrescoJsApi.login();
4545
```
4646

4747
After:
4848

4949
```javascript
50-
this.alfrescoJsApi = new AlfrescoApi({hostECM, hostBPM, contextRoot, ticket});
50+
this.alfrescoJsApi = new AlfrescoApi({hostECM, hostBPM, contextRoot, ticketEcm, ticketBpm});
5151
this.alfrescoJsApi.login(username, password);
5252
```
5353

@@ -78,6 +78,27 @@ After:
7878
var bpmTicket = this.alfrescoJsApi.getTicketBpm();
7979
```
8080

81+
- Login ticket using constructor
82+
83+
Before:
84+
85+
```javascript
86+
this.alfrescoJsApi = new AlfrescoApi({ host :''http://127.0.0.1:8080', ticket :'TICKET_4479f4d3bb155195879bfbb8d5206f433488a1b1'});
87+
```
88+
89+
After:
90+
91+
```javascript
92+
93+
//Login ticket ECM
94+
this.alfrescoJsApi = new AlfrescoApi({ ticketEcm:'TICKET_4479f4d3bb155195879bfbb8d5206f433488a1b1', hostEcm:'http://127.0.0.1:8080'});
95+
96+
//Login ticket BPM
97+
this.alfrescoJsApi = new AlfrescoApi({ ticketBpm: 'Basic YWRtaW46YWRtaW4=', hostBpm:'http://127.0.0.1:9999'});
98+
99+
//Login ticket ECM and BPM
100+
this.alfrescoJsApi = new AlfrescoApi({ ticketEcm:'TICKET_4479f4d3bb155195879bfbb8d5206f433488a1b1', ticketBpm: 'Basic YWRtaW46YWRtaW4=', hostEcm:'http://127.0.0.1:8080', hostBpm:'http://127.0.0.1:9999'});
101+
```
81102
82103
<a name="0.2.2"></a>
83104
# [0.2.2](https://github.com/Alfresco/alfresco-js-api/releases/tag/0.2.2) (2016-07-21)

README.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ This project provides a JavaScript client API into the Alfresco REST API and Act
3737
* [Login](#login)
3838
+ [Login with Username and Password BPM and ECM](#login-with-username-and-password-bpm-and-ecm)
3939
+ [Login with Username and Password ECM](#login-with-username-and-password-ecm)
40-
+ [Login with ticket ECM](#login-with-ticket-ecm)
4140
+ [Login with ticket](#login-with-ticket)
42-
+ [Ticket as parameter in the constructor](#ticket-as-parameter-in-the-constructor)
41+
- [Login with ticket ECM](#login-with-ticket-ecm)
42+
- [Login with ticket ECM/BPM as parameter in the constructor](#login-with-ticket-ecmbpm-as-parameter-in-the-constructor)
4343
+ [Login with Username and Password BPM](#login-with-username-and-password-bpm)
4444
* [Logout](#logout)
4545
* [isLoggedIn](#isloggedin)
@@ -152,12 +152,12 @@ this.alfrescoJsApi.login('admin', 'admin').then(function (data) {
152152

153153
```
154154

155-
### Login with ticket ECM
155+
### Login with ticket
156156

157157
If you already know thw ticket when you invoke the constructor you can pass it as parameter in the constructor otherwise you can call the login with ticket that will validate the ticket against the server
158158

159159

160-
### Login with ticket
160+
#### Login with ticket ECM
161161

162162
This authentication validate also the ticket against the server
163163

@@ -172,14 +172,21 @@ this.alfrescoJsApi.loginTicket(ticket).then(function (data) {
172172
});
173173
```
174174

175-
### Ticket as parameter in the constructor
175+
#### Login with ticket ECM/BPM as parameter in the constructor
176176

177177
With this authentication the ticket is not validated against the server
178178

179-
####Example
179+
#####Example
180180
```javascript
181-
this.alfrescoJsApi = new AlfrescoApi({ ticket:'TICKET_4479f4d3bb155195879bfbb8d5206f433488a1b1', hostEcm:'http://127.0.0.1:8080'});
182181

182+
//Login ticket ECM
183+
this.alfrescoJsApi = new AlfrescoApi({ ticketEcm:'TICKET_4479f4d3bb155195879bfbb8d5206f433488a1b1', hostEcm:'http://127.0.0.1:8080'});
184+
185+
//Login ticket BPM
186+
this.alfrescoJsApi = new AlfrescoApi({ ticketBpm: 'Basic YWRtaW46YWRtaW4=', hostBpm:'http://127.0.0.1:9999'});
187+
188+
//Login ticket ECM and BPM
189+
this.alfrescoJsApi = new AlfrescoApi({ ticketEcm:'TICKET_4479f4d3bb155195879bfbb8d5206f433488a1b1', ticketBpm: 'Basic YWRtaW46YWRtaW4=', hostEcm:'http://127.0.0.1:8080', hostBpm:'http://127.0.0.1:9999'});
183190
```
184191

185192
### Login with Username and Password BPM

0 commit comments

Comments
 (0)