4 .TH MHLOGIN %manext1% "September 11, 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
44 to load the URL directly into a new browser session. The command argument
45 must include the browser invocation name, and can include any browser arguments
48 argument string, e.g., 'google-chrome --new-window'.
52 switch can be used to view the HTTP transaction.
54 All parameters configuring the service may be overridden by profile components,
55 and even though only Gmail is supported out of the box, the user can define
56 new services entirely in the profile. Profile components are prefixed by
59 .I oauth-gmail-credential-file
62 should write credentials and where
68 First, login to the Gmail account that you want to use, e.g, user@example.com,
76 mhlogin -user user@example.com -saslmech xoauth2 -authservice gmail \
77 -browser 'google-chrome --new-window'
81 Respond to the prompt in the browser window, then copy and paste the
82 authorization code in response to the
85 .SH "PROFILE COMPONENTS"
89 .ta \w'ExtraBigProfileName 'u
90 ^oauth-gmail-credential-file:~^oauth-gmail
91 ^oauth-gmail-client_id:~^nmh project client_id
92 ^oauth-gmail-client_secret:~^nmh project client_secret
93 ^oauth-gmail-auth_endpoint:~^https://accounts.google.com/o/oauth2/auth
94 ^oauth-gmail-redirect_uri:~^urn:ietf:wg:oauth:2.0:oob
95 ^oauth-gmail-token_endpoint:~^https://accounts.google.com/o/oauth2/token
96 ^oauth-gmail-scope:~^https://mail.google.com/
102 .RB ` \-saslmech "' xoauth2"