Written by LunarSpotlight
Monday, 11-Dec-23 22:58:13 UTC
This week, we worked on and implemented a solution for improving the robustness of the authentication process for our Indigo listener members. For more details, read on.
For those unaware, Gensokyo Radio has a membership program “Indigo” which, among other things, enables access to the station’s lossless audio stream. When it was introduced, the primary method of access was through a web browser or an external application such as VLC, and the user would be required to enter their username and a PIN for authentication.
As time has passed and the open beta of our PWA-based application has been seeing more use, we’ve experimented with alternative methods of authentication which don’t require a user to regularly login. At first, we used a method of transferring session data along with the initial connection request via the PWA. This past week, one of our listeners pointed out an issue where session data would sometimes not be passed correctly when initially connecting or during automatic reconnects, causing a “load error” in the app.
We revamped the way Indigo authentication works by using a combination of activity and location-based signals. The PWA no longer needs to send a session to the server; instead, the server checks to see that a user has accessed the app from their current IP sometime in the last 24 hours.
Listeners who use the PWA’s player are automatically authenticated as a result. Additionally, external applications benefit from not requiring a user/PIN so long as connections are made from the same network. You can still use a user/PIN in cases where there’s been no activity from the PWA or website in the past day.
That’s all for this week, rate songs for the 2023 list while you can, and thanks for listening!
[Knowledge #144]
Suggested Posts
Live #136, Game Jam #12, & Streaming Solution Research
LunarSpotlight | Sunday, 21-Jan-24 22:52:34 UTC
Video Production: Return to Gensokyo
LunarSpotlight | Monday, 11-Mar-24 21:02:12 UTC
Launching the Gensokyo Radio Web App (PWA)
LunarSpotlight | Sunday, 24-Mar-24 21:18:18 UTC
TouhouFest 2024 Complete!
LunarSpotlight | Tuesday, 30-Apr-24 22:20:08 UTC
Live #140 & Fixing iOS Connection Issues
LunarSpotlight | Monday, 20-May-24 22:44:02 UTC