Skip to content
Branch: master
Find file History
alexisluque and jimmyjames Fix dockerfile (#23)
* Fix dockerfile

* Expose port 3000
Latest commit 005c714 Aug 21, 2019
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
app Update sample to use oidc package (#21) Aug 20, 2019
auth Update sample to use oidc package (#21) Aug 20, 2019
public Add logout endpoint Oct 16, 2017
routes Update sample to use oidc package (#21) Aug 20, 2019
.dockerignore Fix dockerfile (#23) Aug 21, 2019
.env.example
.gitignore Update .gitignore Oct 16, 2017
Dockerfile Fix dockerfile (#23) Aug 21, 2019
README.md Update sample to use oidc package (#21) Aug 20, 2019
exec.ps1 Add Docker Oct 25, 2017
exec.sh Add Docker Oct 25, 2017
main.go Update sample to use oidc package (#21) Aug 20, 2019
server.go Update sample to use oidc package (#21) Aug 20, 2019

README.md

Auth0 + Go Web App Sample

This sample demonstrates how to add authentication to a Go web app using Auth0.

Check the Go Quickstart to better understand this sample.

Running the App

To run the app, make sure you have go and go get installed.

Rename the .env.example file to .env and provide your Auth0 credentials.

# .env

AUTH0_CLIENT_ID={CLIENT_ID}
AUTH0_DOMAIN={DOMAIN}
AUTH0_CLIENT_SECRET={CLIENT_SECRET}
AUTH0_CALLBACK_URL=http://localhost:3000/callback

Once you've set your Auth0 credentials in the .env file, run go get -d to install the Go dependencies.

Run go run main.go server.go to start the app and navigate to http://localhost:3000/.

What is Auth0?

Auth0 helps you to:

  • Add authentication with multiple authentication sources, either social like Google, Facebook, Microsoft Account, LinkedIn, GitHub, Twitter, Box, Salesforce, amont others, or enterprise identity systems like Windows Azure AD, Google Apps, Active Directory, ADFS or any SAML Identity Provider.
  • Add authentication through more traditional username/password databases.
  • Add support for linking different user accounts with the same user.
  • Support for generating signed Json Web Tokens to call your APIs and flow the user identity securely.
  • Analytics of how, when and where users are logging in.
  • Pull data from other sources and add it to the user profile, through JavaScript rules.

Create a free Auth0 account

  1. Go to Auth0 and click Sign Up.
  2. Use Google, GitHub or Microsoft Account to login.

Issue Reporting

If you have found a bug or if you have a feature request, please report them at this repository issues section. Please do not report security vulnerabilities on the public GitHub issue tracker. The Responsible Disclosure Program details the procedure for disclosing security issues.

Author

Auth0

License

This project is licensed under the MIT license. See the LICENSE file for more info.

You can’t perform that action at this time.