Skip to content

Conversation

@nervoustwit
Copy link
Contributor

Closes: #776

This PR will fix looping when trying to log in by passing a flag to the JSConnect JavaScript if it is a Private Community which will not redirect the browser if there is an error.

Also, this PR will add console logging if an Admin has put the JSConnect plugin in Test Mode.

To test

  1. Turn on JSConnect,
  2. configure it to be the Defualt method to log in.
  3. Put Forum into Private Community mode. Break your JSConnect authentication provider so that it does not return a UniqueID.
  4. Try to log in.
  5. Observe insane loop.
  6. Checkout this branch.
  7. Observe an error message when it fails.

Test console logging.

  1. Configure your JSConnect to be in Test Mode.
  2. Observe that when you log in, in the console log there is the Authentication response received.

…en JSConnect fails and site has Private Community turned on.
@blutarch blutarch self-requested a review March 3, 2020 21:57
Copy link
Member

@blutarch blutarch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested this locally and it looks good.

@blutarch blutarch requested a review from a team March 3, 2020 21:58
@nervoustwit nervoustwit added Domain: Registration/Signin Type: Technical Debt A Lannister always pays his debts. Eventually. labels Mar 4, 2020
@nervoustwit nervoustwit self-assigned this Mar 4, 2020
@initvector initvector merged commit a132a40 into master Mar 5, 2020
@initvector initvector deleted the fix/jsconnect-debugging branch March 5, 2020 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Domain: Registration/Signin Type: Technical Debt A Lannister always pays his debts. Eventually.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

JSConnect loops when failing.

4 participants