Implement Authentication Session URL Retrieval in Gateway
Opened this issue · 0 comments
p5150j commented
Implement Authentication Session URL Retrieval in Gateway
Summary:
As a developer, I want to implement the functionality in the Gateway to retrieve an AuthenticationSessionUrl,
so that the app backend can initiate the sign-in process.
Acceptance Criteria:
- Implement the
getAuthenticationSessionUrl()
method in the Gateway. - Generate and sign the request payload (
SiwaRequest
). - Ensure that the Gateway communicates with Frequency Access (
fa
) to post the sign-in request and receives a201 Created
response with a Location header containing theAuthenticationSessionUrl
. - Return the
AuthenticationSessionUrl
to the app backend.
Tasks:
- Develop the
getAuthenticationSessionUrl()
logic in the Gateway. - Generate and sign the
SiwaRequest
payload. - Implement the POST request to `/siwa/api/request' endpoint in Frequency Access.
- Handle the response, extract the
AuthenticationSessionUrl
from the Location header. - Ensure proper error handling and logging.
- Write unit tests for the method.