首页 \ 问答 \ 帮助在Ruby中刷新Yahoo的OAuth访问令牌(Help Refreshing Yahoo's OAuth Access Token in Ruby)

帮助在Ruby中刷新Yahoo的OAuth访问令牌(Help Refreshing Yahoo's OAuth Access Token in Ruby)

在尝试刷新Ruby中的Yahoo OAuth访问令牌时,我正处于非自愿脱发的程度。

使用OmniAuth和OAuth宝石,我能够从雅虎获得访问令牌,但它会在一小时后到期。

我按照Yahoo的说明刷新过期的令牌 ,并且我一直返回401。

如果有人可以告诉我如何使用OAuth gem刷新访问令牌,我将非常感激。


I'm at the point of involuntary hair loss while trying to refresh the Yahoo OAuth access token in Ruby.

Using the OmniAuth and OAuth gems, I'm able to get an access token from Yahoo, however it expires in one hour.

I'm following the Yahoo instructions to refresh an expired token, and am consistently returned a 401.

If someone could show me how to refresh the access token using the OAuth gem, I'd be greatly appreciative.


原文:https://stackoverflow.com/questions/5657075
更新时间:2023-08-28 22:08

最满意答案

尝试挂载标志。

docker run -it \
--mount src=/etc/letsencrypt/live/mysite,target=/certs,type=bind ubuntu

或将您的证书移至指定的卷。

在这里输入图像描述

您必须将证书移动到“Mountpoint”下给出的目录中

卷文档

绑定装载文档


Try the mount flag.

docker run -it \
--mount src=/etc/letsencrypt/live/mysite,target=/certs,type=bind ubuntu

Or move your certs to a named volume.

enter image description here

You'll have to move your certs into that directory given under "Mountpoint"

Volumes docs

Bind Mount docs

相关问答

更多
  • 可以根据文档使用size创建泊坞窗卷时指定大小限制 以下是文档中提供的示例命令,用于指定相同的命令 docker volume create -d flocker -o size = 20GB my-named-volume 更新 git仓库的更多示例: Linux上的内置本地驱动程序接受类似于linux mount命令的选项: $ docker volume create --driver local --opt type = tmpfs --opt device = tmpfs --opt o = si ...
  • 这是一个众所周知的问题。 这背后的原因与虚拟机有关,当虚拟机创建时,它会将文件夹安装到用户目录中,这使得它成为容器可用的唯一文件夹。 这里是类似的问题https://github.com/docker/kitematic/issues/1192 This is a well known problem. The reason behind this is linked to the VM, when it's created it mounts the folders within your Users d ...
  • 请做docker inspect mongo-vol-1 ,你会知道安装点在哪里。 /users/owner/documents/mongodb/data是容器内的容器的位置,它来自容器了解检索数据的位置。 更多详情: https : //docs.docker.com/engine/admin/volumes/volumes/#start-a-container-with-a-volume Please do a docker inspect mongo-vol-1 and you will know w ...
  • 为什么这不起作用 这是你做的,带有一些注释。 $ docker-compose up -d 给定您的docker-compose.yml,将volume部分注释掉,此时您已经运行容器,但没有安装卷。 # edit the container by snapshotting it $ docker commit empower_drupal empower_drupal1 除非您的容器在启动时对其自身进行更改,否则您在此处所做的全部内容都是您已经拥有的映像的副本。 $ docker run -d -P - ...
  • 它可能只对mac的细节有影响 It may only have an effect on mac。 detail
  • 您遇到的问题是您尝试安装的目录,它们是从您的docker机器(VirtualBox)安装的。 我建议您使用设置 - >共享文件夹中的docker-machine共享/ home / modeller / ExpressSite,然后再次尝试运行容器。 为了回答你的第二个问题,我认为没有偏好,只是很多人使用Mac和Windows以及CentOS / Debian作为他们的基本操作系统。 The problem you are seeing is that the directory(ies) you are ...
  • 您将主机目录作为卷挂载,因此不会进行任何复制 - 容器内的挂载路径将映射到主机上的路径,因此您将看到主机目录的内容。 安装时,卷位于Union文件系统之外,因此您不会获得合并图像内容和主机目录内容的叠加层。 相反,您可以绕过该卷的图像内容,并将其重新分配给主机。 样品: touch /docker/nodered-modules/sample.txt docker run --rm -v /docker/nodered-m ...
  • 只是不要使用数据量容器:自docker 1.9以来,您可以使用docker volume create 。 Docker现在有卷命令 。 以下示例还使用docker volume create命令创建my-named-volume卷。 $ docker volume create --name my-named-volume -o size=20GB $ docker run -d -P \ -v my-named-volume:/opt/webapp \ --name web training/w ...
  • Dockerfile中的VOLUME语句只是将目录标记为从其他位置挂载以帮助映像的用户。 例如,当您创建数据库图像时,该图像的用户通常希望将日期保留在容器之外。 如果您(作为Dockerfile的Image / writer的创建者)将目录标记为VOLUME ,则图像的用户(执行docker run或类似的人)有一个想法,在容器中他应该挂载一个目录从外面。 The VOLUME statement in a Dockerfile just marks the directory as to be mount ...
  • 尝试挂载标志。 docker run -it \ --mount src=/etc/letsencrypt/live/mysite,target=/certs,type=bind ubuntu 或将您的证书移至指定的卷。 您必须将证书移动到“Mountpoint”下给出的目录中 卷文档 绑定装载文档 Try the mount flag. docker run -it \ --mount src=/etc/letsencrypt/live/mysite,target=/certs,type=bind ub ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)