-
Notifications
You must be signed in to change notification settings - Fork 87
Authentication #368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Authentication #368
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Congratulations on your first PR!
I've added comments to some portions but a lot of the comments apply to all files or most files so please take care of them by looking through each file. I'll repeat again, please read through our documentation guidelines and also read how some docs from the current site to understand our language and formatting style as that needs to be improved here! Thanks again.
slug: /code-403-the-caller-does-not-have-permission-status-permission-denied | ||
title: 'Code: 403, The caller does not have permission. status: PERMISSION_DENIED' | ||
--- | ||
# Code: 403, The caller does not have permission. status: PERMISSION_DENIED |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Code: 403, The caller does not have permission. status: PERMISSION_DENIED | |
# Code: 403, The caller does not have permission. Status: PERMISSION_DENIED |
--- | ||
keywords: ['permission', 'permission_denied', 'code'] | ||
slug: /code-403-the-caller-does-not-have-permission-status-permission-denied | ||
title: 'Code: 403, The caller does not have permission. status: PERMISSION_DENIED' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
title: 'Code: 403, The caller does not have permission. status: PERMISSION_DENIED' | |
title: 'Code: 403, The caller does not have permission. Status: PERMISSION_DENIED' |
|
||
## What does this error mean? | ||
|
||
You may encounter this error due to one or more of the following reasons: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's have the error message just before this line and remove the Example Full Error Message section because its gonna be redundant.
The h2 title can also be called "Code 403 Error Message" instead of "What does this error mean"
4. **Regenerate service account keys if needed** | ||
- If you suspect the key is invalid, generate a new one and update your application configuration. | ||
|
||
:::tip[Pro Tip: Always Use Least Privilege Principle] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dont need "Pro Tip" in the title when its already a tip admonition.
--- | ||
# Custom Authentication in FlutterFlow | ||
|
||
**Pre-Requisites to Enabling Custom Authentication:** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check docs guidelines on how to write a pre-requisite in our doc - https://www.notion.so/flutterflow/Docs-Contribution-Guidelines-Shared-Externally-42829c305df441f6b061b4095abac8a8#32ed54d0e6804385b4773a0e61dda14b
|
||
 | ||
|
||
- **Try a different browser** or use **incognito/private browsing mode** to see if the issue persists. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even in this case. Please check the doc contribution guidelines to see when to use bold. Please remove bold from all files here where its not following the guidelines.
|
||
It looks like you are experiencing an issue with using the Firebase Phone Authentication method. To troubleshoot this issue, there are a few things you can try: | ||
|
||
Make sure you have correctly configured the Firebase Phone Authentication method in your app. This includes setting up a project in the Firebase console and adding the necessary dependencies to your app. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These need to be in bullets
The reCAPTCHA flow will only be triggered when SafetyNet is unavailable or your device does not pass suspicion checks. Nonetheless, you should ensure that both scenarios are working correctly. | ||
|
||
Next: | ||
**Release mode**If you're releasing your app to the Play Store, you must add the SHA certificate fingerprints from the Play Console To get the keys for the release app, navigate to **Play Store Console > Your project > Release Management –> App Signing** and copy the **SHA-1** and **SHA-256** keys. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be an admonition
# Sign in with Apple (for web) | ||
|
||
To enable Sign in with Apple on Web, you would have to follow some additional steps in the Apple Developer account and Firebase.These steps are required for Apple to identify the website and provide access to the "Sign in with Apple on Web" functionality.**`"The Sign in with Apple on Web" functionality cannot be tested on Test/Run Mode. You would have to deploy the website first to test this functionality"`** | ||
Steps to follow in Apple Developer Account |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The bold line here, that seems to be a warning. Use admonition in that case.
|
||
To enable Sign in with Apple on Web, you would have to follow some additional steps in the Apple Developer account and Firebase.These steps are required for Apple to identify the website and provide access to the "Sign in with Apple on Web" functionality.**`"The Sign in with Apple on Web" functionality cannot be tested on Test/Run Mode. You would have to deploy the website first to test this functionality"`** | ||
Steps to follow in Apple Developer Account | ||
**Here I will guide you through all the steps you need to follow specifically in the Apple Developer account.****Steps:** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the formatting is completely off in the first paragraph.
The reCAPTCHA flow will only be triggered when SafetyNet is unavailable or your device does not pass suspicion checks. Nonetheless, you should ensure that both scenarios are working correctly. | ||
|
||
:::info[Next] | ||
**Release mode** If you're releasing your app to the Play Store, you must add the SHA certificate fingerprints from the Play Console To get the keys for the release app, navigate to **Play Store Console > Your project > Release Management –> App Signing** and copy the **SHA-1** and **SHA-256** keys. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Next is not a good title. Could have been Release Mode itself?
To enable Sign in with Apple on Web, you would have to follow some additional steps in the Apple Developer account and Firebase.These steps are required for Apple to identify the website and provide access to the "Sign in with Apple on Web" functionality. | ||
|
||
|
||
:::warning[] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dont need to add empty [], just dont add brackets for empty.
|
||
|
||
:::warning[] | ||
`"The Sign in with Apple on Web" functionality cannot be tested on Test/Run Mode. You would have to deploy the website first to test this functionality"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need quote marks here? Or code formatting?
`"The Sign in with Apple on Web" functionality cannot be tested on Test/Run Mode. You would have to deploy the website first to test this functionality"` | ||
::: | ||
|
||
**Steps to follow in Apple Developer Account.** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
**Steps to follow in Apple Developer Account.** | |
**Steps to follow in Apple Developer Account:** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this could just be
##Steps for Apple Developer Account
|
||
**Steps to follow in Apple Developer Account.** | ||
|
||
Here I will guide you through all the steps you need to follow specifically in the Apple Developer account. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check out the language we used in other docs, we don't use first person like "I will guide you"
|
||
Here I will guide you through all the steps you need to follow specifically in the Apple Developer account. | ||
|
||
**Steps:** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Redundant "Steps" part again.
|
||
**Steps to follow in the Firebase App** | ||
|
||
Here are all the steps you need to follow specifically in Firebase Account after downloading the key |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here are all the steps you need to follow specifically in Firebase Account after downloading the key | |
Here are all the steps you need to follow specifically in Firebase Account after downloading the key: |
|
||
8. After following these steps, the setup for Apple Login with Web will be complete. | ||
|
||
**The issue was not resolved** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this could have been a admonition
|
||
If you face any issue while using the Google Sign-in feature from the exported app, then follow the given instructions to resolve them: | ||
|
||
1. **If the App is Pushed to Play Store from FlutterFlow by using CodeMagic deployment:** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please see our community guidelines and search for "bold". we dont use bold for complete sentences. Unless its a topic starter. In this case it sounds like a paragraph sentence.
|
||
This issue should now be resolved. You can now re-test to confirm that the issue has been fixed. | ||
|
||
*You can also refer to the **Google Play Services** documentation for more information.* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we fix the language of this page? There are so many "After that" After this" etc. Lets have numbered bullet points for each and that explains to users that this is a sequential instructions list.
:::tip[Add Your Debug SHA-1 for Local Google Sign-In] | ||
If you're testing Google Sign-In inside FlutterFlow or using the app before deploying to the Play Store, make sure to **add your debug SHA-1 fingerprint** to Firebase. Without this, authentication won't work during development. | ||
|
||
After adding it, don't forget to **regenerate your Firebase config files in FlutterFlow** under `Settings → Firebase → Regenerate Config Files → Generate Files`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check the formatting of this part. remove unnecessary bolds and code formatting.
slug: /how-to-retrieve-the-authenticated-type-from-firebase-auth-in-flutterflow | ||
title: How to retrieve the authenticated type from Firebase auth in Flutterflow | ||
--- | ||
# Retrieve the authenticated type from Firebase auth in Flutterflow |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"in FlutterFlow" is redundant in FlutterFlow docs. Also ensure all we use capitalization for most headers but not for filler words like for, in, the etc.
|
||
In our Flutter app, we can find out which method a user used to authenticate by leveraging Firebase's `User.providerData` property. Let's take a closer look at how this works in the code: | ||
|
||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
``` | |
```js |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See point 10 in guidelines.
|
||
Here's a breakdown of the code: | ||
|
||
- We first import the FirebaseAuth package which gives us access to Firebase's authentication methods. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Firebase Auth should have a hyperlink to the package link from pub.dev
|
||
- Inside the function, we obtain the current user from FirebaseAuth using `FirebaseAuth.instance.currentUser`. | ||
|
||
We then declare a string `signInMethod` that will store the name of the provider used for sign-in. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are the rest not in bullets or numbered bullets? Why did the bullet stop before this?
Description
Added Pro tips, fixed some typos, and created a new image.
Linear ticket and magic word Fixes DEVR-943
Type of change