Commit 5e55b9f sachin-maheshwari
authored
File tree 11 files changed +21
-20
lines changed
11 files changed +21
-20
lines changed Original file line number Diff line number Diff line change 1
1
version : 2
2
2
defaults : &defaults
3
3
docker :
4
- - image : circleci/ node:8.9.4-browsers
4
+ - image : node:14
5
5
deploy_defaults : &deploy_defaults
6
6
docker :
7
7
- image : cibuilds/aws
8
8
install_dependency : &install_dependency
9
9
name : Installation of build and deployment dependencies.
10
10
command : |
11
- sudo apt install python-dev python-pip -y
12
- sudo pip install awscli --upgrade
11
+ apt update
12
+ apt install jq -y
13
+ apt install python-dev python-pip -y
14
+ pip install awscli --upgrade
13
15
install_deploysuite : &install_deploysuite
14
16
name : Installation of install_deploysuite.
15
17
command : |
Original file line number Diff line number Diff line change @@ -30,8 +30,8 @@ module.exports = {
30
30
TCO17_URL : 'https://tco17.topcoder-dev.com' ,
31
31
TCO_HOME_URL : 'https://www.topcoder-dev.com/tco' ,
32
32
33
- ACCOUNTS_APP_URL : 'https://accounts.topcoder-dev.com/#!/member ' ,
34
- ACCOUNTS_APP_CONNECTOR_URL : 'https://accounts.topcoder-dev.com/connector.html ' ,
33
+ ACCOUNTS_APP_URL : 'https://accounts-auth0 .topcoder-dev.com' ,
34
+ ACCOUNTS_APP_CONNECTOR_URL : 'https://accounts-auth0 .topcoder-dev.com' ,
35
35
36
36
FILE_PICKER_API_KEY : process . env . FILE_PICKER_API_KEY_DEV ,
37
37
FILE_PICKER_SUBMISSION_CONTAINER_NAME : 'submission-staging-dev' ,
Original file line number Diff line number Diff line change @@ -31,8 +31,8 @@ module.exports = {
31
31
TCO17_URL : 'https://tco17.topcoder.com' ,
32
32
TCO_HOME_URL : 'https://www.topcoder.com/tco' ,
33
33
34
- ACCOUNTS_APP_URL : 'https://accounts.topcoder.com/#!/member ' ,
35
- ACCOUNTS_APP_CONNECTOR_URL : 'https://accounts.topcoder.com/connector.html ' ,
34
+ ACCOUNTS_APP_URL : 'https://accounts-auth0 .topcoder.com' ,
35
+ ACCOUNTS_APP_CONNECTOR_URL : 'https://accounts-auth0 .topcoder.com' ,
36
36
37
37
FILE_PICKER_API_KEY : process . env . FILE_PICKER_API_KEY_PROD ,
38
38
FILE_PICKER_SUBMISSION_CONTAINER_NAME : 'submission-staging-prod' ,
Original file line number Diff line number Diff line change 150
150
"remarkable" : " ^1.7.4" ,
151
151
"sanitize-html" : " ^1.27.4" ,
152
152
"svg-react-loader" : " ^0.4.5" ,
153
- "tc-accounts " : " git+https://github.com/appirio-tech/accounts-app.git#v1 .0.4 " ,
153
+ "tc-auth-lib " : " topcoder-platform/tc-auth-lib#1 .0.1 " ,
154
154
"tc-ui" : " git+https://github.com/appirio-tech/tc-ui.git#feature/connectv2" ,
155
155
"tlds" : " ^1.191.0" ,
156
156
"topcoder-react-utils" : " 0.0.39" ,
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import {
15
15
ROLE_PROGRAM_MANAGER ,
16
16
ROLE_PRESALES , ROLE_PROJECT_MANAGER , ROLE_SOLUTION_ARCHITECT
17
17
} from '../config/constants'
18
- import { getFreshToken , configureConnector , decodeToken } from 'tc-accounts '
18
+ import { getFreshToken , configureConnector , decodeToken } from 'tc-auth-lib '
19
19
import { getUserProfile } from '../api/users'
20
20
import { getUserGroups } from '../api/groups'
21
21
import { getOrgConfig } from '../api/orgConfig'
Original file line number Diff line number Diff line change 1
1
import axios from 'axios'
2
2
import store from '../config/store'
3
- import { getFreshToken , isTokenExpired } from 'tc-accounts '
3
+ import { getFreshToken , isTokenExpired } from 'tc-auth-lib '
4
4
5
5
export const getToken = ( ) => {
6
6
return new Promise ( ( resolve , reject ) => {
Original file line number Diff line number Diff line change 1
1
import React from 'react'
2
2
import { withRouter } from 'react-router-dom'
3
- import { getFreshToken } from 'tc-accounts '
3
+ import { getFreshToken } from 'tc-auth-lib '
4
4
import { ACCOUNTS_APP_LOGIN_URL } from '../config/constants'
5
5
6
6
export function requiresAuthentication ( Component ) {
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { connect } from 'react-redux'
3
3
import { withRouter } from 'react-router-dom'
4
4
import './Home.scss'
5
5
import homeImgSrc from '../../assets/images/hero-tc-landing.png'
6
- import { DOMAIN , ACCOUNTS_APP_REGISTER_URL } from '../../config/constants'
6
+ import { DOMAIN , ACCOUNTS_APP_LOGIN_URL } from '../../config/constants'
7
7
8
8
class Home extends React . Component {
9
9
constructor ( props ) {
@@ -18,7 +18,7 @@ class Home extends React.Component {
18
18
}
19
19
20
20
render ( ) {
21
- const registerUrl = ACCOUNTS_APP_REGISTER_URL
21
+ const registerUrl = ` ${ ACCOUNTS_APP_LOGIN_URL } ?regSource=tcBusiness&retUrl= ${ window . location . protocol } // ${ window . location . host } /`
22
22
const learnMoreUrl = 'https://www.' + DOMAIN + '/about-topcoder/connect/'
23
23
return (
24
24
< div className = "content content-home" >
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import _ from 'lodash'
5
5
import UserDropdown from 'appirio-tech-react-components/components/UserDropdownMenu/UserDropdownMenu'
6
6
import {
7
7
ACCOUNTS_APP_LOGIN_URL ,
8
- ACCOUNTS_APP_REGISTER_URL ,
9
8
ROLE_CONNECT_COPILOT ,
10
9
ROLE_CONNECT_MANAGER ,
11
10
ROLE_ADMINISTRATOR ,
@@ -72,10 +71,10 @@ class TopBarContainer extends React.Component {
72
71
const userImage = getAvatarResized ( bigPhotoURL , 80 )
73
72
const userName = getFullNameWithFallback ( user )
74
73
const homePageUrl = `${ window . location . protocol } //${ window . location . host } /`
75
- const logoutLink = `https://accounts. ${ DOMAIN } /#!/logout? retUrl=${ homePageUrl } `
74
+ const logoutLink = `${ ACCOUNTS_APP_LOGIN_URL } ?logout=true& retUrl=${ homePageUrl } `
76
75
const isHomePage = this . props . match . path === '/'
77
- const loginUrl = `${ ACCOUNTS_APP_LOGIN_URL } ?retUrl=${ window . location . protocol } //${ window . location . host } /`
78
- const registerUrl = ! isHomePage ? ACCOUNTS_APP_REGISTER_URL : null
76
+ const loginUrl = `${ ACCOUNTS_APP_LOGIN_URL } ?regSource=tcBusiness& retUrl=${ window . location . protocol } //${ window . location . host } /`
77
+ const registerUrl = ! isHomePage ? loginUrl : null
79
78
const isLoggedIn = ! ! ( userRoles && userRoles . length )
80
79
81
80
const logoutClick = ( evt ) => {
Original file line number Diff line number Diff line change @@ -724,8 +724,8 @@ export const DOMAIN = process.env.domain || 'topcoder.com'
724
724
export const CONNECT_DOMAIN = `connect.${ DOMAIN } `
725
725
export const CONNECT_MAIN_PAGE_URL = `http://connect.${ DOMAIN } `
726
726
export const ACCOUNTS_APP_CONNECTOR_URL = process . env . ACCOUNTS_APP_CONNECTOR_URL
727
- export const ACCOUNTS_APP_LOGIN_URL = process . env . ACCOUNTS_APP_LOGIN_URL || `https://accounts.${ DOMAIN } /#!/member `
728
- export const ACCOUNTS_APP_REGISTER_URL = process . env . ACCOUNTS_APP_REGISTER_URL || `https://accounts.${ DOMAIN } /#!/member/registration?regSource=tcBusiness `
727
+ export const ACCOUNTS_APP_LOGIN_URL = process . env . ACCOUNTS_APP_LOGIN_URL || `https://accounts-auth0 .${ DOMAIN } `
728
+ export const ACCOUNTS_APP_REGISTER_URL = process . env . ACCOUNTS_APP_REGISTER_URL || `https://accounts-auth0 .${ DOMAIN } `
729
729
730
730
export const TC_API_URL = `https://api.${ DOMAIN } `
731
731
export const DIRECT_PROJECT_URL = `https://www.${ DOMAIN } /direct/projectOverview?formData.projectId=`
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import LoadingIndicator from './components/LoadingIndicator/LoadingIndicator'
19
19
import OrganizationPage from './components/SpecialPage/OrganizationPage'
20
20
import { ACCOUNTS_APP_LOGIN_URL , PROJECT_FEED_TYPE_PRIMARY , PROJECT_FEED_TYPE_MESSAGES } from './config/constants'
21
21
import { getTopic } from './api/messages'
22
- import { getFreshToken } from 'tc-accounts '
22
+ import { getFreshToken } from 'tc-auth-lib '
23
23
import { scrollToHash } from './components/ScrollToAnchors.jsx'
24
24
25
25
import { TCEmitter } from './helpers'
You can’t perform that action at this time.
0 commit comments