Authentication method is best suitable to confirm credentials are valid in Okta?

Hi, new with Okta!

I have a request to validate if username and password are valid in Okta before the user can add/update/delete a record on our C# ASP.NET Records Management web app. The app will prompt them to re-enter their Okta username and password every time the perform an action on the app.

I plan to use the Authentication API / Primary Authentication detailed @ https://developer.okta.com/docs/api/resources/authn/#authentication-operations by making a server-side REST call to the endpoint.

I wonder if this is the best approach in terms of how Okta is architectured/designed for.

I’d appreciate your feedback.

Get the transaction state for the existing session: https://developer.okta.com/docs/api/resources/authn/#get-transaction-state