将另一个OAuth2.0授权服务器与MobileFirst Platform一起使用,而不是包含其中一个(Using another OAuth2.0 Authorization Server with MobileFirst Platform other than the included one)
阅读这篇非常好的博客文章(熟悉IBM MobileFirst Platform Foundation OAuth安全性)我了解了MobileFirst Platform(7.0及更高版本)如何具有集成的OAuth2.0授权服务器,该服务器可用于保护外部资源服务器。
但是,我想了解的是, 是否可以将MobileFirst Platform与另一个授权服务器集成,并保护MobileFirst Platform(和外部)资源服务器。 在这种情况下,授权服务器将是在Windows Server 2012R2上运行的ADFS。
产品文档中的此文档说明了如何将DataPower用作OAuth授权服务器。 它是否也可以用于其他OAuth2.0授权服务器? (在这种情况下,授权服务器将是在Windows Server 2012R2上运行的ADFS。)
reading this very good blog post (Getting familiar with IBM MobileFirst Platform Foundation OAuth Security) I learned how MobileFirst Platform (7.0 and above) has an integrated OAuth2.0 Authorization Server, which can be used to protect external resource servers.
However what I would like to understand is if it's possible to integrate MobileFirst Platform with another Authorization Server and protect MobileFirst Platform (and external) resource servers. The Authorization Server in this case would be ADFS running on Windows Server 2012R2.
This document from the Product Documentation explains how to use DataPower as OAuth Authorization Server. Can it be used also for other OAuth2.0 Authorization servers ? ( The Authorization Server in this case would be ADFS running on Windows Server 2012R2. )
原文:https://stackoverflow.com/questions/36764574
最满意答案
Python的日志记录框架基于记录器的层次结构。 无论记录到
tornado.access
,默认情况下都会传播到根记录器(默认情况下转到stderr)。 如果您不希望访问日志重复,请设置propagate
属性:access_log.propagate = False
Python's logging framework is based on a hierarchy of loggers. Whatever is logged to
tornado.access
is also by default propagated to the root logger (which goes to stderr by default). If you don't want the access log to get duplicated, set thepropagate
attribute:access_log.propagate = False
相关问答
更多-
sys.stdout是与程序的标准输出对应的文件对象。 你可以使用它的write()方法。 请注意,可能没有必要使用with语句,因为stdout不必打开或关闭。 所以,如果你需要创建一个csv.writer对象,你可以说: import sys spamwriter = csv.writer(sys.stdout) sys.stdout is a file object corresponding to the program's standard output. You can use its wri ...
-
Python的日志记录框架基于记录器的层次结构。 无论记录到tornado.access ,默认情况下都会传播到根记录器(默认情况下转到stderr)。 如果您不希望访问日志重复,请设置propagate属性: access_log.propagate = False Python's logging framework is based on a hierarchy of loggers. Whatever is logged to tornado.access is also by default p ...
-
将stdout重定向到日志文件,同时仍然打印到stdout?(Redirect stdout to log file while still printing to stdout?)[2023-08-02]
我在我的一个项目中使用了这个: import io import sys from enum import Enum class Tee(io.StringIO): class Source(Enum): STDOUT = 1 STDERR = 2 def __init__(self, clone=Source.STDOUT, *args, **kwargs): super().__init__(*args, **kwargs) ... -
这不是完整的代码,只是我在5分钟内提出的,但它应该能够提供足够的信息来满足您的要求。 如果您有任何疑问或需要进一步解释,请告诉我。 from tornado import gen, httpclient, ioloop @gen.coroutine def main(): client = httpclient.AsyncHTTPClient() response = yield client.fetch( 'https://findicons.com/files/icon ...
-
龙卷风文件上传被阻止(tornado file upload is blocking)[2022-02-26]
@asynchronous装饰器应该用于标记已经异步的方法; 它不会使方法异步。 这个post方法是同步的,因为它在将控制权返回给IOLoop之前完成了它要做的所有事情。 你需要使upload()方法异步(这通常意味着它将采用一个回调参数或返回一个Future ),然后调用它而不阻塞post() (我建议使用@gen.coroutine装饰器并调用慢速操作通过让他们回归的Futures )。 The @asynchronous decorator should be used to mark a metho ... -
在阿帕奇中运行龙卷风(Running Tornado in apache)[2023-09-04]
您不能将websockets与Tornado的WSGIApplication一起使用。 要使用Tornado的websocket支持,你必须使用Tornado的HTTPServer,而不是apache。 You can't use websockets with Tornado's WSGIApplication. To use Tornado's websocket support you have to use Tornado's HTTPServer, not apache. -
写入stdout而不是文件(Write to stdout instead of file)[2022-12-18]
通常你使用“ - ”来指定stdout,但并非所有命令都接受这个,我不关心gpg。 例如: tar -cvzf - foo/ ¦ split -b 50k foobar_ 将“tar-file”传递给stdout,将其拆分并保存到“foobar_ <123 ...>”。 Usually you use "-" to specify stdout, but not all commands accept this and I don't about gpg. For example: tar -cvzf - ... -
Tornado日志流只是来自“logging”python模块的标准记录器。 python网站上有很好的教程https://docs.python.org/3/howto/logging.html#advanced-logging-tutorial 根据如何设置处理程序(相同的教程) https://docs.python.org/3/howto/logging.html#handlers The Tornado logging streams are just standard loggers from ...
-
这是因为除了你用tee做的事情之外,你还用> bin/newfile.conf重定向屏幕输出。 只需删除>及其后的所有内容即可。 如果除了屏幕之外还要一次输出这两个文件,可以使用tee两次,例如: printf ... | tee -a bin/logfile.log | tee bin/newfile.conf 这将附加到logfile.log并覆盖newfile.conf ,并写入屏幕。 根据需要使用或省略-a选项。 正如John1024指出的那样你也可以使用tee一次,因为它接受多个文件名,虽然在这 ...
-
您可以尝试使用正则表达式处理stdout中的响应,并获得平均时间。 或者您可以使用python模块并自己执行,就像在此线程中描述的那样在Python中ping一个站点? 编辑:最简单的方法是使用正则表达式。 我稍微修改了你的代码snipet: import subprocess, re list_of_ips = ["facebook.com", "google.com"] for ip in list_of_ips: ping_process = subprocess.Popen(['ping' ...