Skip to content

Commit

Permalink
feat: add extraQueryParams to AuthProvider (#890)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasKuratani authored Oct 23, 2022
1 parent 56e1a73 commit 89dc4ea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/AuthContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export const initUserManager = (props: AuthProviderProps): UserManager => {
popupWindowFeatures,
popupRedirectUri,
popupWindowTarget,
extraQueryParams
} = props;
return new UserManager({
authority: authority || '',
Expand All @@ -63,6 +64,7 @@ export const initUserManager = (props: AuthProviderProps): UserManager => {
popup_redirect_uri: popupRedirectUri,
popupWindowTarget: popupWindowTarget,
automaticSilentRenew,
extraQueryParams
});
};

Expand Down
4 changes: 4 additions & 0 deletions src/AuthContextInterface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ export interface AuthProviderProps {
* The URL of the OIDC/OAuth2 provider.
*/
authority?: string;
/**
* Extra query params passed to the authorization url.
*/
extraQueryParams?: Record<string, string>
/**
* Your client application's identifier as registered with the OIDC/OAuth2 provider.
*/
Expand Down

0 comments on commit 89dc4ea

Please sign in to comment.