in packages/forge-viewhubs-netcore-aws/Controllers/OAuthController.cs [76:88]
public async Task<string> GetOAuthURLAsync(string key)
{
// prepare the sign in URL
Scope[] scopes = { Scope.DataRead };
ThreeLeggedApi _threeLeggedApi = new ThreeLeggedApi();
string oauthUrl = _threeLeggedApi.Authorize(
await Credentials.GetAppSetting("FORGE_CLIENT_ID"),
oAuthConstants.CODE,
await Credentials.GetAppSetting("FORGE_CALLBACK_URL"),
new Scope[] { Scope.DataRead, Scope.DataCreate, Scope.DataWrite, Scope.ViewablesRead }
);
return oauthUrl;
}