+1
-1
.env.example
+1
-1
.env.example
+1
.gitignore
+1
.gitignore
+6
-7
Makefile
+6
-7
Makefile
······
······
+86
-20
cmd/client_test/main.go
+86
-20
cmd/client_test/main.go
······
······+return nil, fmt.Errorf("could not find jwks.json. does it exist? hint: run `go run ./cmd/cmd generate-jwks --prefix demo` to create one.")
+52
cmd/cmd/main.go
+52
cmd/cmd/main.go
···
···
+21
-4
generic.go
+21
-4
generic.go
······
+38
-25
oauth.go
+38
-25
oauth.go
·········func (c *OauthClient) AuthServerDpopJwt(method, url, nonce string, privateJwk jwk.Key) (string, error) {·········func (c *OauthClient) SendParAuthRequest(ctx context.Context, authServerUrl string, authServerMeta *OauthAuthorizationMetadata, loginHint, scope string, dpopPrivateKey jwk.Key) (*SendParAuthResponse, error) {······
·········func (c *OauthClient) AuthServerDpopJwt(method, url, nonce string, privateJwk jwk.Key) (string, error) {·········func (c *OauthClient) SendParAuthRequest(ctx context.Context, authServerUrl string, authServerMeta *OauthAuthorizationMetadata, loginHint, scope string, dpopPrivateKey jwk.Key) (*SendParAuthResponse, error) {······+req2, err := http.NewRequestWithContext(ctx, "POST", parUrl, strings.NewReader(params.Encode()))
+28
-5
oauth_test.go
+28
-5
oauth_test.go
·········
·········+parResp, err := oauthClient.SendParAuthRequest(ctx, authserverUrl, meta, "transition:generic", "atproto", dpopPriv)