Skip to content
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

added a section to support first time setup wizard #3040

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions astro/src/content/quickstarts/_run-fusionauth-other.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
If you plan on running FusionAuth another way, check out our [downloads page](/download). When you start FusionAuth for the first time, go through the First-time Setup wizard - you'll see it at the top of the main Dashboard page. At the end of First-time Setup, you'll find the information you need for the quickstart configuration on the Summary page at the end of the wizard. You'll need to:
1. Take those values and use them in the `.env` config file

Check failure on line 2 in astro/src/content/quickstarts/_run-fusionauth-other.mdx

View workflow job for this annotation

GitHub Actions / runner / vale

[vale] reported by reviewdog 🐶 [Vale.Spelling] Did you really mean 'config'? Raw Output: {"message": "[Vale.Spelling] Did you really mean 'config'?", "location": {"path": "astro/src/content/quickstarts/_run-fusionauth-other.mdx", "range": {"start": {"line": 2, "column": 49}}}, "severity": "ERROR"}
Copy link
Collaborator

Choose a reason for hiding this comment

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

config is in the knownwords.txt so I am not sure what vale's problem is

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

sometimes i think vale's check must be inverted, it complains about so much :-)

2. Update your application in FusionAuth
1. Go to the Applications area in FusionAuth and edit your application
2. On the OAuth tab, set the `Authorized Redirect URLs` to `http://localhost:5000/callback`
Copy link
Contributor

Choose a reason for hiding this comment

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

We will want to send in the URL to this component so that it matches the rest of the quickstart.

3. Click Save
9 changes: 7 additions & 2 deletions astro/src/content/quickstarts/quickstart-python-flask-web.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import LoginArchitectureWeb from '/src/components/quickstarts/LoginArchitectureW
import NextSteps from '/src/components/quickstarts/NextSteps.astro';
import {RemoteCode} from '@fusionauth/astro-components';
import QuickstartTshirtCTA from '/src/components/quickstarts/QuickstartTshirtCTA.astro'
import RunFusionAuthAnotherWay from 'src/content/quickstarts/_run-fusionauth-other.mdx';

<Intro technology={`${frontmatter.language} and ${frontmatter.technology}`}
repositoryUrl="https://github.com/FusionAuth/fusionauth-quickstart-python-flask-web"/>
Expand All @@ -45,10 +46,14 @@ git clone https://github.com/FusionAuth/fusionauth-quickstart-python-flask-web.g
cd fusionauth-quickstart-python-flask-web
```

### Run FusionAuth via Docker
### Run FusionAuth

#### Run FusionAuth via Docker
<DockerSpinup kickstartUri={frontmatter.codeRoot + "/kickstart/kickstart.json"} />

#### Run FusionAuth Another Way
<RunFusionAuthAnotherWay />

### Create your Flask Application

In this section, you'll set up a basic Flask application with a single page. While this section builds a simple Python / Flask application, you can use the same method to integrate your existing application with FusionAuth.
Expand Down Expand Up @@ -77,7 +82,7 @@ pip install -r requirements.txt

Now create your Flask app, which for now will consist of an environment file named `.env` and a Python file named `server.py`.

Create the environment file with these contents:
If you're using the included Docker setup for running FusionAuth, create the environment file with the following contents. If you've chosen to run FusionAuth another way, you'll need to get this information from the First-time Setup wizard or from your application's View dialog.

`.env`
<RemoteCode url={frontmatter.codeRoot + "/complete-application/.env"}
Expand Down