Cloud Directory API contains a number of useful APIs. But the documentation suggests that login should be handled with hand written login pages. This is a big hassle.
Is there no way to use Cloud Directory API with delegated login pages? Is it possible to convert a SAML token or OpenID Connect token into an oauth2 token (which both support delegated login)?
One way to go about this would be:
Although this may not satisfy the principle of least privilege (since we have to give our server readall permissions).