Add Okta for api under a SPA app host

I have SPA app (MyApp) using react router version 7

In okta I created an app integration of type spa for MyApp

( call back url http://MyApp.com/Authorize/Callback.)

I have clientid : ‘xyz123’

I have .net core api at http://MyApp.com/MyApi to serve data to the SPA. I want to use okta to authenticate MyApi and access claims inside MyApi. Do I have to create another app integration for the api? Are there any samples ?

Our React and .NET samples are designed exactly for this use case!

You’ll want to combine the .NET Core Resource Server sample with either the React Okta-hosted login (redirect login) or [Custom login] (embedded login) (samples-js-react/custom-login at master · okta/samples-js-react · GitHub) sample

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.