Search code examples
c#asp.net-web-apioauth-2.0identityserver3parse-server

connect my webapi with parse server using identityserver


I have a Asp.Net WebApi that provide some native and javascript platforms with its data.

I have identityserver3 as the authentication/authorization module for this WebApi.

For example i used implicit flow in the communcation between my WebApi and It's native clients.

Now I want to integrate this WebApi system with Facebook Parse server system.

so for example:

If there is a user already in the parse server database and login to my identityserver, i can initiate requests from my WebApi to the Parse server and return data to it.

I know that parse using oAuth2 and OpenId too but what is the required steps for that, or what is the best approach for that?


Solution

  • I have hard time understanding your question. So my answer may not be what you want, but please send me more details if what I said doesn't make sense.

    Register your Web API with Parse server as a client. With the client ID and client secret you get from Parse server for your API, you can make calls to Parse by obtaining an access_token with client credentials flow. Now, use that token from your API to call Parse to see if the user exists. If the user exists, then use that user details, token along with the data you want to post to make a request to Parse server to update the data.

    Thank you, Soma.