Comments (6)
@pettai this is the correct format: OIDC_ROLES_MAPPING="{\"admin\": \"1\"}"
(valid JSON and quotes escaped).
I will commit an updated description in the template, and close this.
from misp-docker.
You need to check MISP logs inside the logs directory (on the host).
Installing the library should not be required.
from misp-docker.
Hi,
I wonder if this is the issue:
misp-docker/core/files/configure_misp.sh
Line 122 in 887d1b3
I also have problems getting OIDC correctly configured into config.php
, during docker compose up
it says:
Provided new config is not array, NULL given.
I've tested the input as the configure_misp.sh
script runs it (inside the misp docker itself):
root@5a3534a3b270:/var/www/MISP# sudo -u www-data php /var/www/MISP/tests/modify_config.php modify "{
\"OidcAuth\": {
\"provider_url\": \"https://OIDC-proxy\",
\"client_id\": \"test_id\",
\"client_secret\": \"testtesttesttest\",
\"roles_property\": \"roles\",
\"role_mapper\": {"admin": "1","sync-user": "5"},
\"default_org\": \"ORGNAME\"
}
}"
I also tested various escaping on the ${OIDC_ROLES_MAPPING}
variable, but I never got the end result in config.php
to look like described in https://github.com/MISP/MISP/blob/2.4/app/Plugin/OidcAuth/README.md
Perhaps the documentation / example needs to be revisited?
(above example is from
Line 100 in 887d1b3
from misp-docker.
Good point.
from misp-docker.
adding OIDC_ROLES_MAPPING=[]
generates a empty array() in config.php
, so I suspect the formatting should look like that instead of OIDC_ROLES_MAPPING={}
from misp-docker.
@pettai not sure you are highlighting the actual issue: we are trying to convert json arrays into php associative arrays, so I don't see anything wrong with OIDC_ROLES_MAPPING={}
.
Unfortunately I don't have time to work on this, but will happily review/merge PRs.
from misp-docker.
Related Issues (20)
- Service 'misp-core' failed to build : Build failed HOT 1
- Starting fetch from Feed - Results in Error: Database connection "Mysql" is missing, or could not be created. HOT 5
- Custom taxonomies get overwritten on startup HOT 1
- Uncaught SyntaxError: redeclaration of let keyboardShortcutsManager HOT 2
- Request for migration instructions from archived coolacid/docker-misp to official Docker image HOT 1
- Seeking Guidance on Hosting MISP Docker on Azure Container Instances HOT 1
- Redis over TLS incompatible due to hardcoded tcp:// in entrypoint HOT 1
- Outdated Debian distribution HOT 3
- ERROR in misp-modules Dockerfile HOT 1
- MISP CORE FAILED HOT 1
- Why enabling and disabling ZeroMQ HOT 1
- Debug Configuration as an Environment Variable HOT 4
- Change url to specific port HOT 1
- 504 Gateway Time-out while querying MISP with pymisp HOT 19
- CLI-Only Configurations as Environment Variables HOT 3
- Enable MISP.system_setting_db by Default for Containerized MISP HOT 3
- Issue trying to get Authkeys HOT 6
- apply_critical_fixes() in configure_misp.sh turns off actions plugin every time the misp-core container comes up HOT 4
- Remove deprecated 'userInit' calls and replace with `cake user init`
- SAML config in docker image HOT 1
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 misp-docker.