From fbc4ab7aea6268c7894892e075790d6c2181f2d0 Mon Sep 17 00:00:00 2001 From: Mark <mark@openappstack.net> Date: Wed, 4 Dec 2019 18:32:39 +0100 Subject: [PATCH] Align README to last commit --- test/login_logout/README.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/test/login_logout/README.md b/test/login_logout/README.md index cfe9616..b3a914c 100644 --- a/test/login_logout/README.md +++ b/test/login_logout/README.md @@ -1,11 +1,19 @@ This is a test application to verify that all of the components provided in this repository work together according to [OpenID Connect Standards](https://openid.net/developers/specs/) +Install the requirements with: + +``` +virtualenv venv +. venv/bin/activate +pip3 install -r requrements.txt +``` + Before running the application with `flask run --port=????`, make sure you export the following environment variables with values according to your setup. ``` -export URLS_SELF_ISSUER=http://sso.oas.example.net:4444/ # Hydra public API Base +export BASE_URL=http://sso.oas.example.net:4444/ # Hydra public API Base export ACCESS_TOKEN_URL=http://sso.oas.example.net:4444/oauth2/token # Hydra token endpoint export LOGOUT_URL=http://sso.oas.example.net:4444/oauth2/sessions/logout # Hydra logout endpoint export AUTHORIZE_URL=http://sso.oas.example.net:4444/oauth2/auth # Hydra authentication endpoint @@ -13,13 +21,6 @@ export USERINFO_URL=http://sso.oas.example.net:4444/userinfo # Hydra OpenID Conn export KEY=testapplication # name of your oauth/openID Connect client (application) export SECRET=clientsecret # secret of yout oauth/openID Connect client (application) ``` -Also, don't forget to install requirements. - -``` -virtualenv venv -. venv/bin/activate -pip3 install -r requrements.txt -``` Navigate to `localhost:port/` to trigger the openID connect authentication flow. During the login process your agent's browser will be redirected multiple times. If successful, you will see a -- GitLab