去掉用户的禁用功能
This commit is contained in:
@@ -19,7 +19,7 @@ const routes = [
|
|||||||
{
|
{
|
||||||
path: '/',
|
path: '/',
|
||||||
redirect: () => {
|
redirect: () => {
|
||||||
window.location.href ='https://iamuat.faw-vw.com/esc-sso/oauth2.0/authorize?isADSSO=true&response_type=code&client_id=43da19911e74a14dd5d9&redirect_uri='+myUrl
|
window.location.href ='https://iamuat.faw-vw.com/esc-sso/oauth2.0/authorize?client_id=43da19911e74a14dd5d9&response_type=code&redirect_uri=http%3A%2F%2F127.0.0.1%3A8080%2FcheckPage'
|
||||||
}
|
}
|
||||||
// window.location.href = "https://sso-qa.saicmotortest.com/idp/oauth2/authorize?redirect_uri=https://www.baidu.com/&state=gsrm&client_id=GSRM&response_type=code"
|
// window.location.href = "https://sso-qa.saicmotortest.com/idp/oauth2/authorize?redirect_uri=https://www.baidu.com/&state=gsrm&client_id=GSRM&response_type=code"
|
||||||
|
|
||||||
@@ -34,7 +34,8 @@ const routes = [
|
|||||||
path: '/login',
|
path: '/login',
|
||||||
name: 'Login',
|
name: 'Login',
|
||||||
redirect: () => {
|
redirect: () => {
|
||||||
window.location.href ='https://iamuat.faw-vw.com/esc-sso/oauth2.0/authorize/old?isADSSO=true&response_type=code&client_id=&redirect_uri='+myUrl
|
window.location.href ='https://iamuat.faw-vw.com/esc-sso/oauth2.0/authorize?client_id=43da19911e74a14dd5d9&response_type=code&redirect_uri=http%3A%2F%2F127.0.0.1%3A8080%2FcheckPage?redirectUrl='
|
||||||
|
|
||||||
// window.location.href = "https://sso-qa.saicmotortest.com/idp/oauth2/authorize?redirect_uri=https://www.baidu.com/&state=gsrm&client_id=GSRM&response_type=code"
|
// window.location.href = "https://sso-qa.saicmotortest.com/idp/oauth2/authorize?redirect_uri=https://www.baidu.com/&state=gsrm&client_id=GSRM&response_type=code"
|
||||||
}
|
}
|
||||||
// window.location.href = "https://sso-qa.saicmotortest.com/idp/oauth2/authorize?redirect_uri=https://www.baidu.com/&state=gsrm&client_id=GSRM&response_type=code"
|
// window.location.href = "https://sso-qa.saicmotortest.com/idp/oauth2/authorize?redirect_uri=https://www.baidu.com/&state=gsrm&client_id=GSRM&response_type=code"
|
||||||
|
|||||||
@@ -27,7 +27,9 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
getLogin(){
|
getLogin(){
|
||||||
this.$api.sso.ssoLogin({code:this.code}).then(res=>{
|
this.$api.sso.ssoLogin({code:this.code,
|
||||||
|
redirectUrl:'http%3A%2F%2F127.0.0.1%3A8080%2FcheckPage'
|
||||||
|
}).then(res=>{
|
||||||
res.data.roleIdList=res.data.roleEOList.map(item=>{
|
res.data.roleIdList=res.data.roleEOList.map(item=>{
|
||||||
return item.id
|
return item.id
|
||||||
})
|
})
|
||||||
@@ -84,7 +86,10 @@ export default {
|
|||||||
// isADSSO=true&client_id=XXXX&response_type=code&redirect_uri=http%3A%2F%2FXXX.XXXX.XXXX.XXX%3A8080%2FXXXX%2FXXXX&state=http%3A%2F%2Fwww.app1.com%2Ftodu%2F1w2341123
|
// isADSSO=true&client_id=XXXX&response_type=code&redirect_uri=http%3A%2F%2FXXX.XXXX.XXXX.XXX%3A8080%2FXXXX%2FXXXX&state=http%3A%2F%2Fwww.app1.com%2Ftodu%2F1w2341123
|
||||||
if(this.code==''){
|
if(this.code==''){
|
||||||
let myUrl='http%3A%2F%2F127.0.0.1%3A8080%2FcheckPage'
|
let myUrl='http%3A%2F%2F127.0.0.1%3A8080%2FcheckPage'
|
||||||
window.open('https://iamuat.faw-vw.com/esc-sso/oauth2.0/authorize?isADSSO=true&response_type=code&client_id=&redirect_uri=43da19911e74a14dd5d9'+myUrl)
|
// window.location.href ='https://iamuat.faw-vw.com/esc-sso/oauth2.0/authorize?client_id=43da19911e74a14dd5d9&response_type=code&redirect_uri=http%3A%2F%2F127.0.0.1%3A8080%2FcheckPage'
|
||||||
|
window.location.href ='https://iamuat.faw-vw.com/esc-sso/oauth2.0/authorize?client_id=43da19911e74a14dd5d9&response_type=code&redirect_uri=http%3A%2F%2F127.0.0.1%3A8080%2FcheckPage'
|
||||||
|
|
||||||
|
// window.open('https://iamuat.faw-vw.com/esc-sso/oauth2.0/authorize?isADSSO=true&response_type=code&client_id=&redirect_uri=43da19911e74a14dd5d9'+myUrl)
|
||||||
}else{
|
}else{
|
||||||
this.getLogin()
|
this.getLogin()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user