Skip to content

Commit

Permalink
add Github build workflow; update references to OpenIDC
Browse files Browse the repository at this point in the history
Signed-off-by: Hans Zandbelt <[email protected]>
  • Loading branch information
zandbelt committed Jan 27, 2023
1 parent 4516a7b commit ca89456
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 9 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build

on:
push:
pull_request:
schedule:
- cron: "0 0 * * *"

jobs:
build:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y libssl-dev libcurl4-openssl-dev libhiredis-dev libmemcached-dev
sudo apt-get install -y libjansson-dev libcjose-dev apache2-dev libxml2-dev check pkg-config
cd /tmp
git clone https://github.com/zmartzone/liboauth2.git
cd liboauth2
./autogen.sh
./configure
make
sudo make install
- name: Configure
run: |
./autogen.sh
./configure
- name: Make
run: make

- name: Distcheck
run: make distcheck DESTDIR="/tmp/mod_sts"
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ includesub_HEADERS = \

lib_LTLIBRARIES = @[email protected]

@PACKAGE_NAME@_la_CFLAGS = @OAUTH2_CFLAGS@ @OAUTH2_APACHE_CFLAGS@ @APACHE_CFLAGS@ @XML_CFLAGS@ -Isrc/liboauth2-sts/include
@PACKAGE_NAME@_la_CFLAGS = @OAUTH2_CFLAGS@ @OAUTH2_APACHE_CFLAGS@ @APACHE_CFLAGS@ @XML_CFLAGS@ -I${srcdir}/src/liboauth2-sts/include
@PACKAGE_NAME@_la_LIBADD = @OAUTH2_LIBS@ @OAUTH2_APACHE_LIBS@ @APR_LIBS@ @XML_LIBS@
@PACKAGE_NAME@_la_SOURCES = \
src/liboauth2-sts/src/sts_int.h \
Expand Down
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Build Status](https://github.com/zmartzone/mod_sts/actions/workflows/build.yml/badge.svg)](https://github.com/zmartzone/mod_sts/actions/workflows/build.yml)

# mod_sts
A security token exchange module for Apache HTTP Server 2.x which allows for exchanging arbitrary security
tokens by calling into a remote Security Token Service (STS).
Expand Down Expand Up @@ -26,8 +28,8 @@ and you don't want to enforce support for that legacy onto your external clients
An source (or: incoming) token can be presented in a header (e.g. an `Authorization: bearer` header for
OAuth 2.0 bearer access tokens), a query parameter or a cookie. Alternatively the token can be consumed
from an environment variable set by a another Apache (authentication) module such as a validated access
token set by [mod_auth_openidc](https://github.com/zmartzone/mod_auth_openidc) in OAuth 2.0 Resource
Server mode.
token set by [mod_oauth2](https://github.com/zmartzone/mod_oauth2) operating as an OAuth 2.0 Resource
Server.

Sample supported - incoming/external - source tokens:
- an OAuth 2.0 bearer access token presented by an external OAuth 2.0 Client
Expand Down Expand Up @@ -135,11 +137,11 @@ Any questions/issues should go to issues tracker.
#### Commercial Services
For commercial Support contracts, Professional Services, Training and use-case specific support you can
contact:
[sales@zmartzone.eu](mailto:sales@zmartzone.eu)
[sales@openidc.com](mailto:sales@openidc.com)


Disclaimer
----------
*This software is open sourced by ZmartZone IAM. For commercial support
you can contact [ZmartZone IAM](https://www.zmartzone.eu) as described above in the [Support](#support)
*This software is open sourced by OpenIDC. For commercial support
you can contact [OpenIDC](https://www.openidc.com) as described above in the [Support](#support)
section.*
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AC_INIT([mod_sts],[3.3.0],[hans.zandbelt@zmartzone.eu])
AC_INIT([mod_sts],[3.3.0],[hans.zandbelt@openidc.com])

AM_INIT_AUTOMAKE([foreign no-define subdir-objects])
AC_CONFIG_MACRO_DIRS([m4])
Expand Down
2 changes: 1 addition & 1 deletion src/liboauth2-sts
2 changes: 1 addition & 1 deletion src/mod_sts.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @Author: Hans Zandbelt - hans.zandbelt@zmartzone.eu
* @Author: Hans Zandbelt - hans.zandbelt@openidc.com
*
**************************************************************************/

Expand Down

0 comments on commit ca89456

Please sign in to comment.