add password oauth method for doc

This commit is contained in:
2021-06-27 10:59:19 +08:00
parent ac9fd706f9
commit b545af2365
+8
View File
@@ -93,6 +93,14 @@ namespace SimApi
};
haveOauth = true;
break;
case "Password":
oauthFlows.Password = new OpenApiOAuthFlow
{
TokenUrl = new Uri(docOptions.ApiAuth.TokenUrl, UriKind.RelativeOrAbsolute),
Scopes = docOptions.ApiAuth.Scopes
};
haveOauth = true;
break;
}
}