
Product
Introducing Scala and Kotlin Support in Socket
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
Durandal.Authentication
Advanced tools
To get started create a new Web Api project with the authentication set to 'Individual User Accounts' then install this package. This package adds authentication (ASP.NET Identity version 2.0.0) to Durandal 2.0.1 (the Bootstrap 3 starterkit version). The expected version of JQuery is 1.10.2. If you are using another version update the jquery path in App/main.js. If you are using ASP.NET Identity version 1.0.0 please install version 1.7.3 of this package.
#Durandal 451
Durandal 2.0.1 running with ASP.NET 4.5.1 using OWIN security to provide:
For more information please see the series of blog posts on this project here.
#Getting started
During the database initialization two roles are created:
A user called Administrator is also created with the password 'Administrator451' and added to both roles. Edit IdentityDbInitializer if you need to change this, or add more roles and users.
To configure route based authorization add a property requiredRoles to each route that needs to be checked when setting up the route map.
{ route: 'start', moduleId: 'viewmodels/start', nav: true, requiredRoles: ['RegisteredUsers'] },
{ route: 'siteAdmin', moduleId: 'viewmodels/start', nav: true, requiredRoles: ['Administrators','PowerUsers'] }
To render areas of a view based on the role membership use the ifIsInRole custom KO binding.
<div data-bind="ifIsInRole: 'Admnistrators' ">
<h2>Admin</h2>
<p>This is an admin section which will only be visible if the current user is in the 'Admnistrators' role.</p>
</div>
#References
This project is based on the following packages and components:
FAQs
To get started create a new Web Api project with the authentication set to 'Individual User Accounts' then install this package. This package adds authentication (ASP.NET Identity version 2.0.0) to Durandal 2.0.1 (the Bootstrap 3 starterkit version). The expected version of JQuery is 1.10.2. If you are using another version update the jquery path in App/main.js. If you are using ASP.NET Identity version 1.0.0 please install version 1.7.3 of this package.
We found that durandal.authentication demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
Application Security
/Security News
Socket CEO Feross Aboukhadijeh and a16z partner Joel de la Garza discuss vibe coding, AI-driven software development, and how the rise of LLMs, despite their risks, still points toward a more secure and innovative future.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.