mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-30 22:32:25 -05:00 
			
		
		
		
	[chore]: Bump github.com/coreos/go-oidc/v3 from 3.11.0 to 3.12.0 (#3662)
This commit is contained in:
		
					parent
					
						
							
								37fd7c7a6a
							
						
					
				
			
			
				commit
				
					
						5c0514e83c
					
				
			
		
					 4 changed files with 44 additions and 14 deletions
				
			
		
							
								
								
									
										2
									
								
								go.mod
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								go.mod
									
										
									
									
									
								
							|  | @ -45,7 +45,7 @@ require ( | ||||||
| 	github.com/DmitriyVTitov/size v1.5.0 | 	github.com/DmitriyVTitov/size v1.5.0 | ||||||
| 	github.com/KimMachineGun/automemlimit v0.6.1 | 	github.com/KimMachineGun/automemlimit v0.6.1 | ||||||
| 	github.com/buckket/go-blurhash v1.1.0 | 	github.com/buckket/go-blurhash v1.1.0 | ||||||
| 	github.com/coreos/go-oidc/v3 v3.11.0 | 	github.com/coreos/go-oidc/v3 v3.12.0 | ||||||
| 	github.com/gin-contrib/cors v1.7.3 | 	github.com/gin-contrib/cors v1.7.3 | ||||||
| 	github.com/gin-contrib/gzip v1.1.0 | 	github.com/gin-contrib/gzip v1.1.0 | ||||||
| 	github.com/gin-contrib/sessions v1.0.2 | 	github.com/gin-contrib/sessions v1.0.2 | ||||||
|  |  | ||||||
							
								
								
									
										4
									
								
								go.sum
									
										
									
										generated
									
									
									
								
							
							
						
						
									
										4
									
								
								go.sum
									
										
									
										generated
									
									
									
								
							|  | @ -126,8 +126,8 @@ github.com/cnf/structhash v0.0.0-20201127153200-e1b16c1ebc08 h1:ox2F0PSMlrAAiAdk | ||||||
| github.com/cnf/structhash v0.0.0-20201127153200-e1b16c1ebc08/go.mod h1:pCxVEbcm3AMg7ejXyorUXi6HQCzOIBf7zEDVPtw0/U4= | github.com/cnf/structhash v0.0.0-20201127153200-e1b16c1ebc08/go.mod h1:pCxVEbcm3AMg7ejXyorUXi6HQCzOIBf7zEDVPtw0/U4= | ||||||
| github.com/containerd/cgroups/v3 v3.0.1 h1:4hfGvu8rfGIwVIDd+nLzn/B9ZXx4BcCjzt5ToenJRaE= | github.com/containerd/cgroups/v3 v3.0.1 h1:4hfGvu8rfGIwVIDd+nLzn/B9ZXx4BcCjzt5ToenJRaE= | ||||||
| github.com/containerd/cgroups/v3 v3.0.1/go.mod h1:/vtwk1VXrtoa5AaZLkypuOJgA/6DyPMZHJPGQNtlHnw= | github.com/containerd/cgroups/v3 v3.0.1/go.mod h1:/vtwk1VXrtoa5AaZLkypuOJgA/6DyPMZHJPGQNtlHnw= | ||||||
| github.com/coreos/go-oidc/v3 v3.11.0 h1:Ia3MxdwpSw702YW0xgfmP1GVCMA9aEFWu12XUZ3/OtI= | github.com/coreos/go-oidc/v3 v3.12.0 h1:sJk+8G2qq94rDI6ehZ71Bol3oUHy63qNYmkiSjrc/Jo= | ||||||
| github.com/coreos/go-oidc/v3 v3.11.0/go.mod h1:gE3LgjOgFoHi9a4ce4/tJczr0Ai2/BoDhf0r5lltWI0= | github.com/coreos/go-oidc/v3 v3.12.0/go.mod h1:gE3LgjOgFoHi9a4ce4/tJczr0Ai2/BoDhf0r5lltWI0= | ||||||
| github.com/coreos/go-systemd/v22 v22.3.2 h1:D9/bQk5vlXQFZ6Kwuu6zaiXJ9oTPe68++AzAJc1DzSI= | github.com/coreos/go-systemd/v22 v22.3.2 h1:D9/bQk5vlXQFZ6Kwuu6zaiXJ9oTPe68++AzAJc1DzSI= | ||||||
| github.com/coreos/go-systemd/v22 v22.3.2/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= | github.com/coreos/go-systemd/v22 v22.3.2/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= | ||||||
| github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= | github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= | ||||||
|  |  | ||||||
							
								
								
									
										50
									
								
								vendor/github.com/coreos/go-oidc/v3/oidc/oidc.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										50
									
								
								vendor/github.com/coreos/go-oidc/v3/oidc/oidc.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -154,40 +154,65 @@ var supportedAlgorithms = map[string]bool{ | ||||||
| 	EdDSA: true, | 	EdDSA: true, | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // ProviderConfig allows creating providers when discovery isn't supported. It's | // ProviderConfig allows direct creation of a [Provider] from metadata | ||||||
| // generally easier to use NewProvider directly. | // configuration. This is intended for interop with providers that don't support | ||||||
|  | // discovery, or host the JSON discovery document at an off-spec path. | ||||||
|  | // | ||||||
|  | // The ProviderConfig struct specifies JSON struct tags to support document | ||||||
|  | // parsing. | ||||||
|  | // | ||||||
|  | //	// Directly fetch the metadata document. | ||||||
|  | // 	resp, err := http.Get("https://login.example.com/custom-metadata-path") | ||||||
|  | //	if err != nil { | ||||||
|  | //		// ... | ||||||
|  | //	} | ||||||
|  | //	defer resp.Body.Close() | ||||||
|  | // | ||||||
|  | //	// Parse config from JSON metadata. | ||||||
|  | //	config := &oidc.ProviderConfig{} | ||||||
|  | //	if err := json.NewDecoder(resp.Body).Decode(config); err != nil { | ||||||
|  | //		// ... | ||||||
|  | //	} | ||||||
|  | //	p := config.NewProvider(context.Background()) | ||||||
|  | // | ||||||
|  | // For providers that implement discovery, use [NewProvider] instead. | ||||||
|  | // | ||||||
|  | // See: https://openid.net/specs/openid-connect-discovery-1_0.html | ||||||
| type ProviderConfig struct { | type ProviderConfig struct { | ||||||
| 	// IssuerURL is the identity of the provider, and the string it uses to sign | 	// IssuerURL is the identity of the provider, and the string it uses to sign | ||||||
| 	// ID tokens with. For example "https://accounts.google.com". This value MUST | 	// ID tokens with. For example "https://accounts.google.com". This value MUST | ||||||
| 	// match ID tokens exactly. | 	// match ID tokens exactly. | ||||||
| 	IssuerURL string | 	IssuerURL string `json:"issuer"` | ||||||
| 	// AuthURL is the endpoint used by the provider to support the OAuth 2.0 | 	// AuthURL is the endpoint used by the provider to support the OAuth 2.0 | ||||||
| 	// authorization endpoint. | 	// authorization endpoint. | ||||||
| 	AuthURL string | 	AuthURL string `json:"authorization_endpoint"` | ||||||
| 	// TokenURL is the endpoint used by the provider to support the OAuth 2.0 | 	// TokenURL is the endpoint used by the provider to support the OAuth 2.0 | ||||||
| 	// token endpoint. | 	// token endpoint. | ||||||
| 	TokenURL string | 	TokenURL string `json:"token_endpoint"` | ||||||
| 	// DeviceAuthURL is the endpoint used by the provider to support the OAuth 2.0 | 	// DeviceAuthURL is the endpoint used by the provider to support the OAuth 2.0 | ||||||
| 	// device authorization endpoint. | 	// device authorization endpoint. | ||||||
| 	DeviceAuthURL string | 	DeviceAuthURL string `json:"device_authorization_endpoint"` | ||||||
| 	// UserInfoURL is the endpoint used by the provider to support the OpenID | 	// UserInfoURL is the endpoint used by the provider to support the OpenID | ||||||
| 	// Connect UserInfo flow. | 	// Connect UserInfo flow. | ||||||
| 	// | 	// | ||||||
| 	// https://openid.net/specs/openid-connect-core-1_0.html#UserInfo | 	// https://openid.net/specs/openid-connect-core-1_0.html#UserInfo | ||||||
| 	UserInfoURL string | 	UserInfoURL string `json:"userinfo_endpoint"` | ||||||
| 	// JWKSURL is the endpoint used by the provider to advertise public keys to | 	// JWKSURL is the endpoint used by the provider to advertise public keys to | ||||||
| 	// verify issued ID tokens. This endpoint is polled as new keys are made | 	// verify issued ID tokens. This endpoint is polled as new keys are made | ||||||
| 	// available. | 	// available. | ||||||
| 	JWKSURL string | 	JWKSURL string `json:"jwks_uri"` | ||||||
| 
 | 
 | ||||||
| 	// Algorithms, if provided, indicate a list of JWT algorithms allowed to sign | 	// Algorithms, if provided, indicate a list of JWT algorithms allowed to sign | ||||||
| 	// ID tokens. If not provided, this defaults to the algorithms advertised by | 	// ID tokens. If not provided, this defaults to the algorithms advertised by | ||||||
| 	// the JWK endpoint, then the set of algorithms supported by this package. | 	// the JWK endpoint, then the set of algorithms supported by this package. | ||||||
| 	Algorithms []string | 	Algorithms []string `json:"id_token_signing_alg_values_supported"` | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // NewProvider initializes a provider from a set of endpoints, rather than | // NewProvider initializes a provider from a set of endpoints, rather than | ||||||
| // through discovery. | // through discovery. | ||||||
|  | // | ||||||
|  | // The provided context is only used for [http.Client] configuration through | ||||||
|  | // [ClientContext], not cancelation. | ||||||
| func (p *ProviderConfig) NewProvider(ctx context.Context) *Provider { | func (p *ProviderConfig) NewProvider(ctx context.Context) *Provider { | ||||||
| 	return &Provider{ | 	return &Provider{ | ||||||
| 		issuer:        p.IssuerURL, | 		issuer:        p.IssuerURL, | ||||||
|  | @ -202,9 +227,14 @@ func (p *ProviderConfig) NewProvider(ctx context.Context) *Provider { | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // NewProvider uses the OpenID Connect discovery mechanism to construct a Provider. | // NewProvider uses the OpenID Connect discovery mechanism to construct a Provider. | ||||||
| // |  | ||||||
| // The issuer is the URL identifier for the service. For example: "https://accounts.google.com" | // The issuer is the URL identifier for the service. For example: "https://accounts.google.com" | ||||||
| // or "https://login.salesforce.com". | // or "https://login.salesforce.com". | ||||||
|  | // | ||||||
|  | // OpenID Connect providers that don't implement discovery or host the discovery | ||||||
|  | // document at a non-spec complaint path (such as requiring a URL parameter), | ||||||
|  | // should use [ProviderConfig] instead. | ||||||
|  | // | ||||||
|  | // See: https://openid.net/specs/openid-connect-discovery-1_0.html | ||||||
| func NewProvider(ctx context.Context, issuer string) (*Provider, error) { | func NewProvider(ctx context.Context, issuer string) (*Provider, error) { | ||||||
| 	wellKnown := strings.TrimSuffix(issuer, "/") + "/.well-known/openid-configuration" | 	wellKnown := strings.TrimSuffix(issuer, "/") + "/.well-known/openid-configuration" | ||||||
| 	req, err := http.NewRequest("GET", wellKnown, nil) | 	req, err := http.NewRequest("GET", wellKnown, nil) | ||||||
|  |  | ||||||
							
								
								
									
										2
									
								
								vendor/modules.txt
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								vendor/modules.txt
									
										
									
									
										vendored
									
									
								
							|  | @ -166,7 +166,7 @@ github.com/containerd/cgroups/v3/cgroup1 | ||||||
| github.com/containerd/cgroups/v3/cgroup1/stats | github.com/containerd/cgroups/v3/cgroup1/stats | ||||||
| github.com/containerd/cgroups/v3/cgroup2 | github.com/containerd/cgroups/v3/cgroup2 | ||||||
| github.com/containerd/cgroups/v3/cgroup2/stats | github.com/containerd/cgroups/v3/cgroup2/stats | ||||||
| # github.com/coreos/go-oidc/v3 v3.11.0 | # github.com/coreos/go-oidc/v3 v3.12.0 | ||||||
| ## explicit; go 1.21 | ## explicit; go 1.21 | ||||||
| github.com/coreos/go-oidc/v3/oidc | github.com/coreos/go-oidc/v3/oidc | ||||||
| # github.com/coreos/go-systemd/v22 v22.3.2 | # github.com/coreos/go-systemd/v22 v22.3.2 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue