diff --git a/api/ekirjasto_authentication.py b/api/ekirjasto_authentication.py index 982a2869b..c539f5182 100644 --- a/api/ekirjasto_authentication.py +++ b/api/ekirjasto_authentication.py @@ -243,6 +243,10 @@ def _authentication_flow_document(self, _db: Session) -> dict[str, Any]: "rel": "relations", "href": f"{self._ekirjasto_api_url}/v1/identities/patron/relations", }, + { + "rel": "invite", + "href": f"{self._ekirjasto_api_url}/v1/identities/invite", + }, { "rel": "passkey_register_start", "href": self._create_circulation_url( diff --git a/tests/api/finland/test_ekirjasto.py b/tests/api/finland/test_ekirjasto.py index 710cf767c..d4dee75f3 100644 --- a/tests/api/finland/test_ekirjasto.py +++ b/tests/api/finland/test_ekirjasto.py @@ -250,14 +250,14 @@ def test_authentication_flow_document( ) assert ( - doc["links"][9]["rel"] == "passkey_register_start" - and doc["links"][9]["href"] + doc["links"][10]["rel"] == "passkey_register_start" + and doc["links"][10]["href"] == "http://localhost/test-library/ekirjasto/passkey/register/start?provider=E-kirjasto+provider+for+circulation+manager" ) assert ( - doc["links"][10]["rel"] == "passkey_register_finish" - and doc["links"][10]["href"] + doc["links"][11]["rel"] == "passkey_register_finish" + and doc["links"][11]["href"] == "http://localhost/test-library/ekirjasto/passkey/register/finish?provider=E-kirjasto+provider+for+circulation+manager" )