![](/img/trans.png)
[英]User Authentication in Django Rest Framework + Angular.js web app
[英]OpenID connect based authentication in Angular.js with (drf oidc) Django rest framework backend
有没有办法为后端和前端编写逻辑?
在我目前的流程中,我们正在使用Django rest-framework登录,现在我们需要在项目中集成OpenID connect SSO,以指导我如何将OpenID连接SSO与Django-rest框架集成。
有GitHub的例子吗? 我正在寻找一个示例代码。
我们可以使用隐式流,我添加了一个如何将OIDC与客户端应用程序一起使用的示例。
前端获取访问令牌: http : //django-oidc-provider.readthedocs.io/en/develop/sections/examples.html#pure-js-client-using-implicit-flow
您还必须在后端验证ID_TOKEN:
https://openid.net/specs/openid-connect-implicit-1_0.html#IDTokenValidation
示例代码: https : //github.com/ranvijay-sachan/django-rest-login-and-social_auth
我已使用Google open id连接测试任何SSO提供商,您可以使用python social auth在代码下面添加:
在这里它有用户angualr Js与django-rest-framework-jwt
https://github.com/rmemon/Angular-JS-django-rest-framework-jwt
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.