Skip to content

Commit 90f7981

Browse files
Merge pull request #54 from jaredhendrickson13/feat/pfsense-2.8.0-support
feat: add support for pfSense-2.8.0-RELEASE
2 parents 12518dc + b130e6d commit 90f7981

File tree

24 files changed

+3576
-135
lines changed

24 files changed

+3576
-135
lines changed

.github/workflows/build.yml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,30 +17,33 @@ jobs:
1717

1818
strategy:
1919
matrix:
20-
freebsd_version:
21-
- FreeBSD-14.0-CURRENT
20+
include:
21+
- FREEBSD_VERSION: FreeBSD-14.0-CURRENT
22+
FREEBSD_ID: freebsd14
23+
- FREEBSD_VERSION: FreeBSD-15.0-CURRENT
24+
FREEBSD_ID: freebsd15
2225

2326
steps:
2427
- uses: actions/checkout@v4
2528
- name: Setup FreeBSD build VM
2629
run: |
27-
/usr/local/bin/VBoxManage controlvm ${{ matrix.freebsd_version }} poweroff || true
28-
/usr/local/bin/VBoxManage snapshot ${{ matrix.freebsd_version }} restore initial
29-
/usr/local/bin/VBoxManage startvm ${{ matrix.freebsd_version }} --type headless
30+
/usr/local/bin/VBoxManage controlvm ${{ matrix.FREEBSD_VERSION }} poweroff || true
31+
/usr/local/bin/VBoxManage snapshot ${{ matrix.FREEBSD_VERSION }} restore initial
32+
/usr/local/bin/VBoxManage startvm ${{ matrix.FREEBSD_VERSION }} --type headless
3033
sleep 5
3134
3235
- name: Build pfSense-pkg-saml2-auth on FreeBSD
3336
run: |
34-
/usr/bin/ssh -o StrictHostKeyChecking=no ${{ matrix.freebsd_version }}.jaredhendrickson.com 'sudo pkill ntpd || true && sudo ntpdate pool.ntp.org || true'
35-
/usr/local/bin/python3 tools/make_package.py --host ${{ matrix.freebsd_version }}.jaredhendrickson.com --branch ${{ env.commit_id }} --tag ${{ env.build_version }}_${{ matrix.freebsd_version }}
37+
/usr/bin/ssh -o StrictHostKeyChecking=no ${{ matrix.FREEBSD_VERSION }}.jaredhendrickson.com 'sudo pkill ntpd || true && sudo ntpdate pool.ntp.org || true'
38+
/usr/local/bin/python3 tools/make_package.py --host ${{ matrix.FREEBSD_VERSION }}.jaredhendrickson.com --branch ${{ env.commit_id }} --tag ${{ env.build_version }}_${{ matrix.FREEBSD_ID }}
3639
3740
- name: Teardown FreeBSD build VM
3841
if: "${{ always() }}"
3942
run: |
40-
/usr/local/bin/VBoxManage controlvm ${{ matrix.freebsd_version }} poweroff || true
41-
/usr/local/bin/VBoxManage snapshot ${{matrix.freebsd_version}} restore initial
43+
/usr/local/bin/VBoxManage controlvm ${{ matrix.FREEBSD_VERSION }} poweroff || true
44+
/usr/local/bin/VBoxManage snapshot ${{matrix.FREEBSD_VERSION}} restore initial
4245
4346
- uses: actions/upload-artifact@v4
4447
with:
45-
name: pfSense-pkg-saml2-auth-${{ env.build_version }}_${{ matrix.freebsd_version }}.pkg
46-
path: pfSense-pkg-saml2-auth-${{ env.build_version }}_${{ matrix.freebsd_version }}.pkg
48+
name: pfSense-pkg-saml2-auth-${{ env.build_version }}_${{ matrix.FREEBSD_ID }}.pkg
49+
path: pfSense-pkg-saml2-auth-${{ env.build_version }}_${{ matrix.FREEBSD_ID }}.pkg

.github/workflows/phplint.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
1-
name: Pylint
2-
1+
name: Quality
32
on: [push]
43

54
jobs:
6-
lint:
5+
check_phplint:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v4
9+
- name: Lint on PHP 8.2
10+
uses: firehed/lint-php-action@v1
11+
with:
12+
file-extensions: 'php, inc'
13+
php-version: "8.2"
14+
15+
check_pylint:
716
runs-on: ubuntu-latest
817
strategy:
918
matrix:
10-
python-version: ["3.10"]
19+
python-version: [ "3.11" ]
1120
steps:
1221
- uses: actions/checkout@v4
1322
- name: Set up Python ${{ matrix.python-version }}
@@ -20,4 +29,4 @@ jobs:
2029
pip install -r requirements.txt
2130
- name: Analysing the code with pylint
2231
run: |
23-
pylint $(git ls-files '*.py')
32+
pylint $(git ls-files '*.py')

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616
include:
1717
- freebsd_version: FreeBSD-14.0-CURRENT
1818
pfsense_version: 2.7
19+
- freebsd_version: FreeBSD-15.0-CURRENT
20+
pfsense_version: 2.8
1921

2022
steps:
2123
- uses: actions/checkout@v4

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# pfSense SAML2 Authentication
22

3-
[![PHPlint](https://github.com/jaredhendrickson13/pfsense-saml2-auth/actions/workflows/phplint.yml/badge.svg)](https://github.com/jaredhendrickson13/pfsense-saml2-auth/actions/workflows/phplint.yml)
4-
[![Pylint](https://github.com/jaredhendrickson13/pfsense-saml2-auth/actions/workflows/pylint.yml/badge.svg)](https://github.com/jaredhendrickson13/pfsense-saml2-auth/actions/workflows/pylint.yml)
3+
[![Quality](https://github.com/jaredhendrickson13/pfsense-saml2-auth/actions/workflows/quality.yml/badge.svg)](https://github.com/jaredhendrickson13/pfsense-saml2-auth/actions/workflows/quality.yml)
4+
[![Build](https://github.com/jaredhendrickson13/pfsense-saml2-auth/actions/workflows/build.yml/badge.svg)](https://github.com/jaredhendrickson13/pfsense-saml2-auth/actions/workflows/build.yml)
5+
[![Release](https://github.com/jaredhendrickson13/pfsense-saml2-auth/actions/workflows/release.yml/badge.svg)](https://github.com/jaredhendrickson13/pfsense-saml2-auth/actions/workflows/release.yml)
6+
57

68
`pfsense-saml2-auth` is a packaged SAML2 authentication extension for the pfSense webConfigurator. Currently, pfSense
79
only supports local, LDAP and RADIUS authentication and does not support any native multi-factor authentication (MFA).
@@ -45,8 +47,12 @@ Currently, the package fully supports the following pfSense versions including p
4547
<details>
4648
<summary>List of Supported pfSense Releases</summary>
4749

50+
- pfSense 2.8.0-RELEASE
51+
- pfSense 2.7.2-RELEASE
52+
- pfSense 2.7.1-RELEASE
4853
- pfSense 2.7.0-RELEASE
4954

55+
5056
</details>
5157

5258
Older versions of pfSense may still be supported by older versions of this package. Any other version not listed is

pfSense-pkg-saml2-auth/files/etc/inc/priv/saml2_auth.priv.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
// Copyright 2022 Jared Hendrickson
2+
// Copyright 2025 Jared Hendrickson
33
//
44
// Licensed under the Apache License, Version 2.0 (the "License");
55
// you may not use this file except in compliance with the License.

pfSense-pkg-saml2-auth/files/etc/inc/saml2_auth/SAML2Auth.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
// Copyright 2022 Jared Hendrickson
2+
// Copyright 2025 Jared Hendrickson
33
//
44
// Licensed under the Apache License, Version 2.0 (the "License");
55
// you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)