跟我学Shiro - 张开涛.................................................................................... 126 第十七章 OAUTH2 集成 ............................................................................................. 第十七章 OAuth2 集成 目前很多开放平台如新浪微博开放平台都在使用提供开放 API 接口供开发者使用,随之带 来了第三方应用要到开放平台进行授权的问题,OAuth 就是干这个的,OAuth2 是 OAuth 协议的下一个版本,相比 OAuth1,OAuth2 整个授权流程更简单安全了,但不兼容 OAuth1, 具 体 可 以 到 OAuth2 官 网 http://oauth.net/2/ net/2/ 查 看 , OAuth2 协 议 规 范 可 以 参 考 http://tools.ietf.org/html/rfc6749。目前有好多参考实现供选择,可以到其官网查看下载。 本文使用 Apache Oltu,其之前的名字叫 Apache Amber ,是 Java 版的参考实现。使用文档 可参考 https://cwiki.apache.org/confluence/display0 码力 | 219 页 | 4.16 MB | 10 月前3
Tornado 6.5 Documentationauthorize_redirect( redirect_uri='http://your.site.com/auth/google', client_id=self.settings['google_oauth']['key'], scope=['profile', 'email'], response_type='code', extra_params={'approval_prompt': 'auto'}) 5.1 6.6 Integration with other services 6.6.1 tornado.auth — Third-party login with OpenID and OAuth This module contains implementations of various third-party authentication schemes. All the classes differently. See the individual service classes below for complete documentation. Example usage for Google OAuth: class GoogleOAuth2LoginHandler(tornado.web.RequestHandler, tornado.auth.GoogleOAuth2Mixin): async0 码力 | 272 页 | 1.12 MB | 3 月前3
Tornado 6.5 Documentationmultiple processes Integration with other services tornado.auth — Third-party login with OpenID and OAuth tornado.wsgi — Interoperability with other Python frameworks and servers tornado.platform.caresresolver redirect_uri='http://your.site.com/auth/google', client_id=self.settings['google_oauth']['key'], scope=['profile', 'email'], response_type='code', SIGCHLD handler.Integration with other services tornado.auth — Third-party login with OpenID and OAuth Common protocols OpenIdMixin OpenIdMixin.authenticate_redirect() OpenIdMixin.get_authenticated_user()0 码力 | 437 页 | 405.14 KB | 3 月前3
Guzzle PHP 5.3 Documentationover the wire using customizable log message templates. OAuth Subscriber [https://github.com/guzzle/oauth-subscriber] Signs requests using OAuth 1.0. Cache Subscriber [https://github.com/guzzle/cache-subscriber] sent over the wire, emit progress events as data is uploaded and downloaded, sign requests using OAuth 1.0, verify the integrity of messages before and after they are sent over the wire, and anything else0 码力 | 72 页 | 312.62 KB | 11 月前3
Guzzle PHP 5.3 Documentationsent over the wire, emit progress events as data is uploaded and downloaded, sign requests using OAuth 1.0, verify the integrity of messages before and after they are sent over the wire, and anything else requests and responses sent over the wire using customizable log message templates. OAuth Subscriber Signs requests using OAuth 1.0. Cache Subscriber Implements a private transparent proxy cache that caches0 码力 | 63 页 | 275.75 KB | 11 月前3
TiDB v8.5 DocumentationPulsar oauth2 issuer-url. For more information, see the Pulsar website: �→ https://pulsar.apache.org/docs/2.10.x/client-libraries-go/#tls- �→ encryption-and-authentication 943 oauth2.oauth2-issuer-url="https://xxxx Pulsar oauth2 audience oauth2.oauth2-audience="https://xxxx.auth0.com/api/v2/" #### Pulsar oauth2 private-key oauth2.oauth2-private-key="/data/pulsar/privateKey" #### Pulsar oauth2 client-id oauth2.oauth2-client-id="0Xx oauth2-client-id="0Xx...Yyxeny" #### Pulsar oauth2 oauth2-scope oauth2.oauth2-scope="xxxx" #### The number of cached Pulsar producers in TiCDC. The value is 10240 by �→ default. Each Pulsar producer corresponds0 码力 | 6730 页 | 111.36 MB | 10 月前3
TiDB v8.2 DocumentationPulsar oauth2 issuer-url. For more information, see the Pulsar website �→ : https://pulsar.apache.org/docs/2.10.x/client-libraries-go/#tls- �→ encryption-and-authentication 2776 oauth2.oauth2-issuer-url="https://xxxx Pulsar oauth2 audience oauth2.oauth2-audience="https://xxxx.auth0.com/api/v2/" ##### Pulsar oauth2 private-key oauth2.oauth2-private-key="/data/pulsar/privateKey" ##### Pulsar oauth2 client-id oauth2.oauth2-client-id="0Xx oauth2-client-id="0Xx...Yyxeny" ##### Pulsar oauth2 oauth2-scope oauth2.oauth2-scope="xxxx" ##### The number of cached Pulsar producers in TiCDC. The value is 10240 by �→ default. Each Pulsar producer corresponds0 码力 | 6549 页 | 108.77 MB | 10 月前3
TiDB v8.3 DocumentationPulsar oauth2 issuer-url. For more information, see the Pulsar website �→ : https://pulsar.apache.org/docs/2.10.x/client-libraries-go/#tls- �→ encryption-and-authentication 2784 oauth2.oauth2-issuer-url="https://xxxx Pulsar oauth2 audience oauth2.oauth2-audience="https://xxxx.auth0.com/api/v2/" ##### Pulsar oauth2 private-key oauth2.oauth2-private-key="/data/pulsar/privateKey" ##### Pulsar oauth2 client-id oauth2.oauth2-client-id="0Xx oauth2-client-id="0Xx...Yyxeny" ##### Pulsar oauth2 oauth2-scope oauth2.oauth2-scope="xxxx" ##### The number of cached Pulsar producers in TiCDC. The value is 10240 by �→ default. Each Pulsar producer corresponds0 码力 | 6606 页 | 109.48 MB | 10 月前3
TiDB v8.4 Documentation##### Pulsar oauth2 issuer-url. For more information, see the Pulsar website �→ : https://pulsar.apache.org/docs/2.10.x/client-libraries-go/#tls- �→ encryption-and-authentication oauth2.oauth2-issuer-url="https://xxxx Pulsar oauth2 audience oauth2.oauth2-audience="https://xxxx.auth0.com/api/v2/" ##### Pulsar oauth2 private-key oauth2.oauth2-private-key="/data/pulsar/privateKey" ##### Pulsar oauth2 client-id oauth2.oauth2-client-id="0Xx oauth2-client-id="0Xx...Yyxeny" ##### Pulsar oauth2 oauth2-scope oauth2.oauth2-scope="xxxx" ##### The number of cached Pulsar producers in TiCDC. The value is 10240 by �→ default. Each Pulsar producer corresponds0 码力 | 6705 页 | 110.86 MB | 10 月前3
TiDB v8.1 Documentation##### Pulsar oauth2 issuer-url. For more information, see the Pulsar website �→ : https://pulsar.apache.org/docs/2.10.x/client-libraries-go/#tls- �→ encryption-and-authentication oauth2.oauth2-issuer-url="https://xxxx ##### Pulsar oauth2 audience oauth2.oauth2-audience="https://xxxx.auth0.com/api/v2/" 2752 ##### Pulsar oauth2 private-key oauth2.oauth2-private-key="/data/pulsar/privateKey" ##### Pulsar oauth2 client-id client-id oauth2.oauth2-client-id="0Xx...Yyxeny" ##### Pulsar oauth2 oauth2-scope oauth2.oauth2-scope="xxxx" ##### The number of cached Pulsar producers in TiCDC. The value is 10240 by �→ default. Each Pulsar0 码力 | 6479 页 | 108.61 MB | 10 月前3
共 15 条
- 1
- 2













