# Authorization Code flow for ASP.MVC 4.0

**URL:** <https://devforum.okta.com/t/authorization-code-flow-for-asp-mvc-4-0/6955>\
**Category:** Questions\
**Created:** [November 18, 2019, 4:56pm UTC](https://devforum.okta.com/t/authorization-code-flow-for-asp-mvc-4-0/6955 "2019-11-18T16:56:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Piyush.lahoti](https://avatars.discourse-cdn.com/v4/letter/p/ba8739/32.png) [@Piyush.lahoti](https://devforum.okta.com/u/Piyush.lahoti)\
**Post date:** [November 18, 2019, 4:56pm UTC](https://devforum.okta.com/t/authorization-code-flow-for-asp-mvc-4-0/6955/1 "2019-11-18T16:56:26Z")

</div>

Hello,

I am trying to integration OKTA in a web application build in Visual studio 2010 [asp.net](http://asp.net) MVC 4 framework 4.0 via OIDC authorization code flow

I have taken the approach of JavaScript SDK for the integration as I couldn’t find any DLL/SDK related to .net framework 4.0 .

I have utilized token.getWithRedirect to get Authorization code but cannot find a way to pass **client secret and authorization code** to get the access token

I have refered okta-auth-js.min.js for the implementation  
Thanks in advance.

---

<div class="post-metadata">

**Author:** ![dragos](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/dragos/32/1313_2.png) [@dragos](https://devforum.okta.com/u/dragos)\
**Post date:** [November 25, 2019, 4:16am UTC](https://devforum.okta.com/t/authorization-code-flow-for-asp-mvc-4-0/6955/2 "2019-11-25T04:16:06Z")

</div>

Hi @Piyush.lahoti

You can find [here](https://github.com/okta/samples-aspnet) several samples to integrate Okta with [ASP.NET](http://ASP.NET) MVC 4.x. The details mentioned are passed automatically by the SDK and your application receives the JWTs.

---

<div class="post-metadata">

**Author:** ![Piyush.lahoti](https://avatars.discourse-cdn.com/v4/letter/p/ba8739/32.png) [@Piyush.lahoti](https://devforum.okta.com/u/Piyush.lahoti)\
**Post date:** [November 25, 2019, 3:15pm UTC](https://devforum.okta.com/t/authorization-code-flow-for-asp-mvc-4-0/6955/3 "2019-11-25T15:15:14Z")

</div>

Thanks Dragos.  
looking the Github URL we came to know that all those project are using OWIN Dll which are build in higher framework (4.5)  
Our application is build in framework(4.0) all those Dll doesn’t support our framework

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [January 18, 2024, 12:34am UTC](https://devforum.okta.com/t/authorization-code-flow-for-asp-mvc-4-0/6955/4 "2024-01-18T00:34:38Z")

</div>

Closed on January 18, 2024, 12:34am UTC

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