• Fabian Sommer's avatar
    Add policies for logout on smart card removal · afc265a0
    Fabian Sommer authored
    This CL implements the core part of SecurityTokenSessionController.
    The controller observes security tokens and triggers lock / logout when
    a token that was used for login is removed, alongside UI implemented in
    previous CLs.
    
    This behavior can be controlled by the SecurityTokenSessionBehavior and
    SecurityTokenSessionNotificationSeconds policies, which this CL
    activates.
    
    This CL also adds browser tests for both policies. In doing so, it also
    adds a test for SecurityTokenRestrictionView.
    
    The CL renames the should_fail_certificate_requests property in
    TestCertificateProviderExtension to should_provide_certificates,
    which more accurately reflects its purpose.
    
    Fixed: 1131450
    Change-Id: I8cf4e25fbbcb8ae4ab607ace254a85197f594f5a
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2632990
    Commit-Queue: Fabian Sommer <fabiansommer@chromium.org>
    Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
    Reviewed-by: default avatarMaksim Ivanov <emaxx@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#846276}
    afc265a0
security_token_session_controller.cc 16 KB