Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auth API #88

Merged
merged 14 commits into from
Jul 27, 2022
Merged

Auth API #88

merged 14 commits into from
Jul 27, 2022

Conversation

pedrouid
Copy link
Contributor

First draft to Auth API spec

Related to WalletConnect/walletconnect-docs#253

@pedrouid pedrouid marked this pull request as ready for review July 18, 2022 12:43
auth/request-uri.md Outdated Show resolved Hide resolved
auth/request-uri.md Show resolved Hide resolved
auth/rpc-methods.md Outdated Show resolved Hide resolved
auth/client-api.md Show resolved Hide resolved
auth/client-api.md Outdated Show resolved Hide resolved
auth/client-api.md Show resolved Hide resolved
auth/authentication.md Show resolved Hide resolved
auth/README.md Show resolved Hide resolved
auth/authentication.md Outdated Show resolved Hide resolved
auth/authentication.md Show resolved Hide resolved

B subscribes to pairing topic from provided URI

B receives request and decrypts it with symKey S.
Copy link
Contributor

Choose a reason for hiding this comment

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

It's prob obvious but I'd add that symKey S is retrieved from URI.

auth/authentication.md Show resolved Hide resolved
auth/client-api.md Outdated Show resolved Hide resolved
auth/client-api.md Outdated Show resolved Hide resolved
auth/client-api.md Outdated Show resolved Hide resolved
@pedrouid pedrouid merged commit b1e7956 into main Jul 27, 2022
@pedrouid pedrouid deleted the pedrouid/auth-api branch July 27, 2022 14:15
Comment on lines +6 to +15
interface RequestParams {
chainId: string;
nonce: string;
aud?: string;
nbf?: string;
exp?: string;
statement?: string;
requestId?: string;
resources?: string[];
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
interface RequestParams {
chainId: string;
nonce: string;
aud?: string;
nbf?: string;
exp?: string;
statement?: string;
requestId?: string;
resources?: string[];
}
interface RequestParams {
domain: string;
chainId: string;
nonce: string;
aud: string;
nbf?: string;
exp?: string;
statement?: string;
requestId?: string;
resources?: string[];
}

Copy link
Contributor

@llbartekll llbartekll Jul 28, 2022

Choose a reason for hiding this comment

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

from specs:
uri in siwe is not optional so aud should not be as well
URI: {.p.aud}
domain is required I think

```typescript
interface RespondParams {
topic: string;
signature: CacaoSignature;
Copy link
Contributor

Choose a reason for hiding this comment

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

I think signature may not be enough as requester do not know the whole payload and type.
could we return Cacao instead?

bkrem pushed a commit that referenced this pull request May 23, 2024
chris13524 pushed a commit that referenced this pull request Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants