Skip to content

Commit

Permalink
modify callback url
Browse files Browse the repository at this point in the history
  • Loading branch information
mario meltzow committed Aug 6, 2024
1 parent 8ae93d3 commit 7452e0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/services/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {environment} from "../../environments/environment";
export class AuthService {
private clientId = environment.jira_cloud_clientId;
private clientSecret = environment.jira_cloud_clientSecret;
private redirectUri = 'http://localhost:4200/callback';
private redirectUri = environment.jira_cloud_callback_url;
private authUrl = 'https://auth.atlassian.com/authorize';
private tokenUrl = 'https://auth.atlassian.com/oauth/token';
private resourceUrl = 'https://api.atlassian.com/oauth/token/accessible-resources';
Expand Down
1 change: 1 addition & 0 deletions src/environments/set-env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const setEnv = () => {
const envConfigFile = `export const environment = {
jira_cloud_clientId: '${process.env["JIRA_CLOUD_CLIENT_ID"]}',
jira_cloud_clientSecret: '${process.env["JIRA_CLOUD_CLIENT_SECRET"]}',
jira_cloud_callback_url: '${process.env["JIRA_CLOUD_CALLBACK_URL"]}',
appVersion: '${appVersion}',
production: ${process.env["PRODUCTION"]??false},
};
Expand Down

0 comments on commit 7452e0e

Please sign in to comment.