misp-dashboard icon indicating copy to clipboard operation
misp-dashboard copied to clipboard

Auth with Misp Saml

Open Prodian0013 opened this issue 5 years ago • 3 comments

For Misp auth we are using Saml. I have tried to use the auth_enabled = True but it's not redirecting properly. Running the diagnostic script returns a login error.

# ./diagnostic.py 
✔ Virtual environment and packages
✔ Configuration
✔ File permission
✔ Redis
✔ Zmq
✔ Processes status: Both processes are running
✔ Subscriber status: subscriber is running and populating the buffer
ℹ Buffer queue: Currently 1 items in the buffer
✔ Buffer change rate: Buffer is consumed faster than being populated
✔ Dispatcher status: Took 0.47s to complete
✔ Server listening: http://127.0.0.1:8001/_get_log_head reached. Status code [200]
✖ Server dynamic enpoint: Redirected to `loging` caused by: Redirected to `loging` caused by an unknown error

Any suggestions for getting Saml to work with misp-dashboard? Thanks.

Prodian0013 avatar Apr 12 '21 23:04 Prodian0013

Unfortunately, misp-dashboard does not support MISP custom auth. You'll have to use the auth_enabled = False option for it to work. (or propose a PR to make misp-dashboard supports custom auth ;) ).

mokaddem avatar Apr 14 '21 13:04 mokaddem

Yeah i did that rewrote the auth to use oauth2 in my fork not sure if anyone else would want that though

Prodian0013 avatar Apr 14 '21 13:04 Prodian0013

I would say, if you can share the code please do so. It could be used as a good start if someone wants to build something similar. Feel free to open a pull request with your changes. Thanks in advance! :)

mokaddem avatar Apr 14 '21 14:04 mokaddem