Client registration data of AdapterSecurityContext is null while testing the API using POSTMAN

72 Views Asked by At

I have written a server side REST API which requires client registartion data to perform some operation. I have used AdapterSecurityContext and I am fetching the client registration data using getClientRegistrationData method of AdapterSecurityContext. I need to test the API before giving the endpoint to mobile APP developers so I am trying to check the API suing POSTMAN.

The problem is when I try to hit the same API from POSTMAN for testing the response I get nullpointer exception because getClientRegistrationData is null. I am begginer in MFP so I just needed to know is it possible to pass client registration data through POSTMAN or it can only be obtained when adapter is connected to mobile client.

1

There are 1 best solutions below

0
Vittal Pai On

You can retrieve client registration data only when you invoke adapter endpoints using mobile/web clients.

This doesn't work with confidential clients.