Skip to content

Commit d130e99

Browse files
committed
Renamed to token auth directory; Fixed link
1 parent c8f3c32 commit d130e99

29 files changed

+8
-8
lines changed
File renamed without changes.

examples/token-auth/README.md examples/v7-token-auth-example/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# Next.js Demo of Edgio Token Auth Functionality
22
This project demonstrates how Token Auth works with Edgio. For more details on this feature, visit [the docs](https://docs.edg.io/applications/v7/security/token_auth).
33

4-
## Pages Available
4+
## Available Pages
55
This application exposes a few separate pages and one API endpoint:
66

7-
* Main Page `/`: This page does not require an auth token.
8-
* Token Auth Landing Page `/secure`: This page does not require an auth token. All links on this page (except for the link to the homepage) DO require a valid token.
7+
* Main Page `/`: This page does not require a token.
8+
* Token Auth Landing Page `/secure`: This page does not require a token. All links on this page require a valid token.
99
* Static Secure Page `/secure/static`: This page shows static data.
1010
* Static Dynamic Page `/secure/dynamic`: This page shows dynamic data fetched from a third-party API.
1111
* Token Generator/Decoder `/secure/generator`: This page allows the visitor to create and decode `ectoken`-compatible tokens.
1212
* Current Token Information `/secure/info`: This page shows the decoded information about the token used to access the page.
13-
* API route `/api/token`: This API route takes a GET request and returns a new token valid for all users but only for three minutes from when it was generated.
13+
* API route `/api/token`: This API route takes a `GET` request and returns a new token valid for all users but only for three minutes from when it was generated.
1414

1515
## How to Use
1616
1. Navigate to the project homepage and click the link for the "Landing Page."
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module.exports = {
22
connector: '@edgio/next',
3-
organization: 'se-apps',
3+
organization: 'edgio-community',
44
}
File renamed without changes.

examples/token-auth/package.json examples/v7-token-auth-example/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"start": "next start",
99
"lint": "next lint"
1010
},
11-
"name": "edgio-token-auth-example",
11+
"name": "edgio-v7-token-auth-example",
1212
"version": "0.1.0",
1313
"private": true,
1414
"dependencies": {
@@ -28,5 +28,5 @@
2828
"postcss": "^8",
2929
"tailwindcss": "^3.4.1"
3030
},
31-
"repository": "[email protected]:edgio-docs/edgio-token-auth-example.git"
31+
"repository": "[email protected]:edgio-docs/edgio-v7-token-auth-example.git"
3232
}

examples/token-auth/routes.js examples/v7-token-auth-example/routes.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default new Router()
2525
{
2626
response: {
2727
set_response_body:
28-
"<h1>403 - Access Denied</h1><p>Your request requires a valid token to proceed. Please append it to the URL and try again.</p><p><a href="/secure">Return to the Token Auth landing page.</a></p>",
28+
"<h1>403 - Access Denied</h1><p>Your request requires a valid token to proceed. Please append it to the URL and try again.</p><p><a href='/secure'>Return to the Token Auth landing page.</a></p>",
2929
set_status_code: 403
3030
},
3131
}

0 commit comments

Comments
 (0)