Base solution for your next web application
Open Closed

Use OAuthBearerAuthentication with normal http post request. #2736


User avatar
0
thiens0n created

Hi bro, I'm integartion my system using Aspnetzero with my partner Application. They need I develop function Authenticate. They's requirement: At first time: they will make POST http request to my system with parameter: { Username: "string", Password: "string" } they want I reponse for they: { Status: int, AccessToken: "String" } At second time: They make http post request to my system. "THEY CAN NOT CHANGE CODE FOR ADD 'Authorization: Bearer xxxx' TO HEADERS" { AccessToken: "string" } THEY WANT I RESPONSE USER INFO IF TOKEN VALID How do use /api/account/authenticate for this requirement?

Thanks all response


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    How the second application is going to send access token to your appliction with the second request ? I didn't understand this part, can you explain it ?

    They need to send access token when calling your api somehow.

    Thanks.