Giter VIP home page Giter VIP logo

aspnet-formsauthentication-js's People

Contributors

pleblond avatar sbilodeau avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

aspnet-formsauthentication-js's Issues

decrypt does not seem to be able to decrypt the cookie

I have a sample asp.net app, it has

The cookie is
.ASPXAUTH=7DF8DE9F55A51A2E3294AD4B0A6F8B94A62A3FEB5130E32E0417A3D7A89CE468FF9F436A83B1D1506DFD598D5A136396E0BCF15C7E2F10A26CF7B032731770691B931E5C;

However, it never gets passed the lines of code below. It seems like somehow the ticket hash result is wrong but I am not sure why. Do you have any clue?

if(computedHash.toString('hex') != encryptedTicketHash.toString('hex'))
    throw new Error('encryptedTicket is of an invalid format.');

Support for compatibilityMode Framework45

I'm trying to decrypt a cookie created using Framework45 compatibility mode, but the library throws an error saying encryptedTicket is of an invalid format.

The machine key looks like:
<machineKey validationKey="xxx" compatibilityMode="Framework45" decryptionKey="yyy" validation="SHA1" decryption="AES" />

I'm initializing the library like:

var aspAuth = require('aspnet-formsauthentication');
aspAuth.initialize({
    validationKey: "xxx",
    encryptionKey: "yyy",
    validation: 'SHA1'
});

Does this library support this configuration or is there anything I might be doing wrong here?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.