Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
abbaspour committed Dec 11, 2024
1 parent 4dfee24 commit c92785e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ If you have found a bug or if you have a feature request, please report them at

[Auth0](https://auth0.com)

## Deploy to Netlify
You can deploy this example as a site on your own to explore and experiment with, by clicking this button.
After deploy, install Auth0 by Okta extension in Netlify and follow the steps to create an App.

<a href="https://app.netlify.com/start/deploy?repository=https://github.com/auth0-samples/auth0-angular-samples"><img src="https://www.netlify.com/img/deploy/button.svg" alt="Deploy to Netlify" height=30px></a>

## License

This project is licensed under the MIT license. See the [LICENSE](LICENSE) file for more info.
9 changes: 8 additions & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
[build]
base = "Sample-01"
command = "printf '{\"domain\":\"%s\", \"clientId\":\"%s\", \"apiUri\":\"%s\", \"authorizationParams\":{\"audience\":\"%s\"}}' \"${AUTH0_DOMAIN}\" \"${AUTH0_CLIENT_ID}\" \"${URL}\" \"${AUTH0_AUDIENCE}\"> auth_config.json && npm install && npm run build"
command = """if [ -z "${AUTH0_DOMAIN}" ] || [ -z "${AUTH0_CLIENT_ID}" ] || [ -z "${AUTH0_AUDIENCE}" ]; then
echo "Error: One or more environment variables (AUTH0_DOMAIN, AUTH0_CLIENT_ID, AUTH0_AUDIENCE) are not set or are empty."
exit 1
fi
printf '{\"domain\":\"%s\", \"clientId\":\"%s\", \"apiUri\":\"%s\", \"authorizationParams\":{\"audience\":\"%s\"}}' "${AUTH0_DOMAIN}" "${AUTH0_CLIENT_ID}" "${URL}" "${AUTH0_AUDIENCE}"> auth_config.json
npm install
npm run build
"""
publish = "dist/login-demo"

0 comments on commit c92785e

Please sign in to comment.