
JeffB.20375 (Customer) asked a question.
I am using dotnetcore to authenticate with Okta using their hosted UI. This is working great, but now I wan to allow this user to talk to APIs using bearer tokens. How do I get an access_token for a user once they authenticated with Okta hosted ui cookies? Am I thinking about this wrong? Any help would be appreciated.

Not sure if I should put the answer here, but I think I figured out my disconnect. There is a checkbox in the Okta dashboard for your app that asks if you want to include the "Refresh" token. Once this was checked I could get all the tokens I needed using HttpContext.GetTokenAsync("refresh_token")