Skip to content

Commit

Permalink
Merge pull request #83 from Amialc/dependencies_update
Browse files Browse the repository at this point in the history
deleted uneccessary code, fixed typos
  • Loading branch information
glena committed May 9, 2016
2 parents 4fc2ea8 + 6d3ac7d commit e6e5ff1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
4 changes: 2 additions & 2 deletions examples/basic-webapp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This example is deployed at Heroku at [http://php-webapp.herokuapp.com/](http://
#Running the example
In order to run the example you need to have `composer` and `php` installed.

You also need to set the ClientSecret, ClientId, Domain and Callback URL for your Auth0 app as enviroment variables with the following names respectively: `AUTH0_CLIENT_SECRET`, `AUTH0_CLIENT_ID`, `AUTH0_DOMAIN` and `AUTH0_CALLBACK_URL`.
You also need to set the ClientSecret, ClientId, Domain and Callback URL for your Auth0 app as environment variables with the following names respectively: `AUTH0_CLIENT_SECRET`, `AUTH0_CLIENT_ID`, `AUTH0_DOMAIN` and `AUTH0_CALLBACK_URL`.

For that, if you just create a file named `.env` in the directory and set the values like the following, the app will just work:

Expand All @@ -18,7 +18,7 @@ AUTH0_DOMAIN=yourDomain.auth0.com
AUTH0_CALLBACK_URL=http://your.url/
````

Once you've set those 4 enviroment variables, just run the following to get the app started:
Once you've set those 4 environment variables, just run the following to get the app started:

````bash
composer install
Expand Down
8 changes: 0 additions & 8 deletions examples/basic-webapp/dotenv-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,3 @@
} catch(InvalidArgumentException $ex) {
// Ignore if no dotenv
}








3 changes: 1 addition & 2 deletions examples/basic-webapp/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@
<script>
var AUTH0_CLIENT_ID = '<?php echo getenv("AUTH0_CLIENT_ID") ?>';
var AUTH0_DOMAIN = '<?php echo getenv("AUTH0_DOMAIN") ?>';
var AUTH0_CALLBACK_URL = '<?php echo is_null(getenv("AUTH0_CALLBACK_URL")) ?
"http://localhost:3000/index.php" : getenv("AUTH0_CALLBACK_URL") ?>';
var AUTH0_CALLBACK_URL = '<?php echo getenv("AUTH0_CALLBACK_URL") ?>';
</script>


Expand Down

0 comments on commit e6e5ff1

Please sign in to comment.