Skip to content

OAuth2: Detect "Need admin approval" #1063

@benbucksch

Description

@benbucksch

Reproduction

  • User tries to install Parula and starts email account setup
  • User enters email address foo@duke.edu
  • We find Office365 and propose EWS. User accepts the default
  • User goes through OAuth2 authentication

Actual result

  • He gets a screen saying "Need admin approval" (see screenshot below)
Image

Expected result

  • We detect the screen above
  • We tell the user that his organization doesn't know about Parula yet, and that we'll try another way.
  • We select OWA instead
  • We try authentication again
  • Login works, setup finishes
  • User gets email
  • User is happy

Fix

  • In OAuth2, we need a way to detect that this approval screen appears
  • The detection should support Microsoft Office365 and Google Suite
  • I will then add code to the Setup sequence to switch to OWA and try again.

Metadata

Metadata

Assignees

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions