Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
grdlyon-oauth-proxy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sebastien Blaisot
grdlyon-oauth-proxy
Commits
0488bfe9
Commit
0488bfe9
authored
Jun 03, 2020
by
Sebastien Blaisot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small nits from code review
parent
17d2a04a
Pipeline
#2977
failed with stage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
cozy-oauth-proxy
cozy-oauth-proxy
+0
-0
main.go
main.go
+1
-2
No files found.
cozy-oauth-proxy
View file @
0488bfe9
No preview for this file type
main.go
View file @
0488bfe9
...
...
@@ -49,7 +49,6 @@ func main() {
log
.
Info
(
"Server started"
)
mux
.
HandleFunc
(
"/auth"
,
func
(
w
http
.
ResponseWriter
,
r
*
http
.
Request
)
{
//fmt.Println("*******************")
log
.
Debug
(
"New auth request"
)
query
:=
r
.
URL
.
Query
()
log
.
Debug
(
"Query received - "
,
query
)
...
...
@@ -131,7 +130,7 @@ func main() {
//Check for code
codeStartIndex
:=
strings
.
Index
(
pageContent
,
"code="
)
if
codeStartIndex
==
-
1
{
log
.
Info
(
"No code found (option
n
al param)"
)
log
.
Info
(
"No code found (optional param)"
)
}
else
{
codeStartIndex
+=
5
code
=
pageContent
[
codeStartIndex
:
codeStartIndex
+
30
]
...
...
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