Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dex
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
dex
Commits
9d7cebce
Commit
9d7cebce
authored
Apr 19, 2016
by
Eric Chiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
examples/app: infer callback path from redirect URL
parent
c2c7f03f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
main.go
examples/app/main.go
+1
-5
No files found.
examples/app/main.go
View file @
9d7cebce
...
@@ -20,10 +20,6 @@ import (
...
@@ -20,10 +20,6 @@ import (
"github.com/coreos/go-oidc/oidc"
"github.com/coreos/go-oidc/oidc"
)
)
var
(
pathCallback
=
"/callback"
)
func
main
()
{
func
main
()
{
fs
:=
flag
.
NewFlagSet
(
"oidc-app"
,
flag
.
ExitOnError
)
fs
:=
flag
.
NewFlagSet
(
"oidc-app"
,
flag
.
ExitOnError
)
listen
:=
fs
.
String
(
"listen"
,
"http://127.0.0.1:5555"
,
""
)
listen
:=
fs
.
String
(
"listen"
,
"http://127.0.0.1:5555"
,
""
)
...
@@ -142,7 +138,7 @@ func NewClientHandler(c *oidc.Client, issuer string, cbURL url.URL) http.Handler
...
@@ -142,7 +138,7 @@ func NewClientHandler(c *oidc.Client, issuer string, cbURL url.URL) http.Handler
mux
.
HandleFunc
(
"/"
,
handleIndex
)
mux
.
HandleFunc
(
"/"
,
handleIndex
)
mux
.
HandleFunc
(
"/login"
,
handleLoginFunc
(
c
))
mux
.
HandleFunc
(
"/login"
,
handleLoginFunc
(
c
))
mux
.
HandleFunc
(
"/register"
,
handleRegisterFunc
(
c
))
mux
.
HandleFunc
(
"/register"
,
handleRegisterFunc
(
c
))
mux
.
HandleFunc
(
pathCallback
,
handleCallbackFunc
(
c
))
mux
.
HandleFunc
(
cbURL
.
Path
,
handleCallbackFunc
(
c
))
resendURL
:=
*
issuerURL
resendURL
:=
*
issuerURL
resendURL
.
Path
=
"/resend-verify-email"
resendURL
.
Path
=
"/resend-verify-email"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment