File tree Expand file tree Collapse file tree 3 files changed +10
-7
lines changed
Expand file tree Collapse file tree 3 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ name: build
22
33on :
44 push :
5+ workflow_dispatch :
56
67env :
78 PROJECT_NAME : genesis-notification
Original file line number Diff line number Diff line change 1919
2020from gcl_looper .services import bjoern_service
2121from gcl_looper .services import hub
22+ from gcl_iam import drivers
2223from gcl_iam import opts as iam_opts
2324from oslo_config import cfg
2425from restalchemy .common import config_opts as ra_config_opts
@@ -64,21 +65,22 @@ def main():
6465 infra_log .configure ()
6566 log = logging .getLogger (__name__ )
6667
67- token_algorithm = iam_opts .get_token_encryption_algorithm (CONF )
68-
6968 log .info (
7069 "Start service on %s:%s" ,
7170 CONF [DOMAIN ].bind_host ,
7271 CONF [DOMAIN ].bind_port ,
7372 )
7473
7574 service_hub = hub .ProcessHubService ()
75+ iam_driver = drivers .HttpDriver (
76+ CONF .iam .iam_endpoint ,
77+ CONF .iam .audience ,
78+ CONF .iam .hs256_jwks_decryption_key ,
79+ )
7680
7781 for _ in range (CONF [DOMAIN ].workers ):
7882 service = bjoern_service .BjoernService (
79- wsgi_app = app .build_wsgi_application (
80- token_algorithm = token_algorithm ,
81- ),
83+ wsgi_app = app .build_wsgi_application (iam_driver ),
8284 host = CONF [DOMAIN ].bind_host ,
8385 port = CONF [DOMAIN ].bind_port ,
8486 bjoern_kwargs = dict (reuse_port = True ),
Original file line number Diff line number Diff line change 1515# under the License.
1616
1717from gcl_iam import middlewares as iam_mw
18+ from gcl_iam import drivers
1819from restalchemy .api import applications
1920from restalchemy .api .middlewares import logging as logging_mw
2021from restalchemy .api import middlewares
@@ -63,7 +64,7 @@ def get_openapi_engine():
6364 return openapi_engine
6465
6566
66- def build_wsgi_application (token_algorithm , iam_engine_driver = None ):
67+ def build_wsgi_application (iam_engine_driver ):
6768 return middlewares .attach_middlewares (
6869 applications .OpenApiApplication (
6970 route_class = get_api_application (),
@@ -72,7 +73,6 @@ def build_wsgi_application(token_algorithm, iam_engine_driver=None):
7273 [
7374 middlewares .configure_middleware (
7475 iam_mw .GenesisCoreAuthMiddleware ,
75- token_algorithm = token_algorithm ,
7676 iam_engine_driver = iam_engine_driver ,
7777 skip_auth_endpoints = skip_auth_endpoints ,
7878 ),
You can’t perform that action at this time.
0 commit comments