Skip to content

Commit 2a22434

Browse files
author
Greg Bowler
committed
Update example usage
1 parent 146620b commit 2a22434

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,15 @@ With the following PHP code below, you can display a log in button that, when cl
1515
use Authwave\Authenticator;use Gt\Session\SessionArrayWrapper;
1616
require __DIR__ . "/vendor/autoload.php";
1717

18-
// These constants can be loaded from your application's configuration
19-
// or environment variables, and must be created within Authwave.
18+
// This constant can be loaded from your application's configuration
19+
// or environment variables. They are supplied by the remote Authwave provider.
2020
define("CLIENT_KEY", "1234567890abcdef");
21-
define("CLIENT_SECRET", "aaaa-bbbb-cccc-dddd-eeee-ffff");
2221

2322
// Construct the Authenticator class as soon as possible, as this handles the
24-
// Authentication steps passed bia the query string from the remote provider.
23+
// Authentication steps passed via the query string from the remote provider.
2524
$auth = new Authenticator(
2625
CLIENT_KEY, // See above
27-
CLIENT_SECRET, // See above
28-
$_SERVER["REQUEST_URI"] // Redirect URI for after login completes
26+
$_SERVER["REQUEST_URI"]
2927
);
3028

3129
// Handle authentication login/logout action via the querystring:

0 commit comments

Comments
 (0)