Skip to content

Commit

Permalink
Fix processing for prompt select_account with consent
Browse files Browse the repository at this point in the history
Multiple prompt values are allowed and this change fixes the check for
select_account if it was used together with other prompt values. Where
select_account previously was ignored, it is now processed as required,
fixing the use case when a RP wants to trigger select_account first
while at the same time wants also to request interactive consent.
  • Loading branch information
longsleep authored and IljaN committed Nov 2, 2020
1 parent e13b2ef commit 1bf5852
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion konnectd/ui/src/containers/Login/Login.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class Login extends React.PureComponent {
componentDidMount() {
const { hello, query, dispatch, history } = this.props;
if (hello && hello.state && history.action !== 'PUSH') {
if (query.prompt !== 'select_account') {
if (!query.prompt || query.prompt.indexOf('select_account') == -1) {
dispatch(advanceLogonFlow(true, history));
return;
}
Expand Down

0 comments on commit 1bf5852

Please sign in to comment.