aboutsummaryrefslogtreecommitdiff
path: root/server/auth/testprovider/testprovider.go
diff options
context:
space:
mode:
authorNiall Sheridan <nsheridan@gmail.com>2017-02-04 23:55:31 +0000
committerNiall Sheridan <nsheridan@gmail.com>2017-02-09 12:49:37 +0000
commit44cb8512c9881687e091cca589a0adcb9f72fa7a (patch)
tree7696577468e3a7aae4f97e129729804817d2ee81 /server/auth/testprovider/testprovider.go
parent019891ab8b6709b2e3fb6be83d111fb73ec2bd32 (diff)
Remove the oauth_callback_url config option
Infer the redirect url from the request instead
Diffstat (limited to 'server/auth/testprovider/testprovider.go')
-rw-r--r--server/auth/testprovider/testprovider.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/auth/testprovider/testprovider.go b/server/auth/testprovider/testprovider.go
index e30b04a..0bc2397 100644
--- a/server/auth/testprovider/testprovider.go
+++ b/server/auth/testprovider/testprovider.go
@@ -1,6 +1,7 @@
package testprovider
import (
+ "net/http"
"time"
"github.com/nsheridan/cashier/server/auth"
@@ -38,7 +39,7 @@ func (c *Config) Revoke(token *oauth2.Token) error {
}
// StartSession retrieves an authentication endpoint.
-func (c *Config) StartSession(state string) *auth.Session {
+func (c *Config) StartSession(state string, r *http.Request) *auth.Session {
return &auth.Session{
AuthURL: "https://www.example.com/auth",
}