this repo has no description smallweb.run
smallweb
4
fork

Configure Feed

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

improve reserved smallweb uris

pomdtr 1809213c 1cd70519

+4 -4
+4 -4
cmd/up.go
··· 522 522 oauth2Config := &oauth2.Config{ 523 523 ClientID: clientID, 524 524 Scopes: []string{"email"}, 525 - RedirectURL: fmt.Sprintf("https://%s/oauth/callback", r.Host), 525 + RedirectURL: fmt.Sprintf("https://%s/_smallweb/oauth/callback", r.Host), 526 526 Endpoint: oauth2.Endpoint{ 527 527 AuthURL: me.issuerConfig.AuthorizationEndpoint, 528 528 TokenURL: me.issuerConfig.TokenEndpoint, ··· 530 530 }, 531 531 } 532 532 533 - if r.URL.Path == "/oauth/signin" { 533 + if r.URL.Path == "/_smallweb/signin" { 534 534 var successURL string 535 535 if param := r.URL.Query().Get("success_url"); param != "" { 536 536 successURL = fmt.Sprintf("https://%s%s", r.Host, param) ··· 569 569 return 570 570 } 571 571 572 - if r.URL.Path == "/oauth/signout" { 572 + if r.URL.Path == "/_smallweb/signout" { 573 573 http.SetCookie(w, &http.Cookie{ 574 574 Name: "access_token", 575 575 Secure: true, ··· 599 599 return 600 600 } 601 601 602 - if r.URL.Path == "/oauth/callback" { 602 + if r.URL.Path == "/_smallweb/oauth/callback" { 603 603 authCookie, err := r.Cookie("oauth_data") 604 604 if err != nil { 605 605 http.Error(w, "state cookie not found", http.StatusUnauthorized)