{"id":25553913,"url":"https://github.com/docusign/code-example-net-framework-auth-code-grant","last_synced_at":"2025-04-11T22:51:11.743Z","repository":{"id":40851305,"uuid":"383748576","full_name":"docusign/code-example-net-framework-auth-code-grant","owner":"docusign","description":"OAuth Authorization Code Grant flow from a .NET Framework MVC application","archived":false,"fork":false,"pushed_at":"2023-05-31T21:03:13.000Z","size":650,"stargazers_count":3,"open_issues_count":5,"forks_count":2,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-25T18:45:42.686Z","etag":null,"topics":["asp-net-mvc","authorization-code-grant","csharp","docusign","oauth2","owin"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/docusign.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-07-07T09:46:07.000Z","updated_at":"2023-08-22T13:28:12.000Z","dependencies_parsed_at":"2023-01-16T16:01:23.727Z","dependency_job_id":null,"html_url":"https://github.com/docusign/code-example-net-framework-auth-code-grant","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docusign%2Fcode-example-net-framework-auth-code-grant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docusign%2Fcode-example-net-framework-auth-code-grant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docusign%2Fcode-example-net-framework-auth-code-grant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docusign%2Fcode-example-net-framework-auth-code-grant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/docusign","download_url":"https://codeload.github.com/docusign/code-example-net-framework-auth-code-grant/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248492986,"owners_count":21113161,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asp-net-mvc","authorization-code-grant","csharp","docusign","oauth2","owin"],"created_at":"2025-02-20T12:03:16.315Z","updated_at":"2025-04-11T22:51:11.721Z","avatar_url":"https://github.com/docusign.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NetFrameworkOAuth\n \nThis code example demonstrates how to use the OAuth Authorization Code Grant flow from a .NET Framework MVC application\n\n## Configuration\n\n### Create the Integration Key\nLog in to your DocuSign developer account. If you don’t have an account, you can [create a developer account for free](https://go.docusign.com/o/sandbox/?ga=2.70927056.1363819232.1590515244-192278368.1546193875\u0026ECID=20890\u0026elqCampaignId=20890\u0026LS=NA_DEV_BOTH_BetaSite_2020-05\u0026utm_campaign=NA_DEV_BOTH_BetaSite_2020-05\u0026Channel=DDCUS000016968056\u0026cName=DocuSign.com\u0026postActivateUrl=https://developers.docusign.com/docs/esign-rest-api/quickstart/). From your account menu on the Developer Center, choose [My Apps and Keys](https://admindemo.docusign.com/authenticate?goTo=apiIntegratorKey) and then select the ADD APP AND INTEGRATION KEY button. Name your app, and DocuSign will generate an integration key for it and open the app’s configuration page. \nSet the integration key to use the Authorization Code Grant flow.\nAdd a secret key to the app. Secret keys are only shown once, when they’re created; so as soon as you add it, copy the key’s value and store it securely elsewhere. However, if you lose the value for this secret key, you can add a new one. Your app can have as many secret keys as you wish.\nAdd a redirect URI to the integration key for the URL. This should fit the pattern  code_example_url/ds/callback. The default URL for the application is https://localhost:44359. Therefore, the default redirect URI to be added to the integration key is: https://localhost:44359/ds/callback\nUpdate Project Url to https://localhost:44359/\n\n### Update the Web.config settings file\nYou now have two mandatory items and one optional item to add to the code example's Web.config file, which is at the top level of the code example's directory:\n\n* The **integration key**: add it as the **ClientId** setting.\n* The **secret value**: add it as the **SecretKey** setting.\n* The **preferred account ID**: add it as the **RequiredAccount** optional setting.\n\n## Using the code example\n\nRun **git clone https://github.com/docusign/code-example-net-framework-auth-code-grant.git** \n\nBuild and run the application in Visual Studio. \n\nVS will start an instance of IIS as the application's web server.VS will open your default browser to the application.\nUse the Authenticate with DocuSign option in the top navigation pane to start the authentication process. The browser will be redirected to the DocuSign Identity Provider (IdP) for the authentication and consent process. The browser is then redirected back to the application to complete the Authorization Code Grant flow.\nUse the Example option in the top navigation pane to send an envelope.\n\nUse the **Example** option in the top navigation pane to send an \nenvelope.\n\n## License and additional information\n\n### License\nThis repository uses the MIT License. Please see the LICENSE file for more information.\n\n### Pull Requests\nPull requests are welcomed. Pull requests will only be considered if their content\nuses the MIT License.\n\n### Additional Resources\n* [DocuSign Developer Center](https://developers.docusign.com)\n* [DocuSign API on Twitter](https://twitter.com/docusignapi)\n* [DocuSign For Developers on LinkedIn](https://www.linkedin.com/showcase/docusign-for-developers/)\n* [DocuSign For Developers on YouTube](https://www.youtube.com/channel/UCJSJ2kMs_qeQotmw4-lX2NQ)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdocusign%2Fcode-example-net-framework-auth-code-grant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdocusign%2Fcode-example-net-framework-auth-code-grant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdocusign%2Fcode-example-net-framework-auth-code-grant/lists"}