Skip to content
This repository has been archived by the owner on Jun 11, 2022. It is now read-only.

Commit

Permalink
dex config
Browse files Browse the repository at this point in the history
  • Loading branch information
nishant-d committed Nov 28, 2021
1 parent 669f75e commit c9397dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func main() {
serveTls := flag.Bool("serveTls", false, "dex clinet id")

flag.Parse()
dexUrlProxy := *url + "api/dex"
dexUrlProxy := *url + "api/dex/"
fmt.Println("dex endpoint: ", *serveTls)
settings := &oidc.Settings{
URL: *url,
Expand All @@ -37,7 +37,7 @@ func main() {
sesionManager := middleware.NewSessionManager(settings, *dexServerAddress)
// dex setting ends
r := mux.NewRouter().StrictSlash(false)
r.PathPrefix("/api/dex/").HandlerFunc(dexProxy)
r.PathPrefix("/api/dex").HandlerFunc(dexProxy)
r.HandleFunc("/", func(writer http.ResponseWriter, request *http.Request) {
io.WriteString(writer, "Hello, user!\n")
})
Expand Down

0 comments on commit c9397dd

Please sign in to comment.