forked from loafle/openapi-generator-original
Add OAuth stub [androiod-volley]
This commit is contained in:
@@ -196,6 +196,9 @@ public class ApiInvoker {
|
||||
{{#isBasic}}
|
||||
INSTANCE.authentications.put("{{name}}", new HttpBasicAuth());
|
||||
{{/isBasic}}
|
||||
{{#isOAuth}}
|
||||
INSTANCE.authentications.put("{{name}}", new OAuth());
|
||||
{{/isOAuth}}
|
||||
{{/authMethods}}
|
||||
// Prevent the authentications from being modified.
|
||||
INSTANCE.authentications = Collections.unmodifiableMap(INSTANCE.authentications);
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
package {{invokerPackage}}.auth;
|
||||
|
||||
import {{invokerPackage}}.Pair;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.List;
|
||||
|
||||
public class OAuth implements Authentication {
|
||||
@Override
|
||||
public void applyToParams(List<Pair> queryParams, Map<String, String> headerParams) {
|
||||
// TODO stub
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user