{"modulePath":"github.com/fernandezvara/backd","version":"v0.9.15","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package httpsso\n\nPackage httpsso is the HTTP side of the sso engine that does not depend on the host: reading what a provider's callback carries and sending the browser back to the app. The host keeps its routes, its error envelope and its rate limits; each of its handlers parses a request, calls one Engine method and writes the Outcome with the helpers here.\n\n## Functions\n\n```go\nfunc Callback(r *http.Request, scope, provider string) (in sso.CallbackInput, ok bool)\n```\nCallback reads a provider's callback (a GET with the query, or Apple's form POST). ok is false when the request can't be read at all.\n\n```go\nfunc Redirect(w http.ResponseWriter, r *http.Request, to string, params ...string) bool\n```\nRedirect sends the browser to the app's redirect\\_to (checked when the attempt began) with the given query parameters added (name, value, name, value…). It returns false when to is not a URL.\n\n","path":"github.com/fernandezvara/backd/sso/httpsso","name":"httpsso","synopsis":"Package httpsso is the HTTP side of the sso engine that does not depend on the host: reading what a provider's callback carries and sending the browser back to the app.","isRedistributable":true}
