goth
goth copied to clipboard
Support Azure Devops
Adds support for Azure Devops, not to be confused with Azure AD
To create a new Azure Devops app for local stack:
- Go to https://app.vsaex.visualstudio.com/app/register.
- Enter whatever company name you would like.
- Name your application whatever you would like.
- Set your application website to
http://localhost:8080
- Set your callback url Note: This url MUST be https which will throw erros when developing locally. One work around is to directly manipulate the url when your browser attempts to redirect.
- Set Scopes
goth.UseProviders(
azuredevops.New(os.Getenv("AZUREDEVOPS_KEY"), os.Getenv("AZUREDEVOPS_SECRET"), "http://localhost:3000/auth/azuredevops/callback"),
)