npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

hotspot-login-page

v1.0.1

Published

hotspot login page to work with keycloak

Downloads

41

Readme

CircleCI
donate

Keycloak Radius Hotspot

Setup social and other Oauth/Saml integration with Keycloak Radius embedded server

How Keycloak Radius Hotspot works

  1. Authorization through Keycloak occurs by OpenID Connect.
  2. User selects on the login page the identity provider through which he wants to log in
  3. The result of a successful authorization is a JWT that contains a temporary session key.
  4. With this key, the User is authorized through Radius Server.
  5. Radius Server checks if this key is in the user session. And whether it was used.
  6. Radius Server successfully authorizing the user

connection Schema`s

- Cloud connection (Better to Use Radsec)

KeycloakRadius (1)

- Proxy connection

KeycloakRadius

Setup, build and configure HotSpot page for Social Login

  1. Create Realm hotspotRealm
  2. create Radius Client RadiusClientHotSpot
  3. create OpenId client hotspotClient
  4. Setting your Hotspot DNS in "Valid Redirect URIs" and "Web Origins" HotspotClientConfiguration
  5. add "Radius Session Password" Mapper HotSpotMapper HotSpotMapper2
  6. Download keycloak.json downloadKeycloakJson

Setup Mikrotik

  1. Upload all files from hotspot/mikrotik to flash/hotspot on device (authorization.js and login.html)
  • Using web UI
  • Using scp
  • Using ftp
  • Using winbox
  1. Download keycloak.json downloadKeycloakJson
  2. upload keycloak.json into flash/hotspot on device
  3. update Walled Garden. Add your keycloak host addWalledGarden KeycloakHostName

Facebook Login example

  1. Install Keycloak with embedded Radius Server
  2. install ngrok. Register ngrok ./ngrok authtoken <YOUR TOKEN>
  3. start ngrok ./ngrok http 8090Ngrok
  4. open keycloak goto realm and add Facebook Identity Provider SelectFacbook
  5. Copy Redirect URI Copy Redirect URI
  6. goto https://developers.facebook.com/ and create a new application CreateApp1CreateApp2FacebookLogin3Facebook4
  7. Insert Redirect URI from Step 7 Facebook5
  8. Get App Id and Secret from application (Settings->basic) Facebook6
  9. back to Keycloak and set this App Id and Secret Facebook7
  10. add facebook hosts to Walled Garden FacebookWalledGarden
/ip hotspot walled-garden  
add comment=facebook dst-host=facebook.*  
add comment=facebook dst-host=*.facebook.*  
add comment=facebook dst-host=*.fbcdn.*  
add comment=facebook dst-host=*akamai*  
add comment=facebook dst-host=*atdmt*
add comment=facebook dst-host=*fbsbx*
add comment=common dst-host=www.google-analytics.com
  1. open hotspot page FacebookLoginHotspot FacebookLogin2

build UI

build UI Requirements:

node and npm must be installed
macbook instalation brew : brew install node
Install node on ubuntu

Building steps

  1. cd ./source
  2. npm i
  3. npm run build
    result in ./mikrotik

If you find these useful, please Donate!