-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup! Add generate JWT authentication example
- Loading branch information
1 parent
f91deaf
commit a7ccc91
Showing
31 changed files
with
15 additions
and
15 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Generate an Ably token to authenticate clients | ||
# Generate an Ably Token to authenticate clients | ||
|
||
This folder contains the code for the authentication (Typescript) - a demo of how you can authenticate with [Ably](https://ably.com/docs/auth) to use any of the products. | ||
|
||
|
@@ -13,7 +13,7 @@ git clone [email protected]:ably/docs.git | |
2. Change directory: | ||
|
||
```sh | ||
cd /examples/auth-generate-token/javascript/ | ||
cd /examples/auth-request-token/javascript/ | ||
``` | ||
|
||
3. Install dependencies: | ||
|
@@ -31,7 +31,7 @@ yarn run dev | |
5. In a new tab, change directory: | ||
|
||
```sh | ||
cd /examples/auth-generate-token/server/ | ||
cd /examples/auth-request-token/server/ | ||
``` | ||
|
||
6. Rename the environment file: | ||
|
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...th-generate-token/javascript/package.json → ...uth-request-token/javascript/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
# Generate an Ably token to authenticate clients | ||
# Request an Ably Token to authenticate clients | ||
|
||
Use an Ably token to securely authenticate users within your application. | ||
Use an Ably Token to securely authenticate your users. | ||
|
||
Ably tokens enable you to grant users access to the Ably platform. They are used to issue time-limited credentials that securely authorize users, and manage which resources each user has access to. | ||
Ably Tokens enable you to grant users access to the Ably platform. They are used to issue time-limited credentials that securely authorize users, and manage which resources each user has access to. | ||
|
||
Authentication is the first step for an application to communicate with Ably. The application initializes a client and calls a predefined `authUrl` endpoint on your backend server. This endpoint uses an API key to request a token from Ably and returns it to the requesting client. When the token nears expiry, the `authUrl` is automatically invoked to request a new token. | ||
|
||
Authentication is implemented using [Ably core Pub/Sub](https://ably.com/docs/auth). The Pub/Sub SDK provides authentication capabilities that are shared across all Ably products. The SDK includes purpose-built APIs that streamline pub/sub features while delivering Ably's performance guarantees and scaling capabilities. | ||
Authentication is implemented using [Ably Pub/Sub](https://ably.com/docs/auth). The Pub/Sub SDK provides the authentication mechanism that is utilized by all Ably products. It provides a set of flexible APIs capable of building any realtime application and is powered by Ably's reliable and scalable platform. | ||
|
||
## Resources | ||
|
||
|
@@ -43,7 +43,7 @@ git clone [email protected]:ably/docs.git | |
2. Change directory: | ||
|
||
```sh | ||
cd /examples/auth-generate-token/react/ | ||
cd /examples/auth-request-token/react/ | ||
``` | ||
|
||
3. Install dependencies: | ||
|
@@ -61,7 +61,7 @@ yarn run dev | |
5. In a new tab, change directory: | ||
|
||
```sh | ||
cd /examples/auth-generate-token/server/ | ||
cd /examples/auth-request-token/server/ | ||
``` | ||
|
||
6. Rename the environment file: | ||
|
@@ -97,7 +97,7 @@ git clone [email protected]:ably/docs.git | |
2. Change directory: | ||
|
||
```sh | ||
cd /examples/auth-generate-token/javascript/ | ||
cd /examples/auth-request-token/javascript/ | ||
``` | ||
|
||
3. Install dependencies: | ||
|
@@ -115,7 +115,7 @@ yarn run dev | |
5. In a new tab, change directory: | ||
|
||
```sh | ||
cd /examples/auth-generate-token/server/ | ||
cd /examples/auth-request-token/server/ | ||
``` | ||
|
||
6. Rename the environment file: | ||
|
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Generate a Ably token to authenticate clients | ||
# Generate a Ably Token to authenticate clients | ||
|
||
This folder contains the code for the authentication (React) - a demo of how you can authenticate with [Ably](https://ably.com/docs/auth) to use any of the products. | ||
|
||
|
@@ -13,7 +13,7 @@ git clone [email protected]:ably/docs.git | |
2. Change directory: | ||
|
||
```sh | ||
cd /examples/auth-generate-token/react/ | ||
cd /examples/auth-request-token/react/ | ||
``` | ||
|
||
3. Install dependencies: | ||
|
@@ -31,7 +31,7 @@ yarn run dev | |
5. In a new tab, change directory: | ||
|
||
```sh | ||
cd /examples/auth-generate-token/server/ | ||
cd /examples/auth-request-token/server/ | ||
``` | ||
|
||
6. Rename the environment file: | ||
|
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.
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.
File renamed without changes.
File renamed without changes.