How to setup OpenID Connect Authorization code grant flow with PKCE using AWS Cognito?

Поділитися
Вставка
  • Опубліковано 1 січ 2025

КОМЕНТАРІ • 13

  • @securityinaction1018
    @securityinaction1018  2 роки тому +1

    Please subscribe to this channel for regular updates ua-cam.com/channels/EEayyyCrJO94FYlzF0NLTg.html
    Thank You for the support.

  • @zulucharlie5244
    @zulucharlie5244 3 місяці тому

    Outstanding, really outstanding helpful video. Thank you.

    • @securityinaction1018
      @securityinaction1018  3 місяці тому

      Glad it was helpful!
      Please like, subscribe & share this video / channel !! Thanks in advance.

  • @GrégoryDugernier
    @GrégoryDugernier Рік тому

    Thanks for the video!
    Do you know if it's possible to setup a code grant flow with PKCE without going through Cognito Hosted UI? We have a custom authentication app and we would like to avoid reinventing the wheel if Cognito offers a solution out of the box.

    • @securityinaction1018
      @securityinaction1018  Рік тому +1

      It is not possible. But, you can use Cognito custom authentication flows in case you want to continue with your current authentication app. The only problem is that you need to build the PKCE flows which is not advisable.

    • @GrégoryDugernier
      @GrégoryDugernier Рік тому

      @@securityinaction1018 Hmmm it should be simple enough: a custom auth flow + a dynamoDB table with a short TTL to store the code challenges. More work than if Cognito has a dedicated endpoint or an existing option on InitiateAuth(), but still achievable.
      Thanks a lot for the reply :)

    • @securityinaction1018
      @securityinaction1018  Рік тому

      Great, that works :)

  • @bodyshapeandmotivation
    @bodyshapeandmotivation 2 роки тому

    Hi im trying for the custom lamda authorizer using cognito ,openid and okta but non of them works fine , need to machine to machine authorization and get /put the value from dynmo db

    • @securityinaction1018
      @securityinaction1018  2 роки тому

      Custom Authorizer is not required for Lambda. You can follow this video ua-cam.com/video/4n5Ssr3NZRc/v-deo.html to configure Cognito as the authorizer. For Okta, you can either use HTTP API or REST API. For HTTP API, follow this video ua-cam.com/video/3y_UAPzmv1g/v-deo.html. For REST API, I am yet to post a video.

    • @bodyshapeandmotivation
      @bodyshapeandmotivation 2 роки тому

      @@securityinaction1018 Iam doing machine to machine authorization where from api end point i will hit the lamda , the lambda will fetch the client criendiatls which is in the Oauth validate it and after that it will put/get the records from the dynamo db , Non of the lambda auth found in github ,code not working fine and in the other blogs not given the correct direction how to do it , im validating via header fyi -Ignore my typos

    • @securityinaction1018
      @securityinaction1018  2 роки тому +1

      You can follow this blog awskarthik82.medium.com/part-1-securing-aws-api-gateway-using-aws-cognito-oauth2-scopes-410e7fb4a4c0 which uses machine-to-machine authorization using client credentials grant.

  • @buckyrobert6570
    @buckyrobert6570 Рік тому

    Is there any example on hoe to achieve this in angular ?

    • @securityinaction1018
      @securityinaction1018  Рік тому

      I have not tried with angular. You can search in google for some solution.