Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google 2fa fix #9

Merged
merged 4 commits into from
Jun 3, 2016
Merged

Google 2fa fix #9

merged 4 commits into from
Jun 3, 2016

Conversation

eszkadev
Copy link
Contributor

  • parser changed to work with new challenge page structure (tdf#87938)
  • supported aborting in the auth code provider
  • updated gdrive test

if ( strcmp((char*)action, "/signin/challenge") != 0
&& strcmp((char*)action, "/signin/selectchallenge") != 0
&& xmlStrlen(action) > 0 )
bool bChallengePage = ( xmlStrlen( action ) > 0 )
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't see any point in the xmlStrlen check. If action is "", the comparison will fail anyway.

@@ -33,6 +33,11 @@
#include "oauth2-providers.hxx"
#include "http-session.hxx"

#define CHALLENGE_PAGE_ACTION "/signin"
Copy link
Contributor

Choose a reason for hiding this comment

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

Well, what I had on mind was something like

#define STR_LIT_WITH_LEN(str) str, (sizeof(str) - 1)

, but this is good enough...

@dtardon dtardon merged commit d2054a1 into tdf:master Jun 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants