summaryrefslogtreecommitdiff
path: root/tests/client-manifest-fraudulent.scm
diff options
context:
space:
mode:
authorVivien Kraus <vivien@planete-kraus.eu>2021-09-30 19:51:38 +0200
committerVivien Kraus <vivien@planete-kraus.eu>2021-10-04 22:57:58 +0200
commit9e2873b126bff9e0d13d2953729def4b0b3cd73e (patch)
tree081f72cb31579300fe4b5228abea8e67ec826897 /tests/client-manifest-fraudulent.scm
parent4a144d76950ac002996c3941c1eb4a5a6de6a661 (diff)
Client manifest: use GOOPS
Diffstat (limited to 'tests/client-manifest-fraudulent.scm')
-rw-r--r--tests/client-manifest-fraudulent.scm28
1 files changed, 16 insertions, 12 deletions
diff --git a/tests/client-manifest-fraudulent.scm b/tests/client-manifest-fraudulent.scm
index 548f6c1..b1803f4 100644
--- a/tests/client-manifest-fraudulent.scm
+++ b/tests/client-manifest-fraudulent.scm
@@ -14,16 +14,20 @@
;; You should have received a copy of the GNU Affero General Public License
;; along with this program. If not, see <https://www.gnu.org/licenses/>.
-(use-modules (webid-oidc client-manifest)
- (webid-oidc cache)
- (webid-oidc testing)
- ((webid-oidc parameters) #:prefix p:)
- (webid-oidc errors)
- (web uri)
- (srfi srfi-19)
- (web response)
- (ice-9 optargs)
- (ice-9 receive))
+(define-module (tests client-manifest-fraudulent)
+ #:use-module (webid-oidc client-manifest)
+ #:use-module (webid-oidc cache)
+ #:use-module (webid-oidc testing)
+ #:use-module ((webid-oidc parameters) #:prefix p:)
+ #:use-module (webid-oidc errors)
+ #:use-module (web uri)
+ #:use-module (srfi srfi-19)
+ #:use-module (web response)
+ #:use-module (ice-9 optargs)
+ #:use-module (ice-9 receive)
+ #:use-module (oop goops)
+ #:declarative? #t
+ #:duplicates (merge-generics))
;; In this example, the client_id of the oidcRegistration does not
;; match the base URI.
@@ -68,8 +72,8 @@
(exit 3)))
(lambda ()
(parameterize ((p:current-date 0))
- (get-client-manifest
- (string->uri "https://fraudulent-app.example.com/id#app")))
+ (make <client-manifest>
+ #:client-id "https://fraudulent-app.example.com/id#app"))
(exit 4))
#:unwind? #t
#:unwind-for-type &inconsistent-client-manifest))))))