<clientConfig version="1.1">
    <emailProvider id="umich.edu">
        <domain>umich.edu</domain>
        <displayName>University of Michigan</displayName>
        <displayShortName>UMich</displayShortName>
        <incomingServer type="imap">
            <hostname>imap.gmail.com</hostname>
            <port>993</port>
            <socketType>SSL</socketType>
            <username>%EMAILADDRESS%</username>
            <authentication>OAuth2</authentication>
            <authentication>password-cleartext</authentication>
        </incomingServer>
        <outgoingServer type="smtp">
            <hostname>smtp.gmail.com</hostname>
            <port>465</port>
            <socketType>SSL</socketType>
            <username>%EMAILADDRESS%</username>
            <authentication>OAuth2</authentication>
            <authentication>password-cleartext</authentication>
        </outgoingServer>
    </emailProvider>

    <oAuth2>
        <issuer>accounts.google.com</issuer>
        <!--  https://developers.google.com/identity/protocols/oauth2/scopes  -->
        <scope>https://mail.google.com/ https://www.googleapis.com/auth/contacts https://www.googleapis.com/auth/calendar https://www.googleapis.com/auth/carddav</scope>
        <authURL>https://accounts.google.com/o/oauth2/auth</authURL>
        <tokenURL>https://www.googleapis.com/oauth2/v3/token</tokenURL>
    </oAuth2>
</clientConfig>
