本文主要是介绍vue请求spring-security-oauth2,oauth/token方法,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
this.$axios({
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
method: 'get',
url: 'http://192.168.196.1:8081/platform-auth/oauth/token?grant_type=password&username=chenjian&password=123456&verifyCode=QTM5&uuid=1430040093883645952',
auth: {
username: '1405784343799996416',
password: '1405784403384279040'
}
}).then(response => {
console.log(response.data.access_token)
console.log(response.data.token_type)
console.log(response.data.refresh_token)
}).catch(err => {
console.log(err)
reject(err)
})
这篇关于vue请求spring-security-oauth2,oauth/token方法的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!