+ All Categories
Home > Documents > 31. 1. 2019 Autentizace QR kódem - CESNETOpenID Connect (OIDC) Standardizované OAuth2 Device flow...

31. 1. 2019 Autentizace QR kódem - CESNETOpenID Connect (OIDC) Standardizované OAuth2 Device flow...

Date post: 25-Jun-2020
Category:
Upload: others
View: 10 times
Download: 0 times
Share this document with a friend
14
Autentizace QR kódem Slávek Licehammer [email protected] Seminář o bezpečnosti sítí a služeb 31. 1. 2019
Transcript
Page 1: 31. 1. 2019 Autentizace QR kódem - CESNETOpenID Connect (OIDC) Standardizované OAuth2 Device flow Pluggable Authentication Module (PAM) PAM modul s podporou OAuth2 Device flow Lze

Autentizace QR kódem

Slávek [email protected]

Seminář o bezpečnosti sítí a služeb31. 1. 2019

Page 2: 31. 1. 2019 Autentizace QR kódem - CESNETOpenID Connect (OIDC) Standardizované OAuth2 Device flow Pluggable Authentication Module (PAM) PAM modul s podporou OAuth2 Device flow Lze

Použití autentizace QR kódem

● Pro newebové služby● Podpora federované autentizace (např. s využitím eduID.cz)● Využití standardních technologií● Minimální nároky na uživatele

● Ukázka na přístupu na stroj pomocí SSH

Page 3: 31. 1. 2019 Autentizace QR kódem - CESNETOpenID Connect (OIDC) Standardizované OAuth2 Device flow Pluggable Authentication Module (PAM) PAM modul s podporou OAuth2 Device flow Lze
Page 4: 31. 1. 2019 Autentizace QR kódem - CESNETOpenID Connect (OIDC) Standardizované OAuth2 Device flow Pluggable Authentication Module (PAM) PAM modul s podporou OAuth2 Device flow Lze
Page 5: 31. 1. 2019 Autentizace QR kódem - CESNETOpenID Connect (OIDC) Standardizované OAuth2 Device flow Pluggable Authentication Module (PAM) PAM modul s podporou OAuth2 Device flow Lze
Page 6: 31. 1. 2019 Autentizace QR kódem - CESNETOpenID Connect (OIDC) Standardizované OAuth2 Device flow Pluggable Authentication Module (PAM) PAM modul s podporou OAuth2 Device flow Lze
Page 7: 31. 1. 2019 Autentizace QR kódem - CESNETOpenID Connect (OIDC) Standardizované OAuth2 Device flow Pluggable Authentication Module (PAM) PAM modul s podporou OAuth2 Device flow Lze

Použité koncepty a technologie

● Out of band autentizace● OpenID Connect (OIDC)

○ Standardizované OAuth2 Device flow

● Pluggable Authentication Module (PAM)○ PAM modul s podporou OAuth2 Device flow○ Lze použít pro jakoukoliv službu podporující PAM

● Jednoduché pro uživatele○ Stačí vyfotit QR obsahující URL○ Alternativně lze URL přepsat ručně

● Single sign-on

Page 8: 31. 1. 2019 Autentizace QR kódem - CESNETOpenID Connect (OIDC) Standardizované OAuth2 Device flow Pluggable Authentication Module (PAM) PAM modul s podporou OAuth2 Device flow Lze

+----------+ +----------------+ | |>---(A)-- Client Identifier --->| | | | | | | |<---(B)-- Verification Code, --<| | | | User Code, | | | | & Verification URI | | | Device | | | | Client | Client Identifier & | | | |>---(E)-- Verification Code --->| | | | polling... | | | |>---(E)-- Verification Code --->| | | | | Authorization | | |<---(F)-- Access Token --------<| Server | +----------+ (w/ Optional Refresh Token) | | v | | : | | (C) User Code & Verification URI | | : | | v | | +----------+ | | | End user | | | | at |<---(D)-- User authenticates -->| | | Browser | | | +----------+ +----------------+

Page 9: 31. 1. 2019 Autentizace QR kódem - CESNETOpenID Connect (OIDC) Standardizované OAuth2 Device flow Pluggable Authentication Module (PAM) PAM modul s podporou OAuth2 Device flow Lze
Page 10: 31. 1. 2019 Autentizace QR kódem - CESNETOpenID Connect (OIDC) Standardizované OAuth2 Device flow Pluggable Authentication Module (PAM) PAM modul s podporou OAuth2 Device flow Lze
Page 11: 31. 1. 2019 Autentizace QR kódem - CESNETOpenID Connect (OIDC) Standardizované OAuth2 Device flow Pluggable Authentication Module (PAM) PAM modul s podporou OAuth2 Device flow Lze
Page 12: 31. 1. 2019 Autentizace QR kódem - CESNETOpenID Connect (OIDC) Standardizované OAuth2 Device flow Pluggable Authentication Module (PAM) PAM modul s podporou OAuth2 Device flow Lze
Page 13: 31. 1. 2019 Autentizace QR kódem - CESNETOpenID Connect (OIDC) Standardizované OAuth2 Device flow Pluggable Authentication Module (PAM) PAM modul s podporou OAuth2 Device flow Lze

Možná využití a rozšíření

● OIDC agent (obdoba ssh-agent) ○ Proof of concept implementace○ Modifikace Dropbear SSH serveru○ Nutnost mít OIDC agent nainstalovaný na klientské straně

● Použití na libovolném zařízení schopné zobrazit QR kód○ Sdílené tiskárny, náhrada karet na zabezpečení místností, IOT zařízení

● Aplikace v mobilu jako náhrada federovaného přihlášení○ Single sign-on ○ Jednodušší na použití

Page 14: 31. 1. 2019 Autentizace QR kódem - CESNETOpenID Connect (OIDC) Standardizované OAuth2 Device flow Pluggable Authentication Module (PAM) PAM modul s podporou OAuth2 Device flow Lze

Děkuji za pozornostZdrojový kód PAM modulu:

https://github.com/ICS-MU/pam_oauth2_device

Slávek [email protected]

Seminář o bezpečnosti sítí a služeb31. 1. 2019


Recommended