mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
* * Created IdentityUserService * Created IdentityUserModel * Added JWT lib into package.json * * Provided a way to show SSO user info * * Added condition to check sso login * * Refactored userInfo component* Updated unit tests to the recent changes * * Created IdenityUser model * Refactored userInfoComponent * * Modified userInfoComponent * Modified unit tests * * Used Fullname pipe* Removed the logic that we had to display fullname in the ecm/bpm/identity model* Created JwtHelperService* Modified ecm/bpm services * added test cases to the identity service * * Moved jwt service to core/service * * Updated userInfo doc * * Added missing return types * * Created a mockToken* Added unit tests to the JwtHelperService* Updated identityUserService unit test * Update jwt-helper.service.spec.ts * * Updated bpm/ecm/identity services
83 lines
2.4 KiB
TypeScript
83 lines
2.4 KiB
TypeScript
/*!
|
|
* @license
|
|
* Copyright 2016 Alfresco Software, Ltd.
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
export let fakeBpmUserNoImage = {
|
|
apps: [],
|
|
capabilities: 'fake-capability',
|
|
company: 'fake-company',
|
|
created: 'fake-create-date',
|
|
email: 'fakeBpm@fake.com',
|
|
externalId: 'fake-external-id',
|
|
firstName: 'fake-first-name',
|
|
lastName: 'fake-last-name',
|
|
groups: [],
|
|
id: 'fake-id',
|
|
lastUpdate: 'fake-update-date',
|
|
latestSyncTimeStamp: 'fake-timestamp',
|
|
password: 'fake-password',
|
|
pictureId: undefined,
|
|
status: 'fake-status',
|
|
tenantId: 'fake-tenant-id',
|
|
tenantName: 'fake-tenant-name',
|
|
tenantPictureId: 'fake-tenant-picture-id',
|
|
type: 'fake-type'
|
|
};
|
|
|
|
export let fakeBpmUser = {
|
|
apps: [],
|
|
capabilities: null,
|
|
company: 'fake-company',
|
|
created: 'fake-create-date',
|
|
email: 'fakeBpm@fake.com',
|
|
externalId: 'fake-external-id',
|
|
firstName: 'fake-bpm-first-name',
|
|
lastName: 'fake-bpm-last-name',
|
|
groups: [],
|
|
id: 'fake-id',
|
|
lastUpdate: 'fake-update-date',
|
|
latestSyncTimeStamp: 'fake-timestamp',
|
|
password: 'fake-password',
|
|
pictureId: 12,
|
|
status: 'fake-status',
|
|
tenantId: 'fake-tenant-id',
|
|
tenantName: 'fake-tenant-name',
|
|
tenantPictureId: 'fake-tenant-picture-id',
|
|
type: 'fake-type'
|
|
};
|
|
|
|
export let fakeBpmEditedUser = {
|
|
apps: [],
|
|
capabilities: 'fake-capability',
|
|
company: 'fake-company',
|
|
created: 'fake-create-date',
|
|
email: 'fakeBpm@fake.com',
|
|
externalId: 'fake-external-id',
|
|
firstName: 'fake-first-name',
|
|
lastName: 'fake-last-name',
|
|
groups: [],
|
|
id: 'fake-id',
|
|
lastUpdate: 'fake-update-date',
|
|
latestSyncTimeStamp: 'fake-timestamp',
|
|
password: 'fake-password',
|
|
pictureId: 'src/assets/images/bpmImg.gif',
|
|
status: 'fake-status',
|
|
tenantId: 'fake-tenant-id',
|
|
tenantName: 'fake-tenant-name',
|
|
tenantPictureId: 'fake-tenant-picture-id',
|
|
type: 'fake-type'
|
|
};
|