ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก

OAuth 2.0 Web Server Flow in Salesforce | Implementation using LWC

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 พ.ย. 2022
  • In this video, we are going to talk about OAuth 2.0 Web Server Flow for Web App Integration. The first step in this flow is to get the authorization code, then 2nd step is to get the access token.
    Here are the Salesforce docs
    help.salesforce.com/s/article...
    You can also follow me on LinkedIn
    / samarth-ahuja-47b0a1161
    #salesforce #lwc #apex #oauth2 #oauth

ความคิดเห็น • 20

  • @SpiritofanEagle
    @SpiritofanEagle 5 หลายเดือนก่อน

    Thank you! great presentation dude.

  • @JosephVloggs
    @JosephVloggs ปีที่แล้ว

    love this mate

  • @Y_dwivediy
    @Y_dwivediy ปีที่แล้ว

    Nicely explained all the details here @Samarth. Really appreciated . Quick suggestion : Can you try to to put the source code somewhere , i might help in case of any confusion .

  • @SamikDutta83
    @SamikDutta83 13 วันที่ผ่านมา

    using connected app can we pass client id and client secret without exposing them in code?

  • @silpanagaraj4497
    @silpanagaraj4497 11 วันที่ผ่านมา

    Hello bro azure ad connected to Salesforce single sign on ...azure team asking for Salesforce redirect uri what will be the url

  • @neelamagrawal3062
    @neelamagrawal3062 หลายเดือนก่อน

    Thanks for amazing content , can you please help us where we can get pdf of your video. Thanks again

  • @Mahesh_Mahi_8121
    @Mahesh_Mahi_8121 2 หลายเดือนก่อน

    Thanks for the great explanation. I have a question can't we use Named Credentials for Web server flow? if so can you please explain. If not can you also expalin why we cannot use Named Credentials config for web server flow.

  • @NoName-hd1gk
    @NoName-hd1gk ปีที่แล้ว +1

    Hi @Samarth , Can you please tell how did you placed LWC component on Salesforce Site ? I used LWC component on App Page and also on Lightning Tab but on redirection code in the url disappear before JS file reads it. Thanks.

    • @samCoder
      @samCoder  ปีที่แล้ว

      Hey, It’s a experience builder site. There you can place your lightning components

  • @bakshirocks
    @bakshirocks ปีที่แล้ว

    Hello, can’t we make the POST call to get the token directly from JS file using FETCH instead of calling APEX?

    • @samCoder
      @samCoder  ปีที่แล้ว

      Hey, we can’t. Seems like Salesforce won’t allow that for their token endpoints.

  • @bakshirocks
    @bakshirocks ปีที่แล้ว

    Hi Samarth, great video and series. I have one question if you can pls respond. Can we not use Named Credentials and Auth Providers to achieve all of these integrations? If thats correct, then whats the need of performing all of these steps? Are named credentials/auth providers not available for all types of integrations? And also do we need to create a connected APP only when we are using Auth Provider? Because in this video we did not have to create one? Please respond if you can..

    • @samCoder
      @samCoder  ปีที่แล้ว

      Hi, Named Credentials and Auth Providers are used when we want to make a callout from Salesforce. While this series is about OAuth Flows in Salesforce, which is needed when the external application needs to make a request to Salesforce. Before making the request, external app will need a access token. So these flows are basically used to handle Call-ins

    • @bakshirocks
      @bakshirocks ปีที่แล้ว

      @@samCoderWhat if we want to make an authenticated callout to a third party which is not present as auth provider in salesforce? In that case, we can only create an auth provider if they support open ID connect? Or else we will have to create the oAuth logic like you did in this video? Thanks for the response..!

    • @samCoder
      @samCoder  ปีที่แล้ว

      @@bakshirocks use Openid connect. If that’s not feasible, write a custom logic.

  • @kushalreddy4433
    @kushalreddy4433 ปีที่แล้ว

    Can I log in to another org with my client credentials?

    • @kushalreddy4433
      @kushalreddy4433 ปีที่แล้ว

      Like I want to login to any org with only username and password and not their client credentials and access token

    • @samCoder
      @samCoder  ปีที่แล้ว

      You can use OAuth Username password flow to get the access token for that specific org using your credentials.

  • @sasireddypolimera
    @sasireddypolimera 6 หลายเดือนก่อน

    hii @samcoder can u provide the source code i loved it ur explaination