Yōten: A social tracker for your language learning journey built on the atproto.

feat(oauth): overload oauth identity directory #31

merged opened by brookjeynes.dev targeting master from push-lnosnywqwrzm
Labels

None yet.

Participants 1
AT URI
at://did:plc:4mj54vc4ha3lh32ksxwunnbh/sh.tangled.repo.pull/3m4fiamdyy222
+7 -1
Diff #0
+4
internal/atproto/resolver.go
··· 53 54 return r.directory.Lookup(ctx, *id) 55 }
··· 53 54 return r.directory.Lookup(ctx, *id) 55 } 56 + 57 + func (r *Resolver) Directory() identity.Directory { 58 + return r.directory 59 + }
+3 -1
internal/server/oauth/oauth.go
··· 58 } 59 60 sessStore := sessions.NewCookieStore([]byte(config.Core.CookieSecret)) 61 62 return &OAuth{ 63 - ClientApp: oauth.NewClientApp(&oauthConfig, authStore), 64 Config: config, 65 SessionStore: sessStore, 66 JwksUri: jwksUri,
··· 58 } 59 60 sessStore := sessions.NewCookieStore([]byte(config.Core.CookieSecret)) 61 + clientApp := oauth.NewClientApp(&oauthConfig, authStore) 62 + clientApp.Dir = idResolver.Directory() 63 64 return &OAuth{ 65 + ClientApp: clientApp, 66 Config: config, 67 SessionStore: sessStore, 68 JwksUri: jwksUri,

History

1 round 0 comments
sign up or login to add to the discussion
brookjeynes.dev submitted #0
1 commit
expand
feat(oauth): overload oauth identity directory
expand 0 comments
pull request successfully merged