获取Token:
1、接口地址:https://localhost:44399/connect/token
2、接口需要以:application/x-www-form-urlencoded 的方式调用;
3、接口参数:
//接口参数
{
client_id: 'GasMonitoring_App',
//client_secret: '1q2w3e*',//默认只有GasMonitoring_Web 需要clientsecret密码 看数据库配置
grant_type: 'password',
//scope: 'Mall', //范围 申请token的时候最好不要 范围限制 否则后续调用接口会出现token未授权的情况
username: 'admin', //用户名
password: 'Admin12345*'//密码
}
用postman获取token