mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
UIWebView which aren't able to use the preferred "popup" login flow. See the specs for details: https://meteor.hackpad.com/OAuth-redirect-flow-spec-PeziTcaNPDP https://meteor.hackpad.com/OAuth-redirect-flow-part-II-vswwUKP4vXe I extracted code to construct a URL from the `http` package into a new `url` utility package. The new package has no public API, it simply has the original URL construction functions that were in `http` and makes them available to oauth. Fixes the Meetup account login, as Meetup now requires using "https://api.meetup.com/2/members" instead of "https://secure.meetup.com/2/members". The `?close` parameter for the redirect URI is now not needed or used. For backwards compatibility the `?close` parameter is included if the login service configuration doesn't include the `loginStyle` field (indicating it was created using old code).
32 lines
820 B
HTML
32 lines
820 B
HTML
<template name="configureLoginServiceDialogForGoogle">
|
|
<p>
|
|
First, you'll need to get a Google Client ID. Follow these steps:
|
|
</p>
|
|
<ol>
|
|
<li>
|
|
Visit <a href="https://code.google.com/apis/console/" target="blank">https://code.google.com/apis/console/</a>
|
|
</li>
|
|
<li>
|
|
If necessary, "Create Project"
|
|
</li>
|
|
<li>
|
|
Click "APIs & auth" and "Credentials" on the left
|
|
</li>
|
|
<li>
|
|
Click the "Create New Client ID" button
|
|
</li>
|
|
<li>
|
|
Choose "Web application" as the type
|
|
</li>
|
|
<li>
|
|
Set Authorized Javascript Origins to: <span class="url">{{siteUrl}}</span>
|
|
</li>
|
|
<li>
|
|
Set Authorized Redirect URI to: <span class="url">{{siteUrl}}_oauth/google</span>
|
|
</li>
|
|
<li>
|
|
Click "Create Client ID"
|
|
</li>
|
|
</ol>
|
|
</template>
|