Skip to content

Commit

Permalink
fix broken anchors (FusionAuth#2915)
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Patterson <[email protected]>
  • Loading branch information
alex-fusionauth and Alex Patterson authored Feb 27, 2024
1 parent 97c0ae7 commit 3713483
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 14 deletions.
15 changes: 4 additions & 11 deletions .github/scripts/count-repos.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
#!/bin/sh

SHOW_DIFF=0
if [ "$1x" == "-vx" ]; then
SHOW_DIFF=1
fi

# count the repos we have in our example apps page and the number we have in our organization and make sure they match

#fusionauth-containers, fusionauth-theme-helper, etc
EXTRA_IN_JSON_NOT_NAMED_CORRECTLY=4

# fusionauth-example-template and (temporarily) fusionauth-example-vue-sdk
EXTRA_IN_GH_NOT_DISPLAYABLE=2
EXTRA_IN_GH_NOT_DISPLAYABLE=3

cat astro/src/content/json/exampleapps.json|jq '.[]|.url' |sed 's/"//g'|sed 's!https://github.com/!!i' > json.list
COUNT_IN_JSON=`wc -l json.list |sed 's/^ *//' |sed 's/ .*//'`
Expand All @@ -22,10 +17,8 @@ COUNT_EXAMPLE_REPOS=`wc -l ex.list |sed 's/^ *//' |sed 's/ .*//'`
gh repo list fusionauth --no-archived --visibility public -L 300 |grep fusionauth-quickstart | sed 's/\t.*//g'> qs.list
COUNT_QUICKSTART_REPOS=`wc -l qs.list |sed 's/^ *//' |sed 's/ .*//'`

if [ $SHOW_DIFF -eq 1 ]; then
sort json.list > json.sorted
sort ex.list qs.list > gh.sorted
diff json.sorted gh.sorted
fi
sort json.list > json.sorted
sort ex.list qs.list > gh.sorted
diff json.sorted gh.sorted

echo "$COUNT_QUICKSTART_REPOS + $COUNT_EXAMPLE_REPOS - $EXTRA_IN_GH_NOT_DISPLAYABLE - $COUNT_IN_JSON + $EXTRA_IN_JSON_NOT_NAMED_CORRECTLY"|bc
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ cd fusionauth-quickstart-java-android-native

### Configure FusionAuth Instance

Now that you have [exposed your instance](#expose-fusionauth-instance), you need to update the Tenant issuer to make sure it matches the given address.
Now that you have [exposed your instance](#set-up-a-public-url-for-fusionauth), you need to update the Tenant issuer to make sure it matches the given address.

Log into the [FusionAuth admin UI](http://localhost:9011/admin), browse to `Tenants` in the sidebar, click <IconButton icon="edit" color="blue" /> on the **Default** tenant to edit it. Paste the complete address _(with protocol and domain)_ you copied from ngrok into the `Issuer` field (e.g. `https://6d1e-2804-431-c7c9-739-4703-98a7-4b81-5ba6.ngrok-free.app`). Save the application by clicking the <IconButton icon="save" color="blue" /> icon in the top right corner.

Expand Down Expand Up @@ -102,7 +102,7 @@ We'll use the [AppAuth Library](https://github.com/openid/AppAuth-Android), whic

### Configure AppAuth

Modify `app/res/raw/auth_config.json` to use the values provisioned by Kickstart. Update the `discovery_uri` value; change `https://[YOUR-NGROK-MAIN-DOMAIN]` to the URL you wrote when [exposing your instance](#expose-fusionauth-instance).
Modify `app/res/raw/auth_config.json` to use the values provisioned by Kickstart. Update the `discovery_uri` value; change `https://[YOUR-NGROK-MAIN-DOMAIN]` to the URL you wrote when [exposing your instance](#set-up-a-public-url-for-fusionauth).

<RemoteCode url="https://raw.githubusercontent.com/FusionAuth/fusionauth-quickstart-java-android-native/main/complete-application/app/res/raw/auth_config.json"
lang="json"/>
Expand Down
2 changes: 1 addition & 1 deletion astro/src/content/quickstarts/quickstart-react-native.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Install `expo-auth-session`, its dependency `expo-crypto` to handle cryptographi
npx expo install expo-auth-session expo-crypto expo-web-browser
```

Create a `.env` file to hold information about your FusionAuth instance and application, replacing the value in `EXPO_PUBLIC_FUSIONAUTH_URL` with the address you copied from `ngrok` when [exposing your instance](#expose-your-instance).
Create a `.env` file to hold information about your FusionAuth instance and application, replacing the value in `EXPO_PUBLIC_FUSIONAUTH_URL` with the address you copied from `ngrok` when [exposing your instance](#set-up-a-public-url-for-fusionauth).

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

0 comments on commit 3713483

Please sign in to comment.