Comments (3)
Interesting... we don't have a containers.json
on our end... is there an exception/stack trace you can share?
from opensource-management-portal.
The following code will fail, from middleware/passport-config.js on line 84. The config.containers element is undefined, unless that file is present.
let aadStrategy = new OIDCStrategy({
redirectUrl: config.activeDirectory.redirectUrl,
allowHttpForRedirectUrl: config.containers.docker || config.webServer.allowHttp,
realm: config.activeDirectory.tenantId,
clientID: config.activeDirectory.clientId,
clientSecret: config.activeDirectory.clientSecret,
oidcIssuer: config.activeDirectory.issuer,
identityMetadata: 'https://login.microsoftonline.com/' + config.activeDirectory.tenantId + '/.well-known/openid-configuration',
responseType: 'id_token code',
responseMode: 'form_post',
validateIssuer: true,
}, activeDirectorySubset);
Further, I see where that is used to make HTTP allowable, which is useful since I making this work from a container where HTTPS termination will take place on the load balancer (code from middleware/index.js).
if (!initializationError) {
if (!web) {
/* No web routes */
} else if (config.containers && config.containers.deployment) {
console.log('Container deployment: HTTP: listening, HSTS: on');
app.use(require('./hsts'));
} else if (config.containers && config.containers.docker) {
console.log('Docker image: HTTP: listening, HSTS: off');
} else if (config.webServer.allowHttp) {
console.warn('WARNING: Development mode (DEBUG_ALLOW_HTTP): HTTP: listening, HSTS: off');
} else {
app.use(require('./sslify'));
app.use(require('./hsts'));
}
from opensource-management-portal.
Found the files; they were added in a refactor for Docker support internally in the past.
This PR contains the file/s if you need access now.
from opensource-management-portal.
Related Issues (20)
- Table link provider regression HOT 2
- Ability to remove/disable users after they leave the company HOT 7
- No organization when using modern Github App HOT 4
- vendor.css and client.css not found HOT 5
- Sexe
- Sestem
- LICENSE files should never be updated by the new repository wizard HOT 2
- Porn
- An
- Ads
- Search for "teams" is not working properly. HOT 6
- Cleanup more company-specific bits HOT 2
- Docker-compose up after following setup steps on exits with failure
- Feature flag needed for the org write feature HOT 1
- Remove branch rename implementation HOT 1
- How are webhook payloads published to the service bus? HOT 4
- Hierarchical role design. HOT 2
- Dynamic organization settings example? HOT 2
- typo in UI HOT 1
- Unable to use GitHub App with PAT to dynamically see organisations where i'm part of HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opensource-management-portal.