@@ -113,15 +113,15 @@ func main() {
113
113
eveonline .New (os .Getenv ("EVEONLINE_KEY" ), os .Getenv ("EVEONLINE_SECRET" ), "http://localhost:3000/auth/eveonline/callback" ),
114
114
kakao .New (os .Getenv ("KAKAO_KEY" ), os .Getenv ("KAKAO_SECRET" ), "http://localhost:3000/auth/kakao/callback" ),
115
115
116
- //Pointed localhost.com to http://localhost:3000/auth/yahoo/callback through proxy as yahoo
116
+ // Pointed localhost.com to http://localhost:3000/auth/yahoo/callback through proxy as yahoo
117
117
// does not allow to put custom ports in redirection uri
118
118
yahoo .New (os .Getenv ("YAHOO_KEY" ), os .Getenv ("YAHOO_SECRET" ), "http://localhost.com" ),
119
119
typetalk .New (os .Getenv ("TYPETALK_KEY" ), os .Getenv ("TYPETALK_SECRET" ), "http://localhost:3000/auth/typetalk/callback" , "my" ),
120
120
slack .New (os .Getenv ("SLACK_KEY" ), os .Getenv ("SLACK_SECRET" ), "http://localhost:3000/auth/slack/callback" ),
121
121
stripe .New (os .Getenv ("STRIPE_KEY" ), os .Getenv ("STRIPE_SECRET" ), "http://localhost:3000/auth/stripe/callback" ),
122
122
wepay .New (os .Getenv ("WEPAY_KEY" ), os .Getenv ("WEPAY_SECRET" ), "http://localhost:3000/auth/wepay/callback" , "view_user" ),
123
- //By default paypal production auth urls will be used, please set PAYPAL_ENV=sandbox as environment variable for testing
124
- //in sandbox environment
123
+ // By default paypal production auth urls will be used, please set PAYPAL_ENV=sandbox as environment variable for testing
124
+ // in sandbox environment
125
125
paypal .New (os .Getenv ("PAYPAL_KEY" ), os .Getenv ("PAYPAL_SECRET" ), "http://localhost:3000/auth/paypal/callback" ),
126
126
steam .New (os .Getenv ("STEAM_KEY" ), "http://localhost:3000/auth/steam/callback" ),
127
127
heroku .New (os .Getenv ("HEROKU_KEY" ), os .Getenv ("HEROKU_SECRET" ), "http://localhost:3000/auth/heroku/callback" ),
@@ -133,7 +133,7 @@ func main() {
133
133
discord .New (os .Getenv ("DISCORD_KEY" ), os .Getenv ("DISCORD_SECRET" ), "http://localhost:3000/auth/discord/callback" , discord .ScopeIdentify , discord .ScopeEmail ),
134
134
meetup .New (os .Getenv ("MEETUP_KEY" ), os .Getenv ("MEETUP_SECRET" ), "http://localhost:3000/auth/meetup/callback" ),
135
135
136
- //Auth0 allocates domain per customer, a domain must be provided for auth0 to work
136
+ // Auth0 allocates domain per customer, a domain must be provided for auth0 to work
137
137
auth0 .New (os .Getenv ("AUTH0_KEY" ), os .Getenv ("AUTH0_SECRET" ), "http://localhost:3000/auth/auth0/callback" , os .Getenv ("AUTH0_DOMAIN" )),
138
138
xero .New (os .Getenv ("XERO_KEY" ), os .Getenv ("XERO_SECRET" ), "http://localhost:3000/auth/xero/callback" ),
139
139
vk .New (os .Getenv ("VK_KEY" ), os .Getenv ("VK_SECRET" ), "http://localhost:3000/auth/vk/callback" ),
@@ -152,7 +152,7 @@ func main() {
152
152
)
153
153
154
154
// OpenID Connect is based on OpenID Connect Auto Discovery URL (https://openid.net/specs/openid-connect-discovery-1_0-17.html)
155
- // because the OpenID Connect provider initialize it self in the New(), it can return an error which should be handled or ignored
155
+ // because the OpenID Connect provider initialize itself in the New(), it can return an error which should be handled or ignored
156
156
// ignore the error for now
157
157
openidConnect , _ := openidConnect .New (os .Getenv ("OPENID_CONNECT_KEY" ), os .Getenv ("OPENID_CONNECT_SECRET" ), "http://localhost:3000/auth/openid-connect/callback" , os .Getenv ("OPENID_CONNECT_DISCOVERY_URL" ))
158
158
if openidConnect != nil {
0 commit comments