No description, website, or topics provided.
C# Shell ASP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Modules
Properties
.gitignore
Auth0OAuth.csproj
Auth0OAuth.sln
Global.asax
Global.asax.cs
README.md
Web.template.config
auth0info.cshtml
azuredeploy.json
build.cmd

README.md

Auth0 OAuth

This demonstrates adding authentication to your site using Auth0 oauth2.0.

Disclaimer: this is for demonstration purpose only. It will require various enhancements such as replay detection, https enforement to make it production ready. Although I only try it with .NET application, it should work with different types of applications as well.

  • Create the Auth0 application.

    • After creation, navigate to your Auth0 application Settings tab. Take note of Domain, Client ID and Client Secret. You will need these info in next step.
  • Deploy this repository to Azure by clicking

    • Choose Directory, Subscription and Location appropriately.
    • Change the Site Name to something you can recognize.
    • Enter Auth0 Client ID as Auth0ClientId value.
    • Enter Auth0 Client Secret as Auth0ClientSecret value.
    • Enter Auth0 Domain as Auth0Domain value.
    • Click Next and Deploy to Azure WebSites.
    • The site url will be http://{sitename}.azurewebsites.net/. Note: {sitename} is the Site Name you pick above.
  • On your Auth0 application Settings tab, add below comma-separated urls as Allowed Callback URLs

  • http://{sitename}.azurewebsites.net/login/callback,http://{sitename}.azurewebsites.net/logout/complete

Try browsing to http://{sitename}.azurewebsites.net/.