added token request management

This commit is contained in:
Abdul Rifqi Al Abqary
2020-01-07 18:46:16 +09:00
parent f847cbe122
commit 161c0b7b88
4 changed files with 181 additions and 47 deletions

View File

@@ -101,6 +101,13 @@ export default {
setOAuthTokenName({ oauth2 }, { index, value }) {
oauth2.tokens[index].name = value;
}
},
addOAuthTokenReq({ oauth2 }, value) {
oauth2.tokenReqs.push(value);
},
removeOAuthTokenReq({ oauth2 }, index) {
oauth2.tokenReqs.splice(index, 1);
}
};

View File

@@ -25,6 +25,9 @@ export default () => ({
},
oauth2: {
tokens: [],
tokenReqs: [],
tokenReqSelect: "",
tokenReqName: "",
accessTokenName: "",
oidcDiscoveryUrl: "",
authUrl: "",