Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created October 14, 2020 15:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjoerntx/c3631a859f99cce25427767a55dfeef0 to your computer and use it in GitHub Desktop.
Save bjoerntx/c3631a859f99cce25427767a55dfeef0 to your computer and use it in GitHub Desktop.
@using TXTextControl.DocumentServices.DocumentEditor
@Html.TXTextControl().DocumentEditor(settings =>
{
settings.ServiceUrl = "http://testserver2019/DocumentServices";
settings.OAuthSettings.ClientId =
"txtextcontrol.B540D103D34FE893074148D39EAFCACD30D89F4A72D722509B757E5203DF599C";
settings.OAuthSettings.ClientSecret =
"76B63ACC8446A017053985A3245644221F7D8F635175AE6261AA4B66728E5F7B";
settings.OAuthSettings.RedirectUri = string.Format("{0}://{1}{2}/{3}",
Context.Request.Scheme,
Context.Request.Host,
Context.Request.PathBase,
"textcontrol/documenteditor/auth/callback");
}).Render()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment