简体   繁体   English

使用 Auth0 SSO 集成 Salesforce 和 Angular App

[英]Integration Salesforce and Angular App using Auth0 SSO

The project that I'm working on requires user to login from Salesforce lightening app and redirect it to external page Angular which bypasses the login page of angular and enter to dashboard which is nothing but SSO.我正在处理的项目要求用户从 Salesforce 闪电应用程序登录并将其重定向到外部页面 Angular 绕过 angular 的登录页面并进入 SSO 仪表板,但什么都不是。

Currently Salesforce app is integrated with Auth0 application and user management is taken care by Auth0.目前 Salesforce 应用程序与 Auth0 应用程序集成,用户管理由 Auth0 负责。 If user is not logged in Salesforce App, he/she should be redirect back to salesforce login page.如果用户没有登录 Salesforce 应用程序,他/她应该被重定向回 salesforce 登录页面。

I want help in some documentations which could help me in integrating them.我需要一些文档的帮助,这些文档可以帮助我整合它们。

So you want to create an angular app which uses auth0 as identity provider and the login process is handled by a Salesforce lightning app.所以你想创建一个 angular 应用程序,它使用 auth0 作为身份提供者,登录过程由 Salesforce 闪电应用程序处理。

You should take a look into https://auth0.com/docs/api/authentication#saml and how to integrate the API endpoints with http client https://angular.io/guide/http . You should take a look into https://auth0.com/docs/api/authentication#saml and how to integrate the API endpoints with http client https://angular.io/guide/http .

I have done some similar stuff but rolled my own OAuth2 implementation in angular that's used internally so I can't share it, however there are a few npm packages for OAuth2 in angular that you can implement pretty easily such as https://www.npmjs.com/package/angular-oauth2-oidc I have done some similar stuff but rolled my own OAuth2 implementation in angular that's used internally so I can't share it, however there are a few npm packages for OAuth2 in angular that you can implement pretty easily such as https://www. npmjs.com/package/angular-oauth2-oidc

You should probably clarify what OAuth2 flow you are using, are you also implementing OIDC, what have you tried already, code samples etc.您可能应该澄清您正在使用什么 OAuth2 流程,您是否还实现了 OIDC,您已经尝试过什么,代码示例等。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM