Skip to content
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.

added google OAuth provider guide #404

Open
wants to merge 2 commits into
base: oauth-providers
Choose a base branch
from

Conversation

Dksie09
Copy link

@Dksie09 Dksie09 commented Aug 6, 2023

What does this PR do?

Provides a detailed guide for adding Google OAuth

Have you read the Contributing Guidelines on issues?

Yes


client
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.setProject("[PROJECT_ID]"); // Your project ID
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line up the comments like the other examples :D


## Creating a Google OAuth2.0 client

To use Google OAuth with Appwrite, you need to create an OAuth 2.0 client from your google cloud console. You can do this by following the [Setting up OAuth 2.0](https://support.google.com/googleapi/answer/6158849) guide from Google.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
To use Google OAuth with Appwrite, you need to create an OAuth 2.0 client from your google cloud console. You can do this by following the [Setting up OAuth 2.0](https://support.google.com/googleapi/answer/6158849) guide from Google.
To use Google OAuth with Appwrite, you need to create an OAuth 2.0 client from your Google Cloud console. You can do this by following the [Setting up OAuth 2.0](https://support.google.com/googleapi/answer/6158849) guide from Google.


To use Google OAuth with Appwrite, you need to create an OAuth 2.0 client from your google cloud console. You can do this by following the [Setting up OAuth 2.0](https://support.google.com/googleapi/answer/6158849) guide from Google.

- When prompted to provide an **Application type**, select **web application**, irrespective of your target platform. This is because the communication occurs between Appwrite (a Web App) and the OAuth2 provider.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- When prompted to provide an **Application type**, select **web application**, irrespective of your target platform. This is because the communication occurs between Appwrite (a Web App) and the OAuth2 provider.
- When prompted to provide an **Application type**, select **web application**, irrespective of your target platform. This is because the communication occurs between Appwrite (a web app) and the OAuth2 provider on behalf of your web or mobile app.

final client = new Client();
final account = new Account(client);
client
.setEndpoint('https://cloud.appwrite.io/v1') // YOUR API Endpoint
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comments don't need to be all caps ;)

@Dksie09 Dksie09 requested a review from gewenyu99 August 11, 2023 01:26
Copy link

@Haimantika Haimantika left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes look good!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants