This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$client_id = "<YOUR-CLIENT-ID>" | |
$client_secret = "<YOUR-CLIENT-SECRET>" | |
$redirect_uri = "<YOUR-CALLBACK-URL>" | |
$authz_endpoint = "https://graph.facebook.com/oauth/authorize" | |
$token_endpoint = "https://graph.facebook.com/oauth/token" | |
open ($authz_endpoint + "?client_id=" + $client_id + "&redirect_uri=" + $redirect_uri) | |
$code = Read-Host "code" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$access_token = "<YOUR-TOKEN-HERE>" | |
$headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]" | |
$headers.Add("Authorization", "Bearer $access_token") | |
$response = Invoke-RestMethod 'https://graph.facebook.com/me' -Headers $headers | |
"$response" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var pem = '-----BEGIN PUBLIC KEY-----\ | |
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApnOaAemDtELggT4BpfuE\ | |
PDImzKZpEX/U8MNSk5RF/j8LGR5V8CjN1ASO0Yy9HxILpTDZFFVEsCVKo4c/Smi6\ | |
PzMlNIyywrpnAJFoqtuSLlD/A8SRBEgyXRWzEwvtfW5fhmGFVLw9qm5ZDgrL/XNW\ | |
gMH4uHvJA1mdQlRyCopUlvAeQJ2aM13rNpkYRnCQIDNfVStEsVbYTjF0m9QR1Nb1\ | |
zYpzB4nDNVQlZmj+SyDwtY+BMH6GAiXwa8JOb0mHgUVnxdWdL6lx8kVUkg16Yv17\ | |
D8u0Jhl+7W1SVVVNEYaGKaB1KKmJ7twibmyX4gwBRbQIamvHyZRc/BBaCg3YZNxh\ | |
pwIDAQAB\ | |
-----END PUBLIC KEY-----'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone git@github.com:openid-foundation-japan/800-63-3.git | |
cd 800-63-3 | |
git checkout gh-branch | |
bundle install | |
jekyll server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'json/jwt' # v1.6.2+ | |
private_key = OpenSSL::PKey::RSA.generate(2048) | |
jwk = JSON::JWK.new(private_key) | |
p jwk[:kid] # => auto-generated kid (= JWK Thumbprint value) | |
jwt = JSON::JWT.new( | |
iss: 'https://idp.example.com', | |
aud: 'https://rp.example.com', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'openid_connect' | |
OpenIDConnect.debug! | |
config = OpenIDConnect::Discovery::Provider::Config.discover! 'https://sts.example.com/adfs' | |
client = OpenIDConnect::Client.new( | |
identifier: '2940bc16-983c-41ca-b373-4c6045278627', # Native App's client_id | |
redirect_uri: 'custom-schema://foobar', | |
authorization_endpoint: config.authorization_endpoint, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rack/oauth2' | |
require 'json/jwt' | |
require 'webmock' | |
Rack::OAuth2.debug! | |
include WebMock::API | |
WebMock.disable_net_connect! | |
id_token = JSON::JWT.new( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'json/jwt' | |
rsa_key = OpenSSL::PKey::RSA.new <<-PEM | |
: | |
PEM | |
claims = { | |
iss: 'https://auth.server.example.com', | |
sub: 'user-98765', | |
aud: [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/keynote/slide.rb b/lib/keynote/slide.rb | |
index fea1fc2..6af486f 100644 | |
--- a/lib/keynote/slide.rb | |
+++ b/lib/keynote/slide.rb | |
@@ -28,7 +28,6 @@ module Keynote | |
end | |
def title=(title) | |
- title = title.gsub(/(\r\n|\r|\n)/) { '\\n' } | |
@title = title |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.facebook.com/v2.5/dialog/oauth? | |
app_id=685543434893182& | |
client_id=685543434893182& | |
display=popup& | |
domain=209a.jp.vonvon.me& | |
e2e=%7B%7D& | |
locale=ja_JP& | |
origin=1& | |
redirect_uri=http%3A%2F%2Fstatic.ak.facebook.com%2Fconnect%2Fxd_arbiter...& | |
response_type=token%2Csigned_request& |