I am very much appreciate if anyone can help me with how to extract the Bearer token from the response header in a Windows Service Application.
It looks pretty straight forward to obtain the context from a C# Web UI application, once I have the context then I can access the Bearer token. Howerver, in a Windows Service application, since I don't have the Web UI, I just can't seem to get to that Bearer token.
If anyone had done something like that, I am very much appreciate if you can share the example code of how you got the Bearer token from the header.
Thank you very much!