Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Release 2020-10-29 - Auth0 RS256#278

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
luizrrodrigues merged 17 commits intomasterfromdevelop
Oct 29, 2020
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
Show all changes
17 commits
Select commitHold shift + click to select a range
fc923a6
RS256 token changes
Sep 23, 2020
7d121b0
typo
Sep 23, 2020
cdbe5cd
changes in auth-lib detail
Sep 25, 2020
952d353
Auth0 Test release
luizrrodriguesSep 25, 2020
fc887f0
ci: Added dist tag
luizrrodriguesSep 25, 2020
927c663
Fix conflicts
luizrrodriguesOct 13, 2020
b6d0f96
Merge pull request #273 from topcoder-platform/develop
luizrrodriguesOct 13, 2020
90c6b6b
Sync feature/auth0-RS256 with develop
luizrrodriguesOct 13, 2020
c8ea452
ci: merged with develop branch
sushilshindeOct 15, 2020
3b24352
Merge pull request #274 from topcoder-platform/feature/auth0-RS256
sushilshindeOct 15, 2020
1499985
Remove token from v2 calls (checkpoint and results)
luizrrodriguesOct 21, 2020
f12d6d6
Fix checkpoint challengeId comparation
luizrrodriguesOct 21, 2020
c530fe9
Merge pull request #275 from topcoder-platform/issue-5121
luizrrodriguesOct 21, 2020
91d5dd7
fix: for issue #5121
luizrrodriguesOct 21, 2020
40c1a1b
Merge pull request #277 from topcoder-platform/develop-auth0-sync
luizrrodriguesOct 29, 2020
aa28aa1
fix: for issues #4937 and #5121
luizrrodriguesOct 29, 2020
8f9a0f8
Merge branch 'master' into develop
luizrrodriguesOct 29, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion__tests__/reducers/auth.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -20,7 +20,7 @@ const mockActions = {
jest.setMock(require.resolve('actions/auth'), mockActions);
jest.setMock(require.resolve('actions/profile'), mockActions);

jest.setMock('tc-accounts', {
jest.setMock('@topcoder-platform/tc-auth-lib', {
decodeToken: () => 'User object',
isTokenExpired: () => false,
});
Expand Down
2 changes: 1 addition & 1 deletion__tests__/reducers/challenge.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -44,7 +44,7 @@ const mockSmpActions = {
};
_.merge(actions, mockSmpActions);

jest.setMock('tc-accounts', {
jest.setMock('@topcoder-platform/tc-auth-lib', {
decodeToken: () => 'User object',
isTokenExpired: () => false,
});
Expand Down
2 changes: 1 addition & 1 deletionconfig/jest/setup.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
/* global jest */
require('topcoder-react-utils/config/jest/setup');

jest.setMock('tc-accounts', {
jest.setMock('@topcoder-platform/tc-auth-lib', {
decodeToken: token => (token ? {
handle: 'username12345',
userId: '12345',
Expand Down
2 changes: 1 addition & 1 deletionconfig/webpack/default.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -22,7 +22,7 @@ module.exports = {
'redux',
'redux-actions',
'isomorphic-fetch',
'tc-accounts',
'@topcoder-platform/tc-auth-lib',
'to-capital-case',
'topcoder-react-utils',
'tc-core-library-js',
Expand Down
6 changes: 3 additions & 3 deletionspackage.json
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -31,7 +31,7 @@
"lint:js": "./node_modules/.bin/eslint --ext .js,.jsx .",
"test": "npm run lint && npm run jest"
},
"version": "1.0.8",
"version": "1.1.0",
"dependencies": {
"auth0-js": "^6.8.4",
"config": "^3.2.0",
Expand All@@ -47,10 +47,10 @@
"react-redux": "^6.0.1",
"redux": "^3.7.2",
"redux-actions": "^2.4.0",
"tc-accounts": "https://github.com/appirio-tech/accounts-app.git#dev",
"tc-core-library-js": "appirio-tech/tc-core-library-js.git#v2.6",
"to-capital-case": "^1.0.0",
"topcoder-react-utils": "0.7.5"
"topcoder-react-utils": "0.7.5",
"@topcoder-platform/tc-auth-lib": "git+https://github.com/topcoder-platform/tc-auth-lib.git#1.0.1"
},
"devDependencies": {
"autoprefixer": "^8.6.4",
Expand Down
2 changes: 1 addition & 1 deletionsrc/actions/auth.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -4,7 +4,7 @@
*/

import { createActions } from 'redux-actions';
import { decodeToken } from 'tc-accounts';
import { decodeToken } from '@topcoder-platform/tc-auth-lib';
import { getApiV3, getApiV5 } from '../services/api';

/**
Expand Down
6 changes: 3 additions & 3 deletionssrc/actions/challenge.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -7,7 +7,7 @@
import _ from 'lodash';
import { config } from 'topcoder-react-utils';
import { createActions } from 'redux-actions';
import { decodeToken } from 'tc-accounts';
import { decodeToken } from '@topcoder-platform/tc-auth-lib';
import { getService as getChallengesService } from '../services/challenges';
import { getService as getSubmissionService } from '../services/submissions';
import { getApi } from '../services/api';
Expand DownExpand Up@@ -248,7 +248,7 @@ function loadResultsInit(challengeId) {
* @return {Action}
*/
function loadResultsDone(auth, challengeId, type) {
return getApi('V2', auth.tokenV2)
return getApi('V2')
.fetch(`/${type}/challenges/result/${challengeId}`)
.then(response => response.json())
.then(response => ({
Expand All@@ -273,7 +273,7 @@ function fetchCheckpointsInit() {}
*/
function fetchCheckpointsDone(tokenV2, challengeId) {
const endpoint = `/design/challenges/checkpoint/${challengeId}`;
return getApi('V2', tokenV2).fetch(endpoint)
return getApi('V2').fetch(endpoint)
.then((response) => {
if (response.status !== 200) {
throw response.status;
Expand Down
2 changes: 1 addition & 1 deletionsrc/reducers/auth.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -13,7 +13,7 @@
*/

import _ from 'lodash';
import { decodeToken } from 'tc-accounts';
import { decodeToken } from '@topcoder-platform/tc-auth-lib';
import { redux } from 'topcoder-react-utils';
import actions from '../actions/auth';
import profileActions from '../actions/profile';
Expand Down
2 changes: 1 addition & 1 deletionsrc/reducers/challenge.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -173,7 +173,7 @@ function onFetchCheckpointsDone(state, action) {
loadingCheckpoints: false,
};
}
if (state.details && state.details.legacyId === action.payload.challengeId) {
if (state.details &&`${state.details.legacyId}` ===`${action.payload.challengeId}`) {
return {
...state,
checkpoints: action.payload.checkpoints,
Expand Down
2 changes: 1 addition & 1 deletionsrc/reducers/direct.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -6,7 +6,7 @@

import _ from 'lodash';
import { handleActions } from 'redux-actions';
import { decodeToken } from 'tc-accounts';
import { decodeToken } from '@topcoder-platform/tc-auth-lib';
import actions from '../actions/direct';
import logger from '../utils/logger';
import { fireErrorMessage } from '../utils/errors';
Expand Down
2 changes: 1 addition & 1 deletionsrc/services/challenges.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -7,7 +7,7 @@
import _ from 'lodash';
import moment from 'moment';
import qs from 'qs';
import { decodeToken } from 'tc-accounts';
import { decodeToken } from '@topcoder-platform/tc-auth-lib';
import logger from '../utils/logger';
import { setErrorIcon, ERROR_ICON_TYPES } from '../utils/errors';
import { COMPETITION_TRACKS, getApiResponsePayload } from '../utils/tc';
Expand Down
2 changes: 1 addition & 1 deletionsrc/services/members.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -7,7 +7,7 @@
/* global XMLHttpRequest */
import _ from 'lodash';
import qs from 'qs';
import { decodeToken } from 'tc-accounts';
import { decodeToken } from '@topcoder-platform/tc-auth-lib';
import logger from '../utils/logger';
import { getApiResponsePayload } from '../utils/tc';
import { getApi } from './api';
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp