Skip to content

Commit 877661a

Browse files
committed
Add OAuth stub [androiod-volley]
1 parent 7f03d5c commit 877661a

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

modules/swagger-codegen/src/main/resources/android/libraries/volley/apiInvoker.mustache

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,9 @@ public class ApiInvoker {
196196
{{#isBasic}}
197197
INSTANCE.authentications.put("{{name}}", new HttpBasicAuth());
198198
{{/isBasic}}
199+
{{#isOAuth}}
200+
INSTANCE.authentications.put("{{name}}", new OAuth());
201+
{{/isOAuth}}
199202
{{/authMethods}}
200203
// Prevent the authentications from being modified.
201204
INSTANCE.authentications = Collections.unmodifiableMap(INSTANCE.authentications);
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package {{invokerPackage}}.auth;
2+
3+
import {{invokerPackage}}.Pair;
4+
5+
import java.util.Map;
6+
import java.util.List;
7+
8+
public class OAuth implements Authentication {
9+
@Override
10+
public void applyToParams(List<Pair> queryParams, Map<String, String> headerParams) {
11+
// TODO stub
12+
}
13+
}

0 commit comments

Comments
 (0)