// GetSignOutURL creates and returns the sign out URL, given a redirectURL
GetSignOutURL creates and returns the sign out URL, given a redirectURL
// GetSignOutURL creates and returns the sign out URL given a redirectURL
func (p *Proxy) GetSignOutURL(authenticateURL, redirectURL *url.URL) *url.URL {
	a := authenticateURL.ResolveReference(&url.URL{Path: "/sign_out"})
	now := time.Now()
	rawRedirect := redirectURL.String()
	params, _ := url.ParseQuery(a.RawQuery)
	params.Add("redirect_uri", rawRedirect)
	params.Set("ts", fmt.Sprint(now.Unix()))
	params.Set("sig", p.signRedirectURL(rawRedirect, now))
	a.RawQuery = params.Encode()
	return a
}
func ( p * Proxy ) GetSignOutURL ( authenticateURL , redirectURL * url . URL ) * url . URL { a := authenticateURL . ResolveReference ( & url . URL { Path : " " } ) now := time . Now ( ) rawRedirect := redirectURL . String ( ) params , _ := url . ParseQuery ( a . RawQuery ) params . Add ( " " , rawRedirect ) params . Set ( " " , fmt . Sprint ( now . Unix ( ) ) ) params . Set ( " " , p . signRedirectURL ( rawRedirect , now ) ) a . RawQuery = params . Encode ( ) return a }
GetSignOutURL creates and returns the sign out URL, given a redirectURL
GetSignOutURL creates and returns the sign out URL given a redirectURL