RSS

Posts in 2019

  • Secure Squid Proxy Server

    Last Update: in Linux

    Install and quick configure squid to make it securely

    Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-requested web pages. Installation Install on Mac with brew $ brew install squid ==> …

    Read more

  • OAuth2 101

    Last Update: in OAuth2

    Introduction to OAuth 2 and OAuth 2.1 Protocol Detailed Grant Flow Diagrams, Security Consideration and Best Practice.

    What is OAuth2 OAuth 2.0 focuses on client developer simplicity while providing specific authorization flows for web applications, desktop applications, mobile phones, and living room devices. This specification and its extensions are being developed …

    Read more

  • Setup a Git Server over SSH

    in Git

    Setting up a Git service running over SSH.

    Plan server Like GitHub, I want to have git url like git@example.com:repos/myrepo.git, so I can clone as: $ git clone git@example.com:repos/myrepo.git Create git user To do this, I need create a user named git on my Linux server: $ sudo useradd -m …

    Read more

  • Git quick reference

    Last Update: in Git

    Git quick reference for daily work

    Why Git Git is a fast, scalable, distributed revision control system with an unusually rich command set that provides both high-level operations and full access to internals. help git help outline the most common use git commands. $ git help usage: …

    Read more

  • npm publish

    in npm

    Tips on contributing packages to npm registry by npm publish, how to reduce package size, how to use scoped package, how to debug package locally etc.

    Reduce package size Use files field in package.json to specific installed files The optional files field is an array of file patterns that describes the entries to be included when your package is installed as a dependency. File patterns follow a …

    Read more

  • Configure Debian startup services

    in Linux

    Configure debian start up services with sysv-rc-conf.

    I used to use chkconfig to configure which service to run at system start up. With my Raspberry Pi running based on Debian distribution, there is no chkconfig 😔. The replacement for Debian is sysv-rc-conf: Run-level configuration for SysV like init …

    Read more

Posts in 2018

  • Integrate with Django admin site

    in CAS

    Integrate django-cas-ng with Django admin site authentication

    Problem I’m using django-cas-ng framework to authenticate users. The main problem is that the admin page still uses the default login view. Methods used this far: 1.- Using env var From docs: CAS_ADMIN_PREFIX: The URL prefix of the Django …

    Read more

  • CAS Single Logout (SLO)

    Last Update: in CAS

    How CAS single logout (SLO) works?

    SLO Overview NOTE: Single Logout (SLO) need CAS Server support. With Single Logout (SLO), user gets logged out not only from the CAS Server, but also from all visited CAS client applications. django-cas-ng proudly support SLO since release 3.5.0. The …

    Read more

  • CAS History

    in CAS

    CAS (Central Authentication Server) Protocol History

    CAS is a simple central authentication server protocol. It was initially conceived and developed by Shawn Bayern of Yale University Technology and Planning. It was later maintained by Drew Mazurek at Yale. CAS 1.0 implemented single-sign-on. CAS 2.0 …

    Read more

  • CAS 101

    Last Update: in CAS

    A brief introduction to CAS (Central Authentication Service) key conceptions and flows to newbie. login flow, logout flow, ticket validation etc.

    CAS Introduction The Central Authentication Service (CAS) is a single-sign-on / single-sign-off protocol for the web. It permits a user to access multiple applications while providing their credentials (such as userid and password) only once to a …

    Read more