Share
Embed
Fukuoka.rb 2019年度上半期活動報告
jinroq
July 20, 2019
Transcript
74 slides
-
ࠓ͠Ό͍ͬͯΔਓ • name: “ODA Hirohito” • organization: “i³ Systems, Inc.”
• community: { fukuokarb: “Host Member”, rubykaigi: { “2019” => [ “Local Organizer”, “LT Speaker” ], }, } -
Fukuoka.rbͱ • Ҭ Rubyist ίϛϡχςΟʔ • ͍͍ͩͨຖिਫ༵։࠵ • جຊతʹ͘͘ձ •
Γ͍ͨࣄΛΔ • Ռൃදಛʹͳ͠ • Ruby ʹؔͯ͘͘͢͠ΔࣄΛਪ • ؾ͕࣋ͪߴ·Δͱ LT େձͱ͔͢Δ • Nishitetsu.rb -
Fukuoka.rb 2019্ظ࣮ • ߹ܭ 23 ճ։࠵ʢ#118ʙ#140ʣ • ௨ৗճ 20 ճ
• RejectKaigi 2019ʢ#131ʣ • RubyKaigi 2019 After Hackʢ#132ʣ • LT େձʢ#135ʣ -
Fukuoka.rb ͷࠓޙͷ༧ఆ • ࠓ·Ͱ௨Γ͘͘ճΛܧଓ • ؤுΒͳ͍ • དྷΔऀڋ·ͣڈΔऀΘͣ • ͲͳͨͰؾܰʹ͓ӽ͍ͩ͘͠͞
• #150 ͋ͨΓͰ LT େձΔ͔ -
Կ͕ى͖͍ͯΔͷ͔ʁ • Γ͍ͨ͜ͱ • ΞΫηετʔΫϯΛऔಘ͍ͨ͠ • Ͱ͖ͳ͍͜ͱ • ADAL for
RubyͰΞΫηετʔΫϯ͕औಘͰ͖ͳ͍ -
αϯϓϧίʔυ https://github.com/AzureAD/azure- activedirectory-library-for-ruby/blob/dev/ samples/user_credentials_example/app.rb • Ruby: 2.3.3p222 • adal: 1.0.0
E, [2019-07-19T21:37:07.670568 #98161] ERROR -- ****: Parsed an ErrorResponse with error: invalid_request and error description: AADSTS90002: Tenant '<tenant_id>>.onmicrosoft.com' not found. This may happen if there are no active subscriptions for the tenant. Check with your subscription administrator. Trace ID: <trace_id> Correlation ID: **** Timestamp: 2019-07-19 12:37:07Z. ./app.rb:22:in `<main>': uninitialized constant ADAL::FailureResponse (NameError) -
αϯϓϧίʔυ https://github.com/AzureAD/azure- activedirectory-library-for-ruby/blob/dev/ samples/user_credentials_example/app.rb • Ruby: 2.3.3p222 • adal: 1.0.0
E, [2019-07-19T21:37:07.670568 #98161] ERROR -- ****: Parsed an ErrorResponse with error: invalid_request and error description: AADSTS90002: Tenant '<tenant_id>>.onmicrosoft.com' not found. This may happen if there are no active subscriptions for the tenant. Check with your subscription administrator. Trace ID: <trace_id> Correlation ID: **** Timestamp: 2019-07-19 12:37:07Z. ./app.rb:22:in `<main>': uninitialized constant ADAL::FailureResponse (NameError) -
https://github.com/AzureAD/azure- activedirectory-library-for-ruby/issues/ 44#issuecomment-340449070 • ʮ͜ͷίϛοτ ID Λ͑ʂʯͱ͍͏ ίϝϯτ͕͋ͬͨ Issues #44
E, [2019-07-19T22:18:06.199410 #23399] ERROR -- ****: Parsed an ErrorResponse with error: invalid_request and error description: AADSTS90002: Tenant '<tenant_id>.onmicrosoft.com' not found. This may happen if there are no active subscriptions for the tenant. Check with your subscription administrator. Trace ID: <trace_id> Correlation ID: **** Timestamp: 2019-07-19 13:18:05Z. ./app.rb:22:in `<main>': uninitialized constant ADAL::FailureResponse (NameError) -
https://github.com/AzureAD/azure- activedirectory-library-for-ruby/issues/ 44#issuecomment-340449070 • ʮ͜ͷίϛοτ ID Λ͑ʂʯͱ͍͏ ίϝϯτ͕͋ͬͨ Issues #44
E, [2019-07-19T22:18:06.199410 #23399] ERROR -- ****: Parsed an ErrorResponse with error: invalid_request and error description: AADSTS90002: Tenant '<tenant_id>.onmicrosoft.com' not found. This may happen if there are no active subscriptions for the tenant. Check with your subscription administrator. Trace ID: <trace_id> Correlation ID: **** Timestamp: 2019-07-19 13:18:05Z. ./app.rb:22:in `<main>': uninitialized constant ADAL::FailureResponse (NameError) ಉ͡Τϥʔ͕ग़Δ… -
ى͖͍ͯΔࣄΛ֬ೝ͢Δ RubyͰΞΫηετʔΫϯ͕ औΕͳ͍Β͍͠Ͱ͢… ͲͷΑ͏ͳΤϥʔ͕ग़͍͔ͯͨʁ `initialize': A JSON text must at
least contain two octets! (JSON::ParserError) -
ى͖͍ͯΔࣄΛ֬ೝ͢Δ RubyͰΞΫηετʔΫϯ͕ औΕͳ͍Β͍͠Ͱ͢… ͲͷΑ͏ͳΤϥʔ͕ग़͍͔ͯͨʁ `initialize': A JSON text must at
least contain two octets! (JSON::ParserError) Τϥʔ༰͕ҟͳ͍ͬͯΔ -
ࠩΛ֬ೝ͢Δ • uninitialized constant ADAL::FailureResponse (NameError) • TENANT = '<tenant_id>.onmicrosoft.com'
• `initialize': A JSON text must at least contain two octets! (JSON::ParserError) • TENANT = 'https://login.microsoftonline.com/<tenant_id>' -
ࠩΛ֬ೝ͢Δ • uninitialized constant ADAL::FailureResponse (NameError) • TENANT = '<tenant_id>.onmicrosoft.com'
• `initialize': A JSON text must at least contain two octets! (JSON::ParserError) • TENANT = 'https://login.microsoftonline.com/<tenant_id>' JSON::ParserError Λͯ͠ΈΔ -
JSON::ParserError Λͯ͠ΈΔ • Կ͕ى͖͍͔ͯͨʁ • Ϩεϙϯε͕ JSON σʔλͰͳۭ͘จࣈ͕ฦ͖͍ͬͯͯΔ • ۭจࣈΛ
JSON.parse ͢Δͱ JSON::ParserError Λු༲͢Δ -
JSON::ParserError Λͯ͠ΈΔ • Կ͕ى͖͍͔ͯͨʁ • Ϩεϙϯε͕ JSON σʔλͰͳۭ͘จࣈ͕ฦ͖͍ͬͯͯΔ • ۭจࣈΛ
JSON.parse ͢Δͱ JSON::ParserError Λු༲͢Δ https://github.com/AzureAD/azure- activedirectory-library-for-ruby/pull/64 -
͔ͨ͠͠Β… • uninitialized constant ADAL::FailureResponse (NameError) • TENANT = '<tenant_id>'
E, [2019-07-19T22:18:06.199410 #23399] ERROR -- ****: Parsed an ErrorResponse with error: invalid_client and error description: AADSTS7000218: The request body must contain the following parameter: 'client_assertion' or 'client_secret'. Trace ID: <trace_id> Correlation ID: **** Timestamp: 2019-07-19 13:18:05Z. ./app.rb:22:in `<main>': uninitialized constant ADAL::FailureResponse (NameError) -
͔ͨ͠͠Β… • uninitialized constant ADAL::FailureResponse (NameError) • TENANT = '<tenant_id>'
E, [2019-07-19T22:18:06.199410 #23399] ERROR -- ****: Parsed an ErrorResponse with error: invalid_client and error description: AADSTS7000218: The request body must contain the following parameter: 'client_assertion' or 'client_secret'. Trace ID: <trace_id> Correlation ID: **** Timestamp: 2019-07-19 13:18:05Z. ./app.rb:22:in `<main>': uninitialized constant ADAL::FailureResponse (NameError) -
͔ͨ͠͠Β… • uninitialized constant ADAL::FailureResponse (NameError) • TENANT = '<tenant_id>'
E, [2019-07-19T22:18:06.199410 #23399] ERROR -- ****: Parsed an ErrorResponse with error: invalid_client and error description: AADSTS7000218: The request body must contain the following parameter: 'client_assertion' or 'client_secret'. Trace ID: <trace_id> Correlation ID: **** Timestamp: 2019-07-19 13:18:05Z. ./app.rb:22:in `<main>': uninitialized constant ADAL::FailureResponse (NameError) Τϥʔϝοηʔδ͕มΘͬͨʂ -
ΤϥʔϝοηʔδΛ֬ೝ͢Δ • uninitialized constant ADAL::FailureResponse (NameError) • TENANT = '<tenant_id>'
E, [2019-07-19T22:18:06.199410 #23399] ERROR -- ****: Parsed an ErrorResponse with error: invalid_client and error description: AADSTS7000218: The request body must contain the following parameter: 'client_assertion' or 'client_secret'. Trace ID: <trace_id> Correlation ID: **** Timestamp: 2019-07-19 13:18:05Z. ./app.rb:22:in `<main>': uninitialized constant ADAL::FailureResponse (NameError) -
ΤϥʔϝοηʔδΛ֬ೝ͢Δ • uninitialized constant ADAL::FailureResponse (NameError) • TENANT = '<tenant_id>'
E, [2019-07-19T22:18:06.199410 #23399] ERROR -- ****: Parsed an ErrorResponse with error: invalid_client and error description: AADSTS7000218: The request body must contain the following parameter: 'client_assertion' or 'client_secret'. Trace ID: <trace_id> Correlation ID: **** Timestamp: 2019-07-19 13:18:05Z. ./app.rb:22:in `<main>': uninitialized constant ADAL::FailureResponse (NameError) request body ʹ client_assertion ͔ client_secret ΛؚΊΔඞཁ͕͋Δ -
αϯϓϧίʔυΛݟ͢ https://github.com/AzureAD/azure- activedirectory-library-for-ruby/blob/dev/ samples/user_credentials_example/app.rb • Ruby: 2.3.3p222 • adal: 1.0.0
client_assertion client_secret ઃఆ͞Ε͍ͯͳ͍ -
αϯϓϧίʔυΛݟ͢ https://github.com/AzureAD/azure- activedirectory-library-for-ruby/blob/dev/ samples/user_credentials_example/app.rb • Ruby: 2.3.3p222 • adal: 1.0.0
https://github.com/AzureAD/azure- activedirectory-library-for-ruby/pull/65 -
·ͱΊ • ʮΓ߹͍ʹ ADAL for Ruby ͷϝϯςφʔ͕͍Δͧʂʯͱ͍͏ํ͕ ͍Βͬ͠Ό͍·ͨ͠ΒɺODA ͷ PR
ΛϨϏϡʔ͢ΔΑ͏͓͍͑ͩ͘͞ • ࢮΜͩαʔϏεʹͳΒͳ͍Α͏࠳͚ͣʹ Contribute ͠ଓ͚Δࣄ͕େࣄ