Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Vault
Commits
4045c179
Commit
4045c179
authored
8 years ago
by
Jeff Mitchell
Browse files
Options
Download
Email Patches
Plain Diff
Fix github compile breakage after dep upgrade
parent
ec7ec42e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
builtin/credential/github/path_login.go
+4
-3
builtin/credential/github/path_login.go
with
4 additions
and
3 deletions
+4
-3
builtin/credential/github/path_login.go
+
4
-
3
View file @
4045c179
package
github
import
(
"context"
"fmt"
"net/url"
"strings"
...
...
@@ -126,7 +127,7 @@ func (b *backend) verifyCredentials(req *logical.Request, token string) (*verify
}
// Get the user
user
,
_
,
err
:=
client
.
Users
.
Get
(
""
)
user
,
_
,
err
:=
client
.
Users
.
Get
(
context
.
Background
(),
""
)
if
err
!=
nil
{
return
nil
,
nil
,
err
}
...
...
@@ -140,7 +141,7 @@ func (b *backend) verifyCredentials(req *logical.Request, token string) (*verify
var
allOrgs
[]
*
github
.
Organization
for
{
orgs
,
resp
,
err
:=
client
.
Organizations
.
List
(
""
,
orgOpt
)
orgs
,
resp
,
err
:=
client
.
Organizations
.
List
(
context
.
Background
(),
""
,
orgOpt
)
if
err
!=
nil
{
return
nil
,
nil
,
err
}
...
...
@@ -170,7 +171,7 @@ func (b *backend) verifyCredentials(req *logical.Request, token string) (*verify
var
allTeams
[]
*
github
.
Team
for
{
teams
,
resp
,
err
:=
client
.
Organizations
.
ListUserTeams
(
teamOpt
)
teams
,
resp
,
err
:=
client
.
Organizations
.
ListUserTeams
(
context
.
Background
(),
teamOpt
)
if
err
!=
nil
{
return
nil
,
nil
,
err
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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
Menu
Projects
Groups
Snippets
Help