15531: Add README
[arvados.git] / lib / controller / railsproxy / railsproxy.go
index 5070fa396d80b3c4308015dd1424ab2037d17abc..576e603eedd758f8ff53f2556e1161b6957b0691 100644 (file)
@@ -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")
        }