Skip to content

Commit

Permalink
included auth Options in createBodyForParCodeFlowRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
izahirclemencia committed Aug 17, 2023
1 parent bdc6d1d commit 0d80875
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,7 @@ export class UrlService {

createBodyForParCodeFlowRequest(
configuration: OpenIdConfiguration,
authOptions?: AuthOptions,
customParamsRequest?: { [key: string]: string | number | boolean }
): Observable<string> {
authOptions?: AuthOptions): Observable<string> {
const redirectUrl = this.getRedirectUrl(configuration, authOptions);

if (!redirectUrl) {
Expand Down Expand Up @@ -353,8 +351,8 @@ export class UrlService {
);
}

if (customParamsRequest) {
params = this.appendCustomParams({ ...customParamsRequest }, params);
if (authOptions.customParams) {
params = this.appendCustomParams({ ...authOptions.customParams }, params);
}

return params.toString();
Expand Down

0 comments on commit 0d80875

Please sign in to comment.