use clientSecret in login flow
This commit is contained in:
parent
c23228f196
commit
8a32731e4d
@ -26,9 +26,10 @@ const LoginForm = {
|
|||||||
this.isTokenAuth ? this.submitToken() : this.submitPassword()
|
this.isTokenAuth ? this.submitToken() : this.submitPassword()
|
||||||
},
|
},
|
||||||
submitToken () {
|
submitToken () {
|
||||||
const { clientId } = this.oauth
|
const { clientId, clientSecret } = this.oauth
|
||||||
const data = {
|
const data = {
|
||||||
clientId,
|
clientId,
|
||||||
|
clientSecret,
|
||||||
instance: this.instance.server,
|
instance: this.instance.server,
|
||||||
commit: this.$store.commit
|
commit: this.$store.commit
|
||||||
}
|
}
|
||||||
|
@ -4,10 +4,11 @@ const oac = {
|
|||||||
props: ['code'],
|
props: ['code'],
|
||||||
mounted () {
|
mounted () {
|
||||||
if (this.code) {
|
if (this.code) {
|
||||||
const { clientId } = this.$store.state.oauth
|
const { clientId, clientSecret } = this.$store.state.oauth
|
||||||
|
|
||||||
oauth.getToken({
|
oauth.getToken({
|
||||||
clientId,
|
clientId,
|
||||||
|
clientSecret,
|
||||||
instance: this.$store.state.instance.server,
|
instance: this.$store.state.instance.server,
|
||||||
code: this.code
|
code: this.code
|
||||||
}).then((result) => {
|
}).then((result) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user