Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
replaced auth diagrams and storage diagram (#911)
Browse files Browse the repository at this point in the history
  • Loading branch information
saminacodes authored Sep 20, 2023
1 parent f07fd88 commit 3aad476
Show file tree
Hide file tree
Showing 10 changed files with 131 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/onboarding/10 Auth/1 How Auth Works/0 Overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Being able to authenticate and authorize users is a critical part of any web app

A common web2 authentication method involves using JSON Web Tokens (JWTs) to send authentication data between clients and servers. A standard JWT flow looks like the following:

![how-auth-works-1](../assets/how-auth-works-1.png)
![how-auth-works-1](../assets/web2auth-diagram.svg)

Typically, the flow is initiated by a user sending a request to login to an application. This request must contain some data that proves to the server that the user is who they claim to be, which we'll call a **proof-of-identity.** An example of a proof-of-identity is a user sending the server a _username_ and _password_.

Expand Down Expand Up @@ -55,7 +55,7 @@ This is exactly the pattern specified in the Sign-in with Ethereum ([EIP4361](ht

So with this information, we can update the first the simplified diagram we made above to clarify how Auth works:

![how-auth-works-2](../assets/how-auth-works-2.png)
![how-auth-works-2](../assets/web3auth-diagram.svg)

### Authority

Expand All @@ -67,7 +67,7 @@ However, Auth eliminates this dependence on third-parties by using web3 wallets

This enables a truly **self-custodied** authentication flow with no external dependencies. With this information, we can now visualized the Auth flow most accurately:

![how-auth-works-3](../assets/how-auth-works-3.png)
![how-auth-works-3](../assets/auth-diagram.svg)

## Putting it all together

Expand Down
30 changes: 30 additions & 0 deletions docs/onboarding/10 Auth/assets/auth-diagram.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/onboarding/10 Auth/assets/how-auth-works-1.png
Binary file not shown.
Binary file removed docs/onboarding/10 Auth/assets/how-auth-works-2.png
Binary file not shown.
Binary file removed docs/onboarding/10 Auth/assets/how-auth-works-3.png
Binary file not shown.
30 changes: 30 additions & 0 deletions docs/onboarding/10 Auth/assets/web2auth-diagram.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions docs/onboarding/10 Auth/assets/web3auth-diagram.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/onboarding/11 Storage/1 How-it-works.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ Learn how to upload to IPFS using Storage in the Upload Files to IPFS guide.
To read data from IPFS, you need an [IPFS Gateway](https://docs.ipfs.tech/concepts/ipfs-gateway/). This allows you to access data from the IPFS protocol on browsers and other HTTP clients,
such as when building an application using the Contract [SDK](https://portal.thirdweb.com/sdks).

![Screenshot of Gateway diagram](./assets/gateway.png)
![Screenshot of Gateway diagram](./assets/storage-diagram.svg)

When a user requests data from the network, the request is sent to the gateway. The gateway then retrieves the data from the decentralized storage network and returns it to the user.
Binary file removed docs/onboarding/11 Storage/assets/gateway.png
Binary file not shown.
37 changes: 37 additions & 0 deletions docs/onboarding/11 Storage/assets/storage-diagram.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

1 comment on commit 3aad476

@vercel
Copy link

@vercel vercel bot commented on 3aad476 Sep 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.