<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
System Status
Announcements
Announcements
Search
Search
Select Language
0D54z00007eTMNYCA4Okta Classic EngineSingle Sign-OnAnswered2022-05-20T16:46:16.000Z2022-05-19T10:50:46.000Z2022-05-20T16:46:16.000Z

RaviM.09679 (NTT DATA GDS) asked a question.

To Fetch the ID token and Access token from OKTA Authentication response using VB.NET Application

I am currently trying to implement SSO by using OKTA, i have created a startup.vb class for implementing Login with open id default credentials. Now the authentication is successful and could able to navigate to the landing page with the response status code -200. Now i wanted to fetch Id-token and access token from the response. Any suggestions will be apricated. I am using basic VB coding to implement this functionality.

 

 

 

code snippet.

 

 

 

 app.SetDefaultSignInAsAuthenticationType(OpenIdConnectAuthenticationDefaults.AuthenticationType)

 

   

 

  app.UseCookieAuthentication(New CookieAuthenticationOptions With {

 

  .CookieManager = New SystemWebCookieManager()

 

 })

 

  app.UseOpenIdConnectAuthentication(New OpenIdConnectAuthenticationOptions With {

 

  .ClientId = _clientId,

 

  .ClientSecret = _clientSecret,

 

  .Authority = _authority,

 

  .RedirectUri = _redirectUri,

 

  .ResponseType = OpenIdConnectResponseType.CodeIdToken,

 

  .Scope = OpenIdConnectScope.OpenIdProfile

 

 })


This question is closed.
Loading
To Fetch the ID token and Access token from OKTA Authentication response using VB.NET Application
Okta Support Agent (Beta)

Terms of Service

Hello! I'm the Okta Support Agent (Beta), your go-to resource for questions about Okta products. Please remember for your security and privacy, do not share any Personally Identifiable Information (PII) such as passwords, IP addresses, or other details with me.

Okta Privacy Policy and Terms of Service apply