The above way is too old-fashioned...
First, we need to configure the following content:
Tourists, if you want to see the hidden content of this post, please Reply
Then, we request the POST request /api/Account/Register interface, as follows:
Requested content:
{ "Email": "help@itsvse.com", "Password": "AAAAa123.", "ConfirmPassword": "AAAAa123."
}
Then, the following message was successfully returned:
{ "Email": "help@itsvse.com", "Password": "AAAAa123.", "ConfirmPassword": "AAAAa123."
} Looking at the database, we found that we have successfully registered the user information.
How do I get tokens??????
Let's post interface: http://localhost:1896/token
post content:
Successfully returned the token!!!
{ "access_token": "QHUVRD6B8BHK7lQMdptgu6moxtI13ZWXeGBFJ8laucq0V8knpuHAqgEvwGNrTvic6purdVftRbN7RGY_St0CFefivYREndybcilSa09btXU741m8Y6D480ISChO5CfnkZgcA7Q0m9WgP-I2Bx9OrwZswDJy5I7F39-tv_ 0nAlTxEYQxNgRwKzGvzMdD98sw5jQTpAlb7TuoVDkuVfIjtn01pQvLO8ZTdgNawgHZNauZeNZT52ZxH2Xx7F_9SBa8qLJKmja9xRVrfNMbPgP-C7L4mGa_1YlRsovn0iIeR6S9h_ TMubEpOIEYffwf00tf0BcxXaWtVo6n-y9yIFa5HGcPfR5lp4luNjAHmGHo03XbVLsHhcRxwGJEChRYxFXGCRO6Yh8Jswtwti67ZlF8QbnyRcqfgcy6ZPC8ZjoWDNMGn-n1KxXBvw06nUhPwW0rhfqZtmXA9VaW6NY7UGe98 _SuLb6n4-AYvxY8z90J3lPvDBBU8acfpJkEUjeSDGao4", "token_type": "bearer", "expires_in": 1209599, "userName": "help@itsvse.com", ".issued": "Wed, 26 Oct 2016 06:20:21 GMT", ".expires": "Wed, 09 Nov 2016 06:20:21 GMT"
} Here's how to use the token:
Tourists, if you want to see the hidden content of this post, please Reply
|