• Majid Valipour's avatar
    [WebID] Add provider API and resolve pending id request · ae722898
    Majid Valipour authored
    This patch introduces the basic API for IDP to provide an id_token.
    The id_token is passed to the pending id request callback.
    
    The callback is simply held as part of UserData for the provider's
    web contents. This works because we create a new web content for each
    request.
    
    To enable this without introducing new content/public changes
    we moved the creation of the idp web contents to occur inside
    FederatedAuthRequestImpl which also adds the callback and then passes it
    to the ui dialog controller.
    
    Bug: 1141125
    
    Change-Id: Ic5d48642c952ac510ce8aa8cfaf53962a916f9ef
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2576432Reviewed-by: default avatarScott Violet <sky@chromium.org>
    Reviewed-by: default avatarKen Buchanan <kenrb@chromium.org>
    Commit-Queue: Majid Valipour <majidvp@chromium.org>
    Auto-Submit: Majid Valipour <majidvp@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#835781}
    ae722898
federated_auth_request_impl.cc 12 KB