4 .TH SEND %manext1% "March 24, 2016" "%nmhversion%"
6 mhlogin \- login to external (OAuth) services
23 currently only supports OAuth for Gmail. Run
28 and load the printed URL in your browser. Login to a Gmail account, grant
29 authorization, and copy and paste the code into the
31 prompt. Be sure to use the same account with the
40 to load the URL directly into a new browser session. The command argument
41 must include the browser invocation name, and can include any browser arguments
44 argument string, e.g., 'google-chrome --new-window'.
48 switch can be used to view the HTTP transaction.
50 All parameters configuring the service may be overridden by profile components,
51 and even though only Gmail is supported out of the box, the user can define
52 new services entirely in the profile. Profile components are prefixed by
55 .I oauth-gmail-credential-file
58 should write credentials and where
61 .SH "PROFILE COMPONENTS"
65 .ta \w'ExtraBigProfileName 'u
66 ^oauth-gmail-credential-file:~^oauth-gmail
67 ^oauth-gmail-client_id:~^nmh project client_id
68 ^oauth-gmail-client_secret:~^nmh project client_secret
69 ^oauth-gmail-auth_endpoint:~^https://accounts.google.com/o/oauth2/auth
70 ^oauth-gmail-redirect_uri:~^urn:ietf:wg:oauth:2.0:oob
71 ^oauth-gmail-token_endpoint:~^https://accounts.google.com/o/oauth2/token
72 ^oauth-gmail-scope:~^https://mail.google.com/
78 .RB ` \-saslmech "' xoauth2"