Question

how do i write a client application to test OAuth 2.0? I found documentation on configuring wso2 identity server, but did not find any docs on where to download oauth client libraries and how to use them

Was it helpful?

Solution

You can write a simple HTTP client to call OAuth end points. For this, You can use the Apache HTTP client library. And also, you can use amber oauth client library to build messages easily. (for authorization code grant type, you may need some browser directs). WSO2 Identity server has some sample, that can try out four main grant types. You can find the sample web application code from here. I guess, if you can go through this code, you can see how client side has been implemented.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top