Forum Discussion

AbhinavK10's avatar
AbhinavK10
Copper Contributor
Feb 10, 2022

microsoftgraph / security-api-solutions for MISP giving access_token error

Hi all, 

 

I am trying to integrate MISP feeds to Sentinel and followed the steps as per the documentation - 

https://techcommunity.microsoft.com/t5/microsoft-sentinel-blog/integrating-open-source-threat-feeds-with-misp-and-sentinel/ba-p/1350371

https://github.com/microsoftgraph/security-api-solutions/tree/master/Samples/MISP

 

I am stuck at the last step where we have to run the script.py in order to push the feeds to sentinel. I am getting the error of access_token

 

Traceback (most recent call last):
File "script.py", line 100, in <module>
main()
File "script.py", line 93, in main
with RequestManager(total_indicators) as request_manager:
File "/home/srvadmin/mispToSentinel/security-api-solutions/Samples/MISP/RequestManager.py", line 42, in __enter__
access_token = self._get_access_token(
File "/home/srvadmin/mispToSentinel/security-api-solutions/Samples/MISP/RequestManager.py", line 70, in _get_access_token
access_token = requests.post(
KeyError: 'access_token'

 

 

I am unable to identify where the script is failing and how to rectify it. 

Resources

OSZAR »