Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

Commit

Permalink
fix(gihub.token): store github token for localhost flow
Browse files Browse the repository at this point in the history
  • Loading branch information
corinnekrych authored and joshuawilson committed Nov 8, 2017
1 parent 586139b commit 2797a90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/auth/authentication.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ export class AuthenticationService {
this.ssoUrl = ssoUrl;
this.realm = realm;
this.openShiftToken = this.createFederatedToken(this.openshift, (response: Response) => response.json() as Token);

// TODO: Remove the conditional block after fabric8-ui's related changes are in master
if ( ! this.apiUrl.startsWith("https://api.") ){
if ( !this.apiUrl.startsWith("https://api.") && !this.apiUrl.startsWith("http://localhost:8080")) {
this.gitHubToken = this.createFederatedToken(this.github, (response: Response) => response.json() as Token);
}
else{
Expand Down

0 comments on commit 2797a90

Please sign in to comment.