Help Walk Through Obtaining OAUTH Token Manually

I am trying to port over integration code for my Concord4 alarm system from ST. The steps require manually obtaining an OAUTH token (here is a link to the instructions)

So far i have been able to get the app up and running, setup OAUTH, use the CLIENTID to get a CODE but from there, I havenā€™t been able to get the url working to get the token responseā€¦

http://<HUBITAT_IP>/oauth/confirm_access?scope=app&response_type=code&redirect_uri=https://localhost&client_id=<CLIENTID>

results in:

https://localhost/?code=<Code>

and then I do this:

`curl -k "http://<HUBITAT_IP>/oauth/token?grant_type=authorization_code&client_id=<CLIENTID>&client_secret=<CLIENT_SECRET>&code=<CODE>&scope=app&redirect_uri=https%3A%2F%2Flocalhost%2Foauth%2Fcallback"`

results in Hubitat throwing a page not foundā€¦ I am hoping it is something simple that I am over lookingā€¦ Any help?