Deprecate JWT flow in favor of OAuth2 flow
Change-Id: I98f44d80be07dfd4bf97bcbd30510128fd035a46
diff --git a/t/plugin/auth.t b/t/plugin/auth.t
index bd9a3b1..1d1a375 100644
--- a/t/plugin/auth.t
+++ b/t/plugin/auth.t
@@ -13,7 +13,10 @@
my $t = Test::Mojo->new('Kalamar' => {
Kalamar => {
- plugins => ['Auth']
+ plugins => ['Auth'],
+ },
+ 'Kalamar-Auth' => {
+ jwt => 1
}
});
diff --git a/t/plugin/query_reference.t b/t/plugin/query_reference.t
index 97b7345..4fdcf09 100644
--- a/t/plugin/query_reference.t
+++ b/t/plugin/query_reference.t
@@ -14,6 +14,11 @@
my $t = Test::Mojo->new('Kalamar' => {
Kalamar => {
plugins => ['Auth','QueryReference']
+ },
+ 'Kalamar-Auth' => {
+ client_id => 2,
+ client_secret => 'k414m4r-s3cr3t',
+ oauth2 => 1
}
});
diff --git a/t/proxy.t b/t/proxy.t
index 518d7a4..1db8ac9 100644
--- a/t/proxy.t
+++ b/t/proxy.t
@@ -16,6 +16,11 @@
plugins => ['Auth'],
proxy_inactivity_timeout => 99,
proxy_connect_timeout => 66,
+ },
+ 'Kalamar-Auth' => {
+ client_id => 2,
+ client_secret => 'k414m4r-s3cr3t',
+ oauth2 => 1
}
});
diff --git a/t/subfolder.t b/t/subfolder.t
index d13fdc1..f1e5730 100644
--- a/t/subfolder.t
+++ b/t/subfolder.t
@@ -7,6 +7,11 @@
my $t = Test::Mojo->new('Kalamar' => {
Kalamar => {
plugins => ['Auth']
+ },
+ 'Kalamar-Auth' => {
+ client_id => 2,
+ client_secret => 'k414m4r-s3cr3t',
+ oauth2 => 1
}
});
@@ -37,6 +42,11 @@
Kalamar => {
plugins => ['Auth'],
https_only => 1
+ },
+ 'Kalamar-Auth' => {
+ client_id => 2,
+ client_secret => 'k414m4r-s3cr3t',
+ oauth2 => 1
}
});
@@ -59,6 +69,11 @@
plugins => ['Auth'],
proxy_prefix => '/korap/test',
https_only => 1
+ },
+ 'Kalamar-Auth' => {
+ client_id => 2,
+ client_secret => 'k414m4r-s3cr3t',
+ oauth2 => 1
}
});