projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
15531: Add README
[arvados.git]
/
lib
/
controller
/
railsproxy
/
railsproxy.go
diff --git
a/lib/controller/railsproxy/railsproxy.go
b/lib/controller/railsproxy/railsproxy.go
index 5070fa396d80b3c4308015dd1424ab2037d17abc..576e603eedd758f8ff53f2556e1161b6957b0691 100644
(file)
--- a/
lib/controller/railsproxy/railsproxy.go
+++ b/
lib/controller/railsproxy/railsproxy.go
@@
-44,7
+44,7
@@
func NewConn(cluster *arvados.Cluster) *rpc.Conn {
}
func provideIncomingToken(ctx context.Context) ([]string, error) {
- incoming, ok :=
ctx.Value(auth.ContextKeyCredentials).(*auth.Credentials
)
+ incoming, ok :=
auth.FromContext(ctx
)
if !ok {
return nil, errors.New("no token provided")
}