Skip to content

Commit

Permalink
Add login.gov example; sort links alphabetically
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewzah committed Feb 11, 2020
1 parent bb8916b commit 45d9c58
Showing 1 changed file with 31 additions and 24 deletions.
55 changes: 31 additions & 24 deletions examples/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import (
"github.com/markbates/goth/providers/lastfm"
"github.com/markbates/goth/providers/line"
"github.com/markbates/goth/providers/linkedin"
"github.com/markbates/goth/providers/logingov"
"github.com/markbates/goth/providers/meetup"
"github.com/markbates/goth/providers/microsoftonline"
"github.com/markbates/goth/providers/naver"
Expand Down Expand Up @@ -138,8 +139,17 @@ func main() {
goth.UseProviders(openidConnect)
}

logingov, _ := logingov.New(os.Getenv("LOGINGOV_ISSUER_ID"), os.Getenv("LOGINGOV_REDIRECT_URI"), "")
if logingov != nil {
goth.UseProviders(logingov)
}

m := make(map[string]string)
m["amazon"] = "Amazon"
m["apple"] = "Apple"
m["auth0"] = "Auth0"
m["azuread"] = "Azure AD"
m["battlenet"] = "Battlenet"
m["bitbucket"] = "Bitbucket"
m["box"] = "Box"
m["dailymotion"] = "Dailymotion"
Expand All @@ -155,41 +165,38 @@ func main() {
m["gitlab"] = "Gitlab"
m["google"] = "Google"
m["gplus"] = "Google Plus"
m["shopify"] = "Shopify"
m["soundcloud"] = "SoundCloud"
m["spotify"] = "Spotify"
m["steam"] = "Steam"
m["stripe"] = "Stripe"
m["twitch"] = "Twitch"
m["uber"] = "Uber"
m["wepay"] = "Wepay"
m["yahoo"] = "Yahoo"
m["yammer"] = "Yammer"
m["heroku"] = "Heroku"
m["instagram"] = "Instagram"
m["intercom"] = "Intercom"
m["lastfm"] = "Last FM"
m["linkedin"] = "Linkedin"
m["line"] = "LINE"
m["onedrive"] = "Onedrive"
m["azuread"] = "Azure AD"
m["linkedin"] = "Linkedin"
m["login.gov"] = "login.gov"
m["meetup"] = "Meetup.com"
m["microsoftonline"] = "Microsoft Online"
m["battlenet"] = "Battlenet"
m["naver"] = "Naver"
m["nextcloud"] = "NextCloud"
m["onedrive"] = "Onedrive"
m["openid-connect"] = "OpenID Connect"
m["paypal"] = "Paypal"
m["twitter"] = "Twitter"
m["salesforce"] = "Salesforce"
m["typetalk"] = "Typetalk"
m["seatalk"] = "SeaTalk"
m["shopify"] = "Shopify"
m["slack"] = "Slack"
m["meetup"] = "Meetup.com"
m["auth0"] = "Auth0"
m["openid-connect"] = "OpenID Connect"
m["xero"] = "Xero"
m["soundcloud"] = "SoundCloud"
m["spotify"] = "Spotify"
m["steam"] = "Steam"
m["stripe"] = "Stripe"
m["twitch"] = "Twitch"
m["twitter"] = "Twitter"
m["typetalk"] = "Typetalk"
m["uber"] = "Uber"
m["vk"] = "VK"
m["naver"] = "Naver"
m["wepay"] = "Wepay"
m["xero"] = "Xero"
m["yahoo"] = "Yahoo"
m["yammer"] = "Yammer"
m["yandex"] = "Yandex"
m["nextcloud"] = "NextCloud"
m["seatalk"] = "SeaTalk"
m["apple"] = "Apple"

var keys []string
for k := range m {
Expand Down

0 comments on commit 45d9c58

Please sign in to comment.