Compare commits

...
1 Commits
Author SHA1 Message Date
xrain b545af2365 add password oauth method for doc 2021-06-27 10:59:19 +08:00
+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;
}
}