Skip to content

Commit

Permalink
Fix login to create tokens of the same scope as account linking
Browse files Browse the repository at this point in the history
  • Loading branch information
denis-yuen committed Jan 4, 2018
1 parent de62380 commit 69a68bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/shared/auth.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
* limitations under the License.
*/

import { Injectable } from '@angular/core';
import { CustomConfig } from 'ng2-ui-auth';

import { Dockstore } from '../shared/dockstore.model';
Expand All @@ -24,7 +23,8 @@ export class AuthConfig extends CustomConfig {
providers = {
github: {
url: Dockstore.API_URI + '/auth/tokens/github',
clientId: Dockstore.GITHUB_CLIENT_ID
clientId: Dockstore.GITHUB_CLIENT_ID,
scope: Dockstore.GITHUB_SCOPE
}
};
}

0 comments on commit 69a68bc

Please sign in to comment.