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

Commit ff8c8e3

Browse files
author
vikasrohit
authored
Merge pull request #824 from appirio-tech/feature/sso-accounts-app-integration
Feature/sso accounts app integration
2 parents 1ec6a45 + 504d264 commit ff8c8e3

File tree

7 files changed

+23
-488
lines changed

7 files changed

+23
-488
lines changed

app/account/account.routes.js

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import angular from 'angular'
55

66
angular.module('tc.account').config(routes)
77

8-
routes.$inject = ['$stateProvider']
8+
routes.$inject = ['$stateProvider', 'CONSTANTS']
99

10-
function routes($stateProvider) {
10+
function routes($stateProvider, CONSTANTS) {
1111
var states = {
1212
'auth': {
1313
parent: 'root',
@@ -16,6 +16,27 @@ import angular from 'angular'
1616
authRequired: false
1717
}
1818
},
19+
'login': {
20+
url: '/login?next&code&state&status&userJWTToken&utm_source&utm_medium&utm_campaign',
21+
views: {
22+
'header@': {},
23+
'container@': {},
24+
'footer@': {}
25+
},
26+
data: {
27+
authRequired: false
28+
},
29+
onEnter: ['$state', '$window', '$stateParams', 'logger',
30+
function($state, $window, $stateParams, logger) {
31+
var next = $state.href('dashboard', {}, {absolute: true})
32+
if ($stateParams.next) {
33+
next = decodeURIComponent($stateParams.next)
34+
}
35+
$window.location = CONSTANTS.ACCOUNTS_APP_URL + '?retUrl=' + encodeURIComponent(next)
36+
}
37+
]
38+
39+
},
1940
logout: {
2041
url: '/logout/',
2142
views: {

app/index.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,6 @@ require('../assets/css/directives/tc-banner.scss')
121121
require('../assets/css/community/statistics.scss')
122122
require('../assets/css/community/members.scss')
123123
require('../assets/css/community/community.scss')
124-
require('../assets/css/account/reset-password.scss')
125-
require('../assets/css/account/registered-successfully.scss')
126-
require('../assets/css/account/register.scss')
127-
require('../assets/css/account/login.scss')
128-
require('../assets/css/account/account.scss')
129124

130125
function requireContextFiles(files) {
131126
const paths = files.keys()

assets/css/account/account.scss

Lines changed: 0 additions & 314 deletions
This file was deleted.

0 commit comments

Comments
 (0)