scbd / aspnet-formsauthentication-js Goto Github PK
View Code? Open in Web Editor NEWA minimal JavaScript implementation of ASP.NET FormsAuthentication
License: MIT License
A minimal JavaScript implementation of ASP.NET FormsAuthentication
License: MIT License
Token are broken on node 0.12.x
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.');
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.