Jump to content

  •  

Important Notification

Members,
For your security and privacy please read this IV News Article to protect your community and your self from IPS. This is urgent and should be taken seriously.
Thank you,
IV Management

- - - - -

How to use REST & OAuth?


  • Please log in to reply
3 replies to this topic

#1 TrynCatchMe

TrynCatchMe

    Newbie

  • Member
  • Pip
  • 9 posts

Posted 15 May 2019 - 07:37 PM

I am trying to use the built in REST and OATH function, I am trying to make it so I can login via my C# program, But I am unsure how exactly to login with username/email password to get the Oath token?

#2 TrynCatchMe

TrynCatchMe

    Newbie

  • Member
  • Pip
  • 9 posts

Posted 15 May 2019 - 07:50 PM

I am trying to use the grant type login with username/password

#3 Rayttor

Rayttor

    Newbie

  • Member
  • Pip
  • 3 posts

Posted Yesterday, 05:35 PM

U can simply generate API key in ur ACP and use it or connect to ur DB :D

#4 cold

cold

    IVN COO | Management Team

  • Community Management
  • 333 posts

Donator

Posted Today, 04:34 PM

View PostTrynCatchMe, on 15 May 2019 - 07:50 PM, said:

I am trying to use the grant type login with username/password

You don't even need to use the built-in API for it. Just make a PHP script and POST to it from your c# application: the script checks if the name exists in the DB -> if yes check if the password matches the hash -> if yes login :)

I've made this before in c# so DM me on Discord if you need more help ;)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users