Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Let’s talk about OAuth2 and PKCE in Go

Let’s talk about OAuth2 and PKCE in Go

line_developers_tw2

June 01, 2021
Tweet

More Decks by line_developers_tw2

Other Decks in Technology

Transcript

  1. Evan Lin • LINE Tech Event Organizer • Community Organizer

    • GDE, Love Golang LINE Technology Evangelist
  2. Agenda •OAuth2 and OpenID •How to implement LINE Login in

    Go •Issue in OAuth2 •Introducing PKCE •How to implement PKCE in Go (LINE Login) •Summary
  3. Access LINE Login AUTH URL • SDK https://github.com/kkdai/line-login-sdk-go • Web

    starter https://github.com/kkdai/line-login-go • Demo site: https://login-tester-evan.herokuapp.com/
  4. PKCE (Proof Key for Code Exchange) • Google RFC since

    2015 (RFC 7636) • Also in Google API https://developers.google.com/identity/p rotocols/oauth2/native-app#exchange- authorization-code
  5. LINE Login PKCE Process • SDK https://github.com/kkdai/line-login-sdk-go • Web starter

    https://github.com/kkdai/line-login-pkce-go • Demo site: https://line-login-pkce.herokuapp.com/
  6. All GitHub Resources • LINE Login SDK https://github.com/kkdai/line-login-sdk-go • LINE

    Login Web starter • https://github.com/kkdai/line-login-go • Demo site: https://login-tester-evan.herokuapp.com/ • LINE Login with PKCE Web Starter • https://github.com/kkdai/line-login-pkce-go • Demo site: https://line-login-pkce.herokuapp.com/
  7. Summary •Introducing OAuth2 work flow •Introducing PKCE and how it

    works •Introducing LINE Login related packages in Go (mine) •Feel free to ”star” or “pull request”.