From b6d9e6a2de6fd7fa9e390b920e441adf2cf3ce22 Mon Sep 17 00:00:00 2001 From: Rein Krul Date: Fri, 8 Dec 2023 17:15:52 +0100 Subject: [PATCH] chores --- auth/oauth/openid.go | 18 ++++++++++++++++++ discovery/api/v1/types.go | 18 ++++++++++++++++++ discovery/api/v1/wapper.go | 21 ++++++++++++++++++--- discovery/api/v1/wapper_test.go | 18 ++++++++++++++++++ 4 files changed, 72 insertions(+), 3 deletions(-) diff --git a/auth/oauth/openid.go b/auth/oauth/openid.go index f657cc0f5a..852ecae90c 100644 --- a/auth/oauth/openid.go +++ b/auth/oauth/openid.go @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2023 Nuts community + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + package oauth // algValuesSupported contains a list of supported cipher suites for jwt_vc_json & jwt_vp_json presentation formats diff --git a/discovery/api/v1/types.go b/discovery/api/v1/types.go index cbc34231d2..7a9ff02004 100644 --- a/discovery/api/v1/types.go +++ b/discovery/api/v1/types.go @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2023 Nuts community + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + package v1 import "github.com/nuts-foundation/go-did/vc" diff --git a/discovery/api/v1/wapper.go b/discovery/api/v1/wapper.go index 0d2994fec3..55fb6d6bea 100644 --- a/discovery/api/v1/wapper.go +++ b/discovery/api/v1/wapper.go @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2023 Nuts community + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + package v1 import ( @@ -12,12 +30,10 @@ import ( var _ StrictServerInterface = (*Wrapper)(nil) var _ core.ErrorStatusCodeResolver = (*Wrapper)(nil) -// Wrapper implements the generated interface from oapi-codegen type Wrapper struct { Server discovery.Server } -// ResolveStatusCode maps errors returned by this API to specific HTTP status codes. func (w *Wrapper) ResolveStatusCode(err error) int { // todo switch { @@ -30,7 +46,6 @@ func (w *Wrapper) ResolveStatusCode(err error) int { } } -// Routes registers the routes from the open api spec to the echo router. func (w *Wrapper) Routes(router core.EchoRouter) { RegisterHandlers(router, NewStrictHandler(w, []StrictMiddlewareFunc{ func(f StrictHandlerFunc, operationID string) StrictHandlerFunc { diff --git a/discovery/api/v1/wapper_test.go b/discovery/api/v1/wapper_test.go index c3228e7352..83257a0bb0 100644 --- a/discovery/api/v1/wapper_test.go +++ b/discovery/api/v1/wapper_test.go @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2023 Nuts community + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + package v1 import (