4 .TH MHLOGIN %manext1% "April 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
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
65 .SH "PROFILE COMPONENTS"
69 .ta \w'ExtraBigProfileName 'u
70 ^oauth-gmail-credential-file:~^oauth-gmail
71 ^oauth-gmail-client_id:~^nmh project client_id
72 ^oauth-gmail-client_secret:~^nmh project client_secret
73 ^oauth-gmail-auth_endpoint:~^https://accounts.google.com/o/oauth2/auth
74 ^oauth-gmail-redirect_uri:~^urn:ietf:wg:oauth:2.0:oob
75 ^oauth-gmail-token_endpoint:~^https://accounts.google.com/o/oauth2/token
76 ^oauth-gmail-scope:~^https://mail.google.com/
82 .RB ` \-saslmech "' xoauth2"