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

Remove azure. #57

Merged
merged 1 commit into from
Aug 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 0 additions & 7 deletions config/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ module.exports = {
NEW_CHALLENGE_DURATION_IN_DAYS: process.env.NEW_CHALLENGE_DURATION_IN_DAYS || 5,
TC_URL: process.env.TC_URL || 'https://www.topcoder-dev.com',
GITLAB_API_BASE_URL: process.env.GITLAB_API_BASE_URL || 'https://gitlab.com',
AZURE_API_BASE_URL: process.env.AZURE_API_BASE_URL || 'https://app.vssps.visualstudio.com',
AZURE_DEVOPS_API_BASE_URL: process.env.AZURE_DEVOPS_API_BASE_URL || 'https://dev.azure.com',
ISSUE_LABEL_PREFIX: process.env.ISSUE_LABEL_PREFIX || 'tcx_',
PAID_ISSUE_LABEL: process.env.PAID_ISSUE_LABEL || 'tcx_Paid',
FIX_ACCEPTED_ISSUE_LABEL: process.env.FIX_ACCEPTED_ISSUE_LABEL || 'tcx_FixAccepted',
Expand All @@ -97,11 +95,6 @@ module.exports = {
AUTH0_CLIENT_SECRET: process.env.AUTH0_CLIENT_SECRET,
AUTH0_PROXY_SERVER_URL: process.env.AUTH0_PROXY_SERVER_URL,

AZURE_ACCESS_TOKEN_DEFAULT_EXPIRATION: 3600 * 24 * 14,
AZURE_REFRESH_TOKEN_BEFORE_EXPIRATION: 300,
AZURE_OWNER_CALLBACK_URL: '/api/v1/azure/owneruser/callback',
AZURE_CLIENT_SECRET: process.env.AZURE_CLIENT_SECRET,

// used as base to construct various URLs
WEBSITE: process.env.WEBSITE || 'http://topcoderx.topcoder-dev.com',
WEBSITE_SECURE: process.env.WEBSITE_SECURE || 'https://topcoderx.topcoder-dev.com',
Expand Down
3 changes: 1 addition & 2 deletions constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
// The user types
const USER_TYPES = {
GITHUB: 'github',
GITLAB: 'gitlab',
AZURE: 'azure'
GITLAB: 'gitlab'
};

// The user roles
Expand Down
4 changes: 1 addition & 3 deletions models/UserMapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,8 @@ const schema = new Schema({
},
githubUsername: String,
gitlabUsername: String,
azureEmail: String,
githubUserId: Number,
gitlabUserId: Number,
azureUserId: String
gitlabUserId: Number
});

module.exports = schema;
353 changes: 0 additions & 353 deletions services/AzureService.js

This file was deleted.

Loading