SVN change username

You can change the user with Subversion 1.6 and earlier: svn switch –relocate protocol://currentUser@server/path protocol://newUser@server/path Subversion 1.7 and later: svn relocate protocol://currentUser@server/path protocol://newUser@server/path To find out what protocol://currentUser@server/path is, run svn info in your working copy.

What are best practices for securing the admin section of a website? [closed]

If the website requires a login for both regular activities and admins, e.g. a forum, I’d use separate logins which use the same user database. This ensures that XSRF and session-stealing won’t allow the attacker to access administrative areas. Additionally, if the admin section is in a separate subdirectory, securing that one with the webserver’s … Read more

ASP.NET Core 2.0 authentication middleware

So, after a long day of trying to solve this problem, I’ve finally figured out how Microsoft wants us to make custom authentication handlers for their new single-middleware setup in core 2.0. After looking through some of the documentation on MSDN, I found a class called AuthenticationHandler<TOption> that implements the IAuthenticationHandler interface. From there, I … Read more

How does OpenID authentication work?

What is OpenID? OpenID is an open, decentralized, free framework for user-centric digital identity. OpenID takes advantage of already existing internet technology (URI, HTTP, SSL, Diffie-Hellman) and realizes that people are already creating identities for themselves whether it be at their blog, photostream, profile page, etc. With OpenID you can easily transform one of these … Read more

AngularJS: Basic example to use authentication in Single Page Application

I’ve created a github repo summing up this article basically: https://medium.com/opinionated-angularjs/techniques-for-authentication-in-angularjs-applications-7bbf0346acec ng-login Github repo Plunker I’ll try to explain as good as possible, hope I help some of you out there: (1) app.js: Creation of authentication constants on app definition var loginApp = angular.module(‘loginApp’, [‘ui.router’, ‘ui.bootstrap’]) /*Constants regarding user login defined here*/ .constant(‘USER_ROLES’, { all … Read more

Where to store the refresh token on the Client?

You can store tokens securely in HttpOnly cookies. https://medium.com/@sadnub/simple-and-secure-api-authentication-for-spas-e46bcea592ad If you worry about long-living Refresh Token. You can skip storing it and not use it at all. Just keep Access Token in memory and do silent sign-in when Access Token expires. Don’t use Implicit flow because it’s obsolete. The most secure way of authentication for … Read more