line-fido2-server icon indicating copy to clipboard operation
line-fido2-server copied to clipboard

Fix: Correct API endpoint mismatch in CredentialController

Open cinari4 opened this issue 2 years ago • 1 comments
trafficstars

What is this PR for?

Fixing API Endpoint Mismatch Issue in CredentialController

Overview or reasons

I have identified an issue in the CredentialController on the server. Currently, the endpoint for receiving requests is set as /fido2/credentials/{id}, but I noticed that when constructing the API address on the rpserver, it is being called as /fido2/credentials{id}. As a result, the credentials API cannot be successfully invoked.

Tasks

When calling the credentials API, you need to configure the address of that API in rpserver, pathSegment function when calling the credentials API.

Result

Now able to call the server's credential/{id} api from rpserver as normal.

cinari4 avatar Aug 06 '23 12:08 cinari4

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Aug 06 '23 12:08 CLAassistant