Skip to content

Commit

Permalink
feat:! UNKNOWN_ERROR_REDIRECT_URL -> ERROR_URL in proxy.conf, require…
Browse files Browse the repository at this point in the history
…ments updated
  • Loading branch information
peppelinux committed Jul 19, 2023
1 parent fc19706 commit d09e1ff
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 25 deletions.
42 changes: 23 additions & 19 deletions README.idpy.forks.mngmnt.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,37 @@ git clone https://github.com/identitypython/pysaml2
cd pysaml2/
# create current pplnx branch
git checkout --orphan pplnx-v7.2.1
git remote add pplnx https://github.com/peppelinux/pysaml2.git
git reset --hard
git pull origin master
git remote add ppl nx https://github.com/peppelinux/pysaml2.git
# git checkout --orphan pplnx-v7.4.2
# git reset --hard
# git pull origin master
git checkout -b pplnx-v7.4.2
# pplnx's patches
# https://github.com/IdentityPython/pysaml2/pull/628
# SPID required
git pull pplnx disabled_weak_algs
git pull pplnx disabled_weak_algs --ff
# https://github.com/IdentityPython/pysaml2/pull/625
# this must be merged at the end, otherwise break the unit tests
git pull pplnx ns_prefixes
git pull pplnx ns_prefixes --ff
# check that tests are ok
python3 -m pytest tests/ -x
````

# SATOSA

````
git clone https://github.com/identitypython/satosa
cd SATOSA
git clone https://github.com/identitypython/satosa -o satosa
cd satosa
git remote add pplnx https://github.com/peppelinux/SATOSA.git
git checkout --orphan pplnx-v8.2.0
git reset --hard
git pull origin master
# git checkout --orphan pplnx-v8.4.0
# git reset --hard
# git pull origin master
git checkout -b pplnx-v8.4.0
pip install -r tests/test_requirements.txt
pip install pymongo
Expand All @@ -47,15 +53,13 @@ sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb
sudo apt install -y mongodb-org
sudo systemctl start mongod
# check that tests are ok
python3 -m pytest tests/ -x
# https://github.com/IdentityPython/SATOSA/pull/363
git pull pplnx cookie_conf_2
# https://github.com/IdentityPython/SATOSA/pull/324
git pull pplnx context_state_error_msg
git pull pplnx context_state_error_msg -ff
# staging ... need more checks if the latests satosa releases can live without it
# https://github.com/IdentityPython/SATOSA/pull/325
git pull pplnx error_redirect_page
# git pull pplnx error_redirect_page --ff
# check that tests are ok
python3 -m pytest tests/ -x
````
4 changes: 2 additions & 2 deletions example/proxy_conf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ CONTEXT_STATE_DELETE: yes
COOKIE_MAX_AGE: 600 # 10 minutes
#COOKIE_SECURE: no
#COOKIE_HTTPONLY: no

#COOKIE_SAMESITE: "None"
STATE_ENCRYPTION_KEY: "CHANGE_ME!"

cookies_samesite_compat:
Expand All @@ -17,7 +17,7 @@ cookies_samesite_compat:
# DEPRECATED, use hasher microservice instead
USER_ID_HASH_SALT: "CHANGE_ME!"

UNKNOW_ERROR_REDIRECT_PAGE: "https://localhost:9999/error_page.html"
ERROR_URL: "https://localhost:9999/error_page.html"

CUSTOM_PLUGIN_MODULE_PATHS:
#- "plugins/ping"
Expand Down
7 changes: 3 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#satosa >= 8.2.0

git+https://github.com/peppelinux/pysaml2.git@pplnx-v7.2.1
git+https://github.com/peppelinux/SATOSA.git@pplnx-v8.2.0
# this project still needs pplnx's forks
git+https://github.com/peppelinux/pysaml2.git@pplnx-v7.4.2
git+https://github.com/peppelinux/SATOSA.git@pplnx-v8.4.0

pymongo
satosa_oidcop >= 2.0.0
Expand Down

0 comments on commit d09e1ff

Please sign in to comment.