Need Okta .Net SDK method to get Access Token, Refresh Token, Id Token for a given input of Authorization Code, Redirect Url

Need Okta .Net SDK method to get Access Token, Refresh Token, Id Token for a given input of Authorization Code, Redirect Url.

I need the equivalent .Net sdk method for the API OpenID Connect & OAuth 2.0 API | Okta Developer

Can someone help me on the same.

Hello,

I suggest looking into our .NET SDK samples,

All the available .Net SDK’s have not any method for accessing these endpoints

  1. Authentication - OpenID Connect & OAuth 2.0 API | Okta Developer
    1.1. Endpoint - /api/v1/authn
    1.2. SDK is available - Okta .NET Authentication SDK
  2. Token - OpenID Connect & OAuth 2.0 API | Okta Developer
    2.1. Endpoint - ${baseUrl}/v1/token
    2.2. SDK is not available
  3. Revoke - OpenID Connect & OAuth 2.0 API | Okta Developer
    3.1. Endpoint - ${baseUrl}/v1/revoke
    3.2. SDK is not available
  4. Keys - OpenID Connect & OAuth 2.0 API | Okta Developer
    4.1. Endpoint - /api/v1/keys
    4.2. SDK is not available

I’m trying to write a wrapper library to have these functionalities like Authentication, Token fetching, Keys etc . Can you please help me on the same with the available .Net SDK’s.
As per my analysis, I have not found a suitable .Net SDK for points (2,3,4). So, I have decided to call these end points manually.

Please help me with your inputs on the above thought process

1 Like

Have you tried using the ApiClient? That is what I am trying now myself.