Skip to content

Commit

Permalink
Make clientSecret undefined rather than an empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnaab committed Aug 9, 2024
1 parent 6b9008b commit d6af3a7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion apps/server-doj/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const createCustomServer = async (): Promise<any> => {
loginGovUrl: 'https://idp.int.identitysandbox.gov',
clientId:
'urn:gov:gsa:openidconnect.profiles:sp:sso:gsa:tts-10x-atj-dev-server-doj',
clientSecret: '', // secrets.loginGovClientSecret,
//clientSecret: '', // secrets.loginGovClientSecret,
},
});
};
Expand Down
2 changes: 1 addition & 1 deletion apps/server-kansas/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const createCustomServer = async (): Promise<any> => {
loginGovUrl: 'https://idp.int.identitysandbox.gov',
clientId:
'urn:gov:gsa:openidconnect.profiles:sp:sso:gsa:tts-10x-atj-dev-server-doj',
clientSecret: '', // secrets.loginGovClientSecret,
//clientSecret: '', // secrets.loginGovClientSecret,
},
});
};
Expand Down
6 changes: 3 additions & 3 deletions packages/auth/src/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ const getAuthorizeEndpoint = (url: LoginGovUrl) =>
export type LoginGovOptions = {
loginGovUrl: LoginGovUrl;
clientId: string;
clientSecret: string;
//clientSecret: string;
redirectURI?: string;
};

export class LoginGov implements OAuth2ProviderWithPKCE {
private client: OAuth2Client;
private clientSecret: string;
//private clientSecret: string;

constructor(opts: LoginGovOptions) {
this.client = new OAuth2Client(
Expand All @@ -32,7 +32,7 @@ export class LoginGov implements OAuth2ProviderWithPKCE {
redirectURI: opts.redirectURI,
}
);
this.clientSecret = opts.clientSecret;
//this.clientSecret = opts.clientSecret;
}

public async createAuthorizationURL(
Expand Down

0 comments on commit d6af3a7

Please sign in to comment.