File tree Expand file tree Collapse file tree 4 files changed +26
-4
lines changed
src/components/slack_login Expand file tree Collapse file tree 4 files changed +26
-4
lines changed Original file line number Diff line number Diff line change 1
1
SLACK_CLIENT_SECRET = " 6a6206cc93da2e49243ee9683f958438"
2
2
SLACK_CLIENT_ID = " 2696943977700.2696948669268"
3
- SLACK_REDIRECT_URI = " overvue://slack"
3
+ SLACK_REDIRECT_URI = " overvue://slack"
4
+
5
+ # SLACK_CLIENT_ID = 2863575808677.2851894215719
6
+ # SLACK_CLIENT_SECRET = "f2298f5fbb83d842616711d19c829a45"
7
+ # SLACK_REDIRECT_URI = "overvue://slack"
Original file line number Diff line number Diff line change 1
1
SLACK_CLIENT_SECRET = " 6a6206cc93da2e49243ee9683f958438"
2
2
SLACK_CLIENT_ID = " 2696943977700.2696948669268"
3
- SLACK_REDIRECT_URI = " overvuedev://test"
3
+ SLACK_REDIRECT_URI = " overvuedev://test"
4
+
5
+ # SLACK_CLIENT_ID = "2863575808677.2851894215719"
6
+ # SLACK_CLIENT_SECRET = "f2298f5fbb83d842616711d19c829a45"
7
+ # SLACK_REDIRECT_URI = "overvuedev://test"
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ function createWindow () {
133
133
useContentSize : true ,
134
134
webPreferences : {
135
135
contextIsolation : true ,
136
- nodeIntegration : true ,
136
+ // nodeIntegration: true,
137
137
// More info: /quasar-cli/developing-electron-apps/electron-preload-script
138
138
preload : path . resolve ( __dirname , process . env . QUASAR_ELECTRON_PRELOAD )
139
139
}
Original file line number Diff line number Diff line change @@ -139,11 +139,25 @@ export default {
139
139
const clientId = process .env .SLACK_CLIENT_ID ;
140
140
141
141
this .isAuthenticating = true ;
142
+
143
+ // Tests
144
+ // console.log(`${slackBaseUrl}?scope=${scope}&redirect_uri=${redirectUri}&client_id=${clientId}`)
145
+ // console.log(redirectUri.slice(1, redirectUri.length - 1))
146
+ const trimmedUri = redirectUri .slice (1 , redirectUri .length - 1 );
147
+ const trimmedClientId = clientId .slice (1 , clientId .length - 1 );
148
+ console .log (` ${ slackBaseUrl} ?scope=${ scope} &redirect_uri=${ trimmedUri} &client_id=${ trimmedClientId} ` )
142
149
143
150
// console.log("clicked");
151
+ // **************** ok
152
+ // shell.openExternal(
153
+ // // `${slackBaseUrl}?response_type=${responseType}&scope=${scope}&client_id=${clientId}&redirect_uri=${redirectUri}`,
154
+ // `${slackBaseUrl}?scope=${scope}&redirect_uri=${redirectUri}&client_id=${clientId}`,
155
+ // { activate: true }
156
+ // );
157
+ // ****************** test
144
158
shell .openExternal (
145
159
// `${slackBaseUrl}?response_type=${responseType}&scope=${scope}&client_id=${clientId}&redirect_uri=${redirectUri}`,
146
- ` ${ slackBaseUrl} ?scope=${ scope} &redirect_uri=${ redirectUri } &client_id=${ clientId } ` ,
160
+ ` ${ slackBaseUrl} ?scope=${ scope} &redirect_uri=${ trimmedUri } &client_id=${ trimmedClientId } ` ,
147
161
{ activate: true }
148
162
);
149
163
},
You can’t perform that action at this time.
0 commit comments