Skip to content

Commit

Permalink
send publicUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
erral committed Mar 12, 2024
1 parent 5fa3168 commit c113e2c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/actions/auth/oidc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
* OIDC Login
* @module actions/auth/oidc
*/
import config from '@plone/volto/registry';
import { LOGIN, LOGOUT_OIDC, OIDC_REDIRECT } from '../../constants/ActionTypes';

/**
Expand All @@ -11,11 +12,13 @@ import { LOGIN, LOGOUT_OIDC, OIDC_REDIRECT } from '../../constants/ActionTypes';
* @returns {Object} OIDC redirect action.
*/
export function oidcRedirect(providerId) {
const publicUrl = config.settings.publicURL;

return {
type: OIDC_REDIRECT,
request: {
op: 'get',
path: `@login-oidc/${providerId}`,
path: `@login-oidc/${providerId}?publicUrl=${publicUrl}`,
},
};
}
Expand Down

0 comments on commit c113e2c

Please sign in to comment.