this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

move and rename oauth demo code

+8 -6
+3 -3
atproto/auth/cmd/atp-oauth-demo/base.html atproto/auth/oauth/cmd/oauth-web-demo/base.html
··· 6 6 <meta name="referrer" content="origin-when-cross-origin"> 7 7 <meta name="viewport" content="width=device-width, initial-scale=1"> 8 8 <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.classless.purple.min.css"> 9 - <title>atp-oauth-demo: indigo atproto oauth demo</title> 9 + <title>atproto OAuth demo (indigo)</title> 10 10 </head> 11 11 <body> 12 12 <header> 13 13 <hgroup> 14 - <h1>atp-oauth-demo: indigo atproto oauth demo</h1> 14 + <h1>atproto OAuth demo (indigo)</h1> 15 15 {{ if false }} 16 16 <p>Hello <span style="font-family: monospace;">@{{ "handle" }}</span>!</p> 17 17 {{ end }} ··· 25 25 {{ else }} 26 26 <li><a href="/oauth/login">Login</a> 27 27 {{ end }} 28 - <li><a href="https://github.com/bluesky-social/indigo">Code</a> 28 + <li><a href="https://github.com/bluesky-social/indigo/tree/main/atproto/auth/oauth">Code</a> 29 29 </ul> 30 30 </nav> 31 31 </header>
atproto/auth/cmd/atp-oauth-demo/home.html atproto/auth/oauth/cmd/oauth-web-demo/home.html
atproto/auth/cmd/atp-oauth-demo/login.html atproto/auth/oauth/cmd/oauth-web-demo/login.html
+5 -3
atproto/auth/cmd/atp-oauth-demo/main.go atproto/auth/oauth/cmd/oauth-web-demo/main.go
··· 9 9 "net/http" 10 10 "os" 11 11 12 + _ "github.com/joho/godotenv/autoload" 13 + 12 14 "github.com/bluesky-social/indigo/atproto/auth/oauth" 13 15 "github.com/bluesky-social/indigo/atproto/crypto" 14 16 "github.com/bluesky-social/indigo/atproto/identity" ··· 20 22 21 23 func main() { 22 24 app := cli.App{ 23 - Name: "atp-oauth-demo", 24 - Usage: "demo OAuth web server", 25 + Name: "oauth-web-demo", 26 + Usage: "atproto OAuth web server demo", 25 27 Action: runServer, 26 28 Flags: []cli.Flag{ 27 29 &cli.StringFlag{ ··· 148 150 149 151 scope := "atproto transition:generic" 150 152 meta := s.OAuth.Config.ClientMetadata(scope) 151 - meta.JWKSUri = strPtr(fmt.Sprintf("https://%s/oauth/jwks.json", r.Host)) 153 + // TODO: meta.JWKSUri = strPtr(fmt.Sprintf("https://%s/oauth/jwks.json", r.Host)) 152 154 meta.ClientName = strPtr("indigo atp-oauth-demo") 153 155 meta.ClientURI = strPtr(fmt.Sprintf("https://%s", r.Host)) 154 156
atproto/auth/cmd/atp-oauth-demo/post.html atproto/auth/oauth/cmd/oauth-web-demo/post.html