Skip to content

Commit

Permalink
[511:sparkles:] Fix OIDC IAM Provider Configuration
Browse files Browse the repository at this point in the history
The integration test suite and Makefile were updated to reflect the
breaking changes introduced in flask-ligand v0.6.0.
  • Loading branch information
cowofevil committed Oct 7, 2022
1 parent da8dc29 commit 7e3b44e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ teardown-integration: ## teardown the Docker environment for integration testing
.PHONY: gen-local-env-file
gen-local-env-file: setup-integration check-integration ## generate an '.env' file for accessing the integration environment
@echo -e "FLASK_ENV=local\n"\
"OIDC_ISSUER_URL=http://localhost:8080\n"\
"OIDC_REALM=flask-ligand\n"\
"OIDC_DISCOVERY_URL=http://localhost:8080/realms/flask-ligand/.well-known/openid-configuration\n"\
"SQLALCHEMY_DATABASE_URI=postgresql+pg8000://admin:password@localhost:5432/app\n"\
"OPENAPI_GEN_SERVER_URL=http://localhost:8888" > '.env'

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
flask-ligand~=0.5
flask-ligand~=0.6
4 changes: 2 additions & 2 deletions tests/integration/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ def basic_flask_app(

# noinspection HttpUrlsUsage
override_settings = {
"OIDC_ISSUER_URL": f"http://{int_testing_env_vars['KC_HOSTNAME']}:{int_testing_env_vars['KC_PORT']}",
"OIDC_REALM": f"{int_testing_env_vars['KC_REALM']}",
"OIDC_DISCOVERY_URL": f"http://{int_testing_env_vars['KC_HOSTNAME']}:{int_testing_env_vars['KC_PORT']}/"
f"realms/{int_testing_env_vars['KC_REALM']}/.well-known/openid-configuration",
"SQLALCHEMY_DATABASE_URI": db_uri,
"DB_AUTO_UPGRADE": True,
"DB_MIGRATION_DIR": migration_directory,
Expand Down

0 comments on commit 7e3b44e

Please sign in to comment.