mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 10:42:24 -05:00 
			
		
		
		
	[chore]: Bump github.com/coreos/go-oidc/v3 from 3.6.0 to 3.7.0 (#2284)
Bumps [github.com/coreos/go-oidc/v3](https://github.com/coreos/go-oidc) from 3.6.0 to 3.7.0. - [Release notes](https://github.com/coreos/go-oidc/releases) - [Commits](https://github.com/coreos/go-oidc/compare/v3.6.0...v3.7.0) --- updated-dependencies: - dependency-name: github.com/coreos/go-oidc/v3 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
		
					parent
					
						
							
								9114c5ca1b
							
						
					
				
			
			
				commit
				
					
						3dcc94940d
					
				
			
		
					 97 changed files with 272 additions and 8585 deletions
				
			
		
							
								
								
									
										29
									
								
								vendor/google.golang.org/appengine/internal/api_classic.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										29
									
								
								vendor/google.golang.org/appengine/internal/api_classic.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -2,11 +2,13 @@ | |||
| // Use of this source code is governed by the Apache 2.0 | ||||
| // license that can be found in the LICENSE file. | ||||
| 
 | ||||
| //go:build appengine | ||||
| // +build appengine | ||||
| 
 | ||||
| package internal | ||||
| 
 | ||||
| import ( | ||||
| 	"context" | ||||
| 	"errors" | ||||
| 	"fmt" | ||||
| 	"net/http" | ||||
|  | @ -17,20 +19,19 @@ import ( | |||
| 	basepb "appengine_internal/base" | ||||
| 
 | ||||
| 	"github.com/golang/protobuf/proto" | ||||
| 	netcontext "golang.org/x/net/context" | ||||
| ) | ||||
| 
 | ||||
| var contextKey = "holds an appengine.Context" | ||||
| 
 | ||||
| // fromContext returns the App Engine context or nil if ctx is not | ||||
| // derived from an App Engine context. | ||||
| func fromContext(ctx netcontext.Context) appengine.Context { | ||||
| func fromContext(ctx context.Context) appengine.Context { | ||||
| 	c, _ := ctx.Value(&contextKey).(appengine.Context) | ||||
| 	return c | ||||
| } | ||||
| 
 | ||||
| // This is only for classic App Engine adapters. | ||||
| func ClassicContextFromContext(ctx netcontext.Context) (appengine.Context, error) { | ||||
| func ClassicContextFromContext(ctx context.Context) (appengine.Context, error) { | ||||
| 	c := fromContext(ctx) | ||||
| 	if c == nil { | ||||
| 		return nil, errNotAppEngineContext | ||||
|  | @ -38,8 +39,8 @@ func ClassicContextFromContext(ctx netcontext.Context) (appengine.Context, error | |||
| 	return c, nil | ||||
| } | ||||
| 
 | ||||
| func withContext(parent netcontext.Context, c appengine.Context) netcontext.Context { | ||||
| 	ctx := netcontext.WithValue(parent, &contextKey, c) | ||||
| func withContext(parent context.Context, c appengine.Context) context.Context { | ||||
| 	ctx := context.WithValue(parent, &contextKey, c) | ||||
| 
 | ||||
| 	s := &basepb.StringProto{} | ||||
| 	c.Call("__go__", "GetNamespace", &basepb.VoidProto{}, s, nil) | ||||
|  | @ -50,7 +51,7 @@ func withContext(parent netcontext.Context, c appengine.Context) netcontext.Cont | |||
| 	return ctx | ||||
| } | ||||
| 
 | ||||
| func IncomingHeaders(ctx netcontext.Context) http.Header { | ||||
| func IncomingHeaders(ctx context.Context) http.Header { | ||||
| 	if c := fromContext(ctx); c != nil { | ||||
| 		if req, ok := c.Request().(*http.Request); ok { | ||||
| 			return req.Header | ||||
|  | @ -59,11 +60,11 @@ func IncomingHeaders(ctx netcontext.Context) http.Header { | |||
| 	return nil | ||||
| } | ||||
| 
 | ||||
| func ReqContext(req *http.Request) netcontext.Context { | ||||
| 	return WithContext(netcontext.Background(), req) | ||||
| func ReqContext(req *http.Request) context.Context { | ||||
| 	return WithContext(context.Background(), req) | ||||
| } | ||||
| 
 | ||||
| func WithContext(parent netcontext.Context, req *http.Request) netcontext.Context { | ||||
| func WithContext(parent context.Context, req *http.Request) context.Context { | ||||
| 	c := appengine.NewContext(req) | ||||
| 	return withContext(parent, c) | ||||
| } | ||||
|  | @ -83,11 +84,11 @@ func (t *testingContext) Call(service, method string, _, _ appengine_internal.Pr | |||
| } | ||||
| func (t *testingContext) Request() interface{} { return t.req } | ||||
| 
 | ||||
| func ContextForTesting(req *http.Request) netcontext.Context { | ||||
| 	return withContext(netcontext.Background(), &testingContext{req: req}) | ||||
| func ContextForTesting(req *http.Request) context.Context { | ||||
| 	return withContext(context.Background(), &testingContext{req: req}) | ||||
| } | ||||
| 
 | ||||
| func Call(ctx netcontext.Context, service, method string, in, out proto.Message) error { | ||||
| func Call(ctx context.Context, service, method string, in, out proto.Message) error { | ||||
| 	if ns := NamespaceFromContext(ctx); ns != "" { | ||||
| 		if fn, ok := NamespaceMods[service]; ok { | ||||
| 			fn(in, ns) | ||||
|  | @ -144,8 +145,8 @@ func Call(ctx netcontext.Context, service, method string, in, out proto.Message) | |||
| 	return err | ||||
| } | ||||
| 
 | ||||
| func handleHTTP(w http.ResponseWriter, r *http.Request) { | ||||
| 	panic("handleHTTP called; this should be impossible") | ||||
| func Middleware(next http.Handler) http.Handler { | ||||
| 	panic("Middleware called; this should be impossible") | ||||
| } | ||||
| 
 | ||||
| func logf(c appengine.Context, level int64, format string, args ...interface{}) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue