Submit Search
Upload
SSOとか、SAMLとか、認証してみる
•
0 likes
•
181 views
T
Takahiro Kobaru
Follow
俺の話を聞け!!LT大会#11 での発表資料です
Read less
Read more
Engineering
Report
Share
Report
Share
1 of 37
Download now
Download to read offline
Recommended
Building Awesome APIs in Grails
Building Awesome APIs in Grails
clatimer
Building a scalable API with Grails
Building a scalable API with Grails
Tanausu Cerdeña
20161215 python pandas-spark四方山話
20161215 python pandas-spark四方山話
Ryuji Tamagawa
Apex on Local - Better Alternative to Salesforce DX
Apex on Local - Better Alternative to Salesforce DX
tzm_freedom
Land
Land
tzm_freedom
データの民主化のために StackStorm を活用した事例
データの民主化のために StackStorm を活用した事例
Yoshiyasu SAEKI
DataSploit - BlackHat Asia 2017
DataSploit - BlackHat Asia 2017
Shubham Mittal
Perl ウェブ開発の中世〜CGI と Plack の間〜
Perl ウェブ開発の中世〜CGI と Plack の間〜
鉄次 尾形
Recommended
Building Awesome APIs in Grails
Building Awesome APIs in Grails
clatimer
Building a scalable API with Grails
Building a scalable API with Grails
Tanausu Cerdeña
20161215 python pandas-spark四方山話
20161215 python pandas-spark四方山話
Ryuji Tamagawa
Apex on Local - Better Alternative to Salesforce DX
Apex on Local - Better Alternative to Salesforce DX
tzm_freedom
Land
Land
tzm_freedom
データの民主化のために StackStorm を活用した事例
データの民主化のために StackStorm を活用した事例
Yoshiyasu SAEKI
DataSploit - BlackHat Asia 2017
DataSploit - BlackHat Asia 2017
Shubham Mittal
Perl ウェブ開発の中世〜CGI と Plack の間〜
Perl ウェブ開発の中世〜CGI と Plack の間〜
鉄次 尾形
Erlangでソフトウェアルータを作ってる話
Erlangでソフトウェアルータを作ってる話
Takahiro Kobaru
AppSyncをReactで使ってみた
AppSyncをReactで使ってみた
Takahiro Kobaru
Mnesiaで分散ノードに入門してみた
Mnesiaで分散ノードに入門してみた
Takahiro Kobaru
ReactでGraphQLを使っている
ReactでGraphQLを使っている
Takahiro Kobaru
Phoenix + Reactで 社内システムを 密かに作ってる
Phoenix + Reactで 社内システムを 密かに作ってる
Takahiro Kobaru
GoとElixir、同時開発した時の気づき
GoとElixir、同時開発した時の気づき
Takahiro Kobaru
Elixir ライブラリ 「absinthe」でGraphQLに入門
Elixir ライブラリ 「absinthe」でGraphQLに入門
Takahiro Kobaru
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
Asst.prof M.Gokilavani
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
VICTOR MAESTRE RAMIREZ
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
9953056974 Low Rate Call Girls In Saket, Delhi NCR
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
hassan khalil
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
PoojaBan
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
ranjana rawat
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
misbanausheenparvam
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
Asst.prof M.Gokilavani
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
Suhani Kapoor
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Dr.Costas Sachpazis
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZTE
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Anamika Sarkar
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
null - The Open Security Community
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
KurinjimalarL3
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
DeepakSakkari2
More Related Content
More from Takahiro Kobaru
Erlangでソフトウェアルータを作ってる話
Erlangでソフトウェアルータを作ってる話
Takahiro Kobaru
AppSyncをReactで使ってみた
AppSyncをReactで使ってみた
Takahiro Kobaru
Mnesiaで分散ノードに入門してみた
Mnesiaで分散ノードに入門してみた
Takahiro Kobaru
ReactでGraphQLを使っている
ReactでGraphQLを使っている
Takahiro Kobaru
Phoenix + Reactで 社内システムを 密かに作ってる
Phoenix + Reactで 社内システムを 密かに作ってる
Takahiro Kobaru
GoとElixir、同時開発した時の気づき
GoとElixir、同時開発した時の気づき
Takahiro Kobaru
Elixir ライブラリ 「absinthe」でGraphQLに入門
Elixir ライブラリ 「absinthe」でGraphQLに入門
Takahiro Kobaru
More from Takahiro Kobaru
(7)
Erlangでソフトウェアルータを作ってる話
Erlangでソフトウェアルータを作ってる話
AppSyncをReactで使ってみた
AppSyncをReactで使ってみた
Mnesiaで分散ノードに入門してみた
Mnesiaで分散ノードに入門してみた
ReactでGraphQLを使っている
ReactでGraphQLを使っている
Phoenix + Reactで 社内システムを 密かに作ってる
Phoenix + Reactで 社内システムを 密かに作ってる
GoとElixir、同時開発した時の気づき
GoとElixir、同時開発した時の気づき
Elixir ライブラリ 「absinthe」でGraphQLに入門
Elixir ライブラリ 「absinthe」でGraphQLに入門
Recently uploaded
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
Asst.prof M.Gokilavani
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
VICTOR MAESTRE RAMIREZ
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
9953056974 Low Rate Call Girls In Saket, Delhi NCR
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
hassan khalil
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
PoojaBan
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
ranjana rawat
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
misbanausheenparvam
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
Asst.prof M.Gokilavani
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
Suhani Kapoor
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Dr.Costas Sachpazis
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZTE
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Anamika Sarkar
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
null - The Open Security Community
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
KurinjimalarL3
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
DeepakSakkari2
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
GDSCAESB
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
ranjana rawat
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
srsj9000
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
RajaP95
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
Recently uploaded
(20)
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
SSOとか、SAMLとか、認証してみる
1.
SSO SAML !!LT #11 2018/9/12
2.
• • Fusic • Twitter
:@kobatako_ • Qiita : @kobatako
3.
• SSO SAML • •
4.
SSO SAML
5.
SSO • Single Sign-On •
ID
6.
SAML • Security Assertion
Markup Language • SSO • XML
7.
• IdP Id
Provider • • • SP Service Provider • • IdP
8.
SPIdP
9.
SPIdP SP SAML
10.
SPIdP SAML IdP
11.
SPIdP IdP SAML
12.
SPIdP SAML SP SP SAML
13.
14.
• IdP SP •
IdP : SimpleSAMLphp PHP • SP : Samly Elixir
15.
SAML 1. IdP 2. SP 3.
SP IdP metadata 4. IdP SP metadata
16.
metadata 🤔
17.
metadata • metadata •
SP IdP
18.
IdP • URL tar.gz •
https://simplesamlphp.org/docs/stable/ simplesamlphp-install • apache Alias • Admin
19.
IdP • http://(IdP )/simplesaml
20.
SP • Samly • SAML
2.0 SP • Erlang esaml • Phoenix • ※ !! • https://qiita.com/melpon/items/4138f757af58654d7494
21.
SP • IdP /sso •
Sign in Sign out scope "/sso" do forward "/", Samly.Router end # /sso/auth/signin/(IdP ID IdP Sign in # /sso/auth/signout/(IdP ID IdP Sign out # /sso/sp/metadata/(IdP ID IdP
22.
SP • SP IdP •
metadata_file IdP metadata config :samly, Samly.Provider, idp_id_from: :path_segment, service_providers: [ %{ id: "sp1", certfile: "priv/samly/server.crt", keyfile: "priv/samly/server.pem", org_url: "http://192.168.2.101:9400", } ], identity_providers: [ %{ id: "idp1", sp_id: "sp1", metadata_file: "idp_metadata.xml", base_url: "http://192.168.2.101:9400/sso", pre_session_create_pipeline: SsoWeb.Plugs.SamlyPipeline, } ]
23.
SP IdP metadata •
IdP metadata idp_metadata.xml • wget http://(IdP )/simplesaml/saml2/idp/metadata.php <?xml version="1.0"?> <md:EntityDescriptor xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" entityID="http://127.0.0.1:8899/ simplesaml/saml2/idp/metadata.php"> <md:IDPSSODescriptor protocolSupportEnumeration="urn:oasis:names:tc:SAML: 2.0:protocol"> </md:KeyDescriptor> <md:SingleLogoutService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP- Redirect" Location="http://127.0.0.1:8899/simplesaml/saml2/idp/ SingleLogoutService.php"/> <md:NameIDFormat>urn:oasis:names:tc:SAML:2.0:nameid-format:transient</ md:NameIDFormat> <md:SingleSignOnService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP- Redirect" Location="http://127.0.0.1:8899/simplesaml/saml2/idp/SSOService.php"/> </md:IDPSSODescriptor> </md:EntityDescriptor>
24.
IdP SP metadata •
wget http://(SP )/sso/sp/metadata/(IdP ID <md:EntityDescriptor xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:dsig="http://www.w3.org/2000/09/ xmldsig#" ID="id1536561271788772600658" entityID="http://127.0.0.1:9400/sso/sp/metadata/idp1"> </md:KeyDescriptor> <md:SingleLogoutService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-REDIRECT" Location="http://127.0.0.1:9400/sso/sp/logout/idp1"/> <md:SingleLogoutService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="http://127.0.0.1:9400/sso/sp/logout/idp1"/> <md:AssertionConsumerService isDefault="true" index="0" Binding="urn:oasis:names:tc:SAML: 2.0:bindings:HTTP-POST" Location="http://127.0.0.1:9400/sso/sp/consume/idp1"/> <md:AssertionConsumerService index="1" Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP- REDIRECT" Location="http://127.0.0.1:9400/sso/sp/consume/idp1"/> </md:SPSSODescriptor> <md:Organization> </md:ContactPerson> </md:EntityDescriptor>
25.
26.
SAML Sign In
27.
Sign In http://(SP )/sso/auth/signin/(IdP
ID http://(IdP )/simplesaml/saml2/idp/SSOService.php SP SAML SAML IdP http://(SP )
28.
http://(IdP )/simplesaml/saml2/idp/SSOService.php IdP Sign In SAML IdP
29.
http://(SP )/sso/sp/consume/ IdP
ID SAML Sign In
30.
http://(SP )/sso/sp/consume/ IdP
ID http://(SP ) SAML SP SP SAML Sign In
31.
😇
32.
apache SSO
33.
• apache mellon
module # /etc/httpd/conf.d/mellon.conf <Location / > MellonEnable info MellonEndpointPath /mellon/ MellonSPMetadataFile /etc/httpd/saml2/mellon_metadata.xml MellonSPPrivateKeyFile /etc/httpd/saml2/mellon.key MellonSPCertFile /etc/httpd/saml2/mellon.crt MellonIdPMetadataFile /etc/httpd/saml2/idp_metadata.xml </Location> <Location /private > AuthType Mellon MellonEnable auth Require valid-user </Location>
34.
• mellon SP
metadata # /usr/libexec/mod_auth_mellon/mellon_create_metadata.sh SP metadataURL SP SP metadataURL : http://(SP )/metadata SP http://(SP )/mellon http_._._._metadata.key http_._._._metadata.cert http_._._._metadata.xml •
35.
36.
• SSO IdP
SP metadata • IdP Shibboleth • SimpleSAMLphp • IdP
Download now