Skip to content

Commit 3c1ae81

Browse files
committed
fix: use correct oauth permissions
1 parent f9e5141 commit 3c1ae81

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

angular.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"build": {
2323
"builder": "@angular-devkit/build-angular:browser",
2424
"options": {
25-
"outputPath": "dist/web",
25+
"outputPath": "dist",
2626
"index": "src/index.html",
2727
"main": "src/main.ts",
2828
"polyfills": "src/polyfills.ts",

src/app/app/organizations/edit/edit-organization.component.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ <h3 class="card-title" i18n=@@informations>Informations</h3>
181181
</td>
182182
<td class="action-bar">
183183
<div *ngIf="organization.slackTeam.id <= 0">
184-
<a href="https://slack.com/oauth/v2/authorize?client_id={{ slackClientId }}&scope=chat:write,app_mentions:read,team:read,users:read,im:write,im:history,commands&user_scope=channels:write,users:read&redirect_uri={{ redirectUrlSlackOAuth }}"
184+
<a href="https://slack.com/oauth/v2/authorize?client_id={{ slackClientId }}&scope=app_mentions:read,chat:write,commands,im:history,im:write,team:read,users:read,users:read.email&user_scope=team:read,users:read,users:read.email&redirect_uri={{ redirectUrlSlackOAuth }}"
185185
class="btn btn-social bg-maroon">
186186
<i class="fab fa-slack"></i>
187187
<span i18n="@@addToSlack">Add to Slack</span></a>

src/app/login/login.component.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
</form>
4040
<div class="social-auth-links text-center mt-2 mb-3">
4141
<a *ngIf="slackEnabled"
42-
href="https://slack.com/oauth/v2/authorize?client_id={{ slackClientId }}&user_scope=identity.basic,identity.email,identity.avatar,identity.team&redirect_uri={{ redirectUrlSlackOAuth }}"
42+
href="https://slack.com/oauth/v2/authorize?client_id={{ slackClientId }}&user_scope=team:read,users:read,users:read.email&redirect_uri={{ redirectUrlSlackOAuth }}"
4343
class="btn btn-block bg-maroon">
4444
<i class="fab fa-slack"></i>
4545
<span i18n="@@signInUsingSlack">Sign in using Slack</span>

0 commit comments

Comments
 (0)