Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
go-sso
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
id
go-sso
Commits
10365b59
Commit
10365b59
authored
6 years ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
Update id/auth client
parent
f0bc2231
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
vendor/git.autistici.org/id/auth/client/client.go
+8
-1
8 additions, 1 deletion
vendor/git.autistici.org/id/auth/client/client.go
vendor/vendor.json
+5
-5
5 additions, 5 deletions
vendor/vendor.json
with
13 additions
and
6 deletions
vendor/git.autistici.org/id/auth/client/client.go
+
8
−
1
View file @
10365b59
...
...
@@ -28,14 +28,21 @@ func New(socketPath string) Client {
}
func
(
c
*
socketClient
)
Authenticate
(
ctx
context
.
Context
,
req
*
auth
.
Request
)
(
*
auth
.
Response
,
error
)
{
// Create the connection outside of the timed goroutine, so
// that we can call Close() on exit regardless of the reason:
// this way, when a timeout occurs or the context is canceled,
// the pending request terminates immediately.
conn
,
err
:=
textproto
.
Dial
(
"unix"
,
c
.
socketPath
)
if
err
!=
nil
{
return
nil
,
err
}
defer
conn
.
Close
()
// Make space in the channel for at least one element, or we
// will leak a goroutine whenever the authentication request
// times out.
done
:=
make
(
chan
error
,
1
)
var
resp
auth
.
Response
done
:=
make
(
chan
error
)
go
func
()
{
defer
close
(
done
)
...
...
This diff is collapsed.
Click to expand it.
vendor/vendor.json
+
5
−
5
View file @
10365b59
...
...
@@ -29,14 +29,14 @@
{
"checksumSHA1"
:
"6D5Xt9WoGSeTJE3XFw6P2/nKYrQ="
,
"path"
:
"git.autistici.org/id/auth"
,
"revision"
:
"
d5da26d7565082baa108a1c1806f2fc723d33ccb
"
,
"revisionTime"
:
"2018-11-
18T17:43
:45Z"
"revision"
:
"
1276ec2bd95945ea45a8680a15b76cad8a339096
"
,
"revisionTime"
:
"2018-11-
22T22:30
:45Z"
},
{
"checksumSHA1"
:
"
48njEQBB73cV6tTPBEOnzSVRjeA
="
,
"checksumSHA1"
:
"
t3JTZ0bAMQit79HYbcEykC8uxro
="
,
"path"
:
"git.autistici.org/id/auth/client"
,
"revision"
:
"
d5da26d7565082baa108a1c1806f2fc723d33ccb
"
,
"revisionTime"
:
"2018-11-
18T17:43
:45Z"
"revision"
:
"
1276ec2bd95945ea45a8680a15b76cad8a339096
"
,
"revisionTime"
:
"2018-11-
22T22:30
:45Z"
},
{
"checksumSHA1"
:
"MlpsZgRytv/c9IX9YawRJDN/ibQ="
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment