需要重新写一下Domain/OpenIddict下的dataseed,原来是通过这个AuthorizationCode方式,重新写改成password,然后进行登录会返回token,后续的请求带上这个token就行了
POST /connect/token HTTP/1.1
Content-Type: application/x-www-form-urlencoded
grant_type=password&
client_id=AbpApp&
client_secret=1q2w3e*&
username=admin&
password=1q2w3E*&
scope=AbpAPI offline_access