I'm trying to write some automated processes for my SMA using API and PowerShell. I've already figured out how to do everything I need to do my question is about Authentication.
So all of the functions and processes I've written are using Basic authentication because that's I could get to work based on the API document. The document talks about authenticating with a JWT token but never actually goes in to detail on how. So I've built a packet based on what I know about JWT tokens and fired it at the SMA only to be returned a 401.
looking at the API logs I see
Info: Got token issued by: None
Debug: Error: Permission Denied. Reason: Untrused issuer None
Info: User None not authorized