Skip to content

Commit

Permalink
Renamed to token auth directory; Fixed link
Browse files Browse the repository at this point in the history
  • Loading branch information
jsernaque committed Aug 9, 2024
1 parent c8f3c32 commit d130e99
Show file tree
Hide file tree
Showing 29 changed files with 8 additions and 8 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# Next.js Demo of Edgio Token Auth Functionality
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).

## Pages Available
## Available Pages
This application exposes a few separate pages and one API endpoint:

* Main Page `/`: This page does not require an auth token.
* 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.
* Main Page `/`: This page does not require a token.
* Token Auth Landing Page `/secure`: This page does not require a token. All links on this page require a valid token.
* Static Secure Page `/secure/static`: This page shows static data.
* Static Dynamic Page `/secure/dynamic`: This page shows dynamic data fetched from a third-party API.
* Token Generator/Decoder `/secure/generator`: This page allows the visitor to create and decode `ectoken`-compatible tokens.
* Current Token Information `/secure/info`: This page shows the decoded information about the token used to access the page.
* 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.
* 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.

## How to Use
1. Navigate to the project homepage and click the link for the "Landing Page."
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
connector: '@edgio/next',
organization: 'se-apps',
organization: 'edgio-community',
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"start": "next start",
"lint": "next lint"
},
"name": "edgio-token-auth-example",
"name": "edgio-v7-token-auth-example",
"version": "0.1.0",
"private": true,
"dependencies": {
Expand All @@ -28,5 +28,5 @@
"postcss": "^8",
"tailwindcss": "^3.4.1"
},
"repository": "[email protected]:edgio-docs/edgio-token-auth-example.git"
"repository": "[email protected]:edgio-docs/edgio-v7-token-auth-example.git"
}
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default new Router()
{
response: {
set_response_body:
"<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>",
"<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>",
set_status_code: 403
},
}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit d130e99

Please sign in to comment.