Authenticating .NET API Service Calls Using Ionic Cloud User Authentication

Ok gang. I had a great meeting with the Ionic Creator folks to give them some feedback on how my company uses Ionic Creator and as a “thank you” these awesome folks went to the dev’s and got me this. I haven’t had the chance to try it yet, but I’ll get to it this week hopefully and report back (unless someone else does before me).

Hey Doug!

Thanks again for taking the time to chat with us yesterday, it’s really cool how you’re using Creator in your process. I wanted to touch base about using Ionic Auth server side. Basically you’re going to have to do something like this:

  1. Use the getToken() function on the client to get the token and pass it to the server: Ionic Docs - Ionic Documentation
  1. Use that token to make requests on your server. :slight_smile:

In order to validate the token, call this URL and make sure it matches your APP_ID and the correct USER_ID. Instead of passing it a UUID, you’re going to want to pass it the word “self”:

Ionic Docs - Ionic Documentation

a la “/users/self”

Hope that help!

1 Like