c# - Sharing Forms authentication between newer MVC and older VB.Net projects -


my company has old 3.5 webforms vb.net application needs share authentication newer framework 4.5.1 mvc5 c#.net application.

the newer application based on popular default mvc5 template, using forms authentication, storing authentication tokens, understand it.

the old vb application has no security currently, needs share in new application's authentication. have found numerous posts , articles touch on this, not extent can working example.

i have configured web.config files both sites have identical (except defaulturl) authentication , machinekey segments; see snip below old vb.net application:

<authentication mode="forms">        <forms name=".aspxauth" loginurl="../mvcapp/account/login"           defaulturl="home.aspx" protection="all" path="/" timeout="20" slidingexpiration="true" cookieless="usecookies"           enablecrossappredirects ="true" domain="localhost" requiressl="false"/>      </authentication>      <machinekey decryptionkey="a225194e99bccb0f6b92bc9d82f12c2907bd07cf069bc8b4"                  validationkey="6fa5b7db89076816248243b8fd7336cca360daf8"                  validation="sha1" decryption="aes" />

i have installed both sites locally under iis "localhost/vbapp" , "localhost/mvcapp". i'm stuck is, do now?

i can log in mvcapp , click link vbapp, loads fine, not seem receive authentication ticket. if put on authorization segment in vbapp's web.config deny users=?, can't in. looking read authentication ticket mvcapp, , manually set isauthenticated true? guess i'm looking tutorial might show bit more depth on sharing type of authentication.

thank time.


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -