4 .TH MHLOGIN %manext1% "October 10, 2016" "%nmhversion%"
6 mhlogin \- login to external (OAuth) services
25 currently only supports OAuth for Gmail. Run
32 and load the printed URL in your browser. Login to a Gmail account, grant
33 authorization, and copy and paste the code into the
35 prompt. Be sure to use the same account with the
39 See the EXAMPLES section below for an example.
45 to load the URL directly into a new browser session. The command argument
46 must include the browser invocation name, and can include any browser arguments
49 argument string, e.g., 'google-chrome --new-window'.
53 switch can be used to view the HTTP transaction.
55 All parameters configuring the service may be overridden by profile components,
56 and even though only Gmail is supported out of the box, the user can define
57 new services entirely in the profile. Profile components are prefixed by
60 .I oauth-gmail-credential-file
63 should write credentials and where
69 First, login to the Gmail account that you want to use, e.g, user@example.com,
77 mhlogin -user user@example.com -saslmech xoauth2 -authservice gmail \
78 -browser 'google-chrome --new-window'
84 should be a complete email address.
85 Respond to the prompt in the browser window, then copy and paste the
86 authorization code in response to the
89 .SH "PROFILE COMPONENTS"
93 .ta \w'ExtraBigProfileName 'u
94 ^oauth-gmail-credential-file:~^oauth-gmail
95 ^oauth-gmail-client_id:~^nmh project client_id
96 ^oauth-gmail-client_secret:~^nmh project client_secret
97 ^oauth-gmail-auth_endpoint:~^https://accounts.google.com/o/oauth2/auth
98 ^oauth-gmail-redirect_uri:~^urn:ietf:wg:oauth:2.0:oob
99 ^oauth-gmail-token_endpoint:~^https://accounts.google.com/o/oauth2/token
100 ^oauth-gmail-scope:~^https://mail.google.com/
106 .RB ` \-saslmech "' xoauth2"