MCPcopy Create free account
hub / github.com/alphagov/notifications-api / create_internal_authorization_header

Function create_internal_authorization_header

tests/__init__.py:39–42  ·  view source on GitHub ↗
(client_id)

Source from the content-addressed store, hash-verified

37
38
39def create_internal_authorization_header(client_id):
40 secret = current_app.config["INTERNAL_CLIENT_API_KEYS"][client_id][0]
41 token = create_jwt_token(secret=secret, client_id=client_id)
42 return "Authorization", f"Bearer {token}"
43
44
45def unwrap_function(fn):

Calls

no outgoing calls

Tested by

no test coverage detected