Want to integrate Authelia with Home Assistant? Unfortunately Home Assistant lacks support for SSO, but it does support a rather unique command line authentication mode.
In short: Home Assistant will execute a script, passing in the provided username/password from the client. If the script exits with code 0 then the login is accepted, if not it’s rejected.
Authelia, in turn, has a handy /api/verify endpoint that can be used by proxies to implement forward authetication with.
Update 2015-06-03: I have moved this plugin to its own project. The post below has been updated to reflect this.
Back when I was working at RPI I had setup a ticketing system to handle the volume of support related requests that were coming in via e-mail. I turned to osTicket but their authentication system has always been a bit.. err.. not user friendly. Given that many college campuses, including my own, utilize CAS I figured it was time to get that hacked into osTicket.
At one of my previous jobs I had setup Request Tracker to handle support tickets. Request tracker is actually a very powerful piece of software that is unfortunately stucking using a quite ugly theme. They did recently modernize the code behind the theme but it’s still far from perfect.
To that end I decided to include some Bootstrap (pre-version 3) to the theme to help spice things up a little bit.
While working for a school district that ran a windows shop I decided to branch out and use Request Tracker for support tickets. The software allowed us to handle issue more efficently, however, it had a major drawback in that someone would need to manually assign tickets that came in to the proper queue. Since each school building had its own tech(s) we gave each building a queue and then made that buildings tech(s) masters of those queues.
Oddly enough, I’ve recently become addicted to Euro Truck Simulator 2, a very good trucking simulator. One of the great features of the game is that it has built in suppport to play MP3 streams within the game. It comes prepacked with a bunch of European stations, but I wanted to add some of my local stations that are on iHeartRadio.
This led to two problems: finding the stream URL and then transcoding the stream to MP3.
So I have an extra computer back home that runs some VMs that I like to have access to remotely. Easy enough, just some basic DDNS. However, I use CloudFlare whom doesn’t directly offer dynamic DNS. Worry not though, for CloudFlare does have an awesome API for updating DNS records.
Final Script: {% gist kevinoconnor7/4036347 %}
So let’s go over how I got here. First things first, you’ll need your API key which you can get from your account settings page.
Overview Kunaki is a popular disk publishing service that is fully automated and low-overhead. I went ahead and created an interface layer between Kunaki’s XML web service and PHP. It’s incredibly straight-forward and simple to use and sticts to OOP. It’s fully documented (to the best of my ability, limited by Kunaki’s documentation) and provides example uses.
Simple Example Here’s a really simple example getting shipping options and pricing for an order:
Alas I have opted to venture out and create my own blog. This will be my place to write articles on my work and helpful tidbits of code that I come across.