Skip to content

Is the provider URL necessary for logging out? #612

@rasibn

Description

@rasibn

in the example code I see that we send the URL param for provider in the logout request

p.Get("/logout/{provider}", func(res http.ResponseWriter, req *http.Request) {
	gothic.Logout(res, req)
	res.Header().Set("Location", "/")
	res.WriteHeader(http.StatusTemporaryRedirect)
})

But I tried to do the same thing without passing the provider and the result seems to be identical. Am I missing something?

My usecase is trying to simplify logout logic when working with multiple providers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions