I hereby claim:
- I am nov on github.
- I am nov (https://keybase.io/nov) on keybase.
- I have a public key ASDyhGlF6mTKRzYh4ItyuCRw7PQIkGc2ofBR0nvRdhJUGQo
To claim this, I am signing this object:
<?xml version="1.0" encoding="UTF-8"?> | |
<samlp2:AuthnRequest | |
AssertionConsumerServiceURL="https://idfed.myna.go.jp/idfedgw0001/assertion_artifact" | |
Destination="https://idfed.myna.go.jp/idfedsaml/sso_redirect" | |
ForceAuthn="false" | |
ID="..omitted.." | |
IsPassive="false" | |
IssueInstant="2017-01-25T02:53:28Z" | |
ProtocolBinding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact" | |
ProviderName="SAML2.0 SP1" |
I hereby claim:
To claim this, I am signing this object:
JS clients are called public client
https://tools.ietf.org/html/rfc6749#section-2.1
The sentence below means Ajax-only restriction can be such a method, but it shouldn't be higly trusted.
require 'rack/oauth2' | |
Rack::OAuth2.debug! | |
client = Rack::OAuth2.http_client | |
client.get 'http://example.com', nil, { | |
'X-Requested-With': 'XMLHttpRequest' | |
} |
require File.join(File.dirname(__FILE__), 'paypal_debugger') | |
Paypal.sandbox! | |
mode = :setup | |
paypal = Payment::Paypal.new | |
request1 = Paypal::Payment::Request.new( | |
:amount => 10, | |
:description => 'Instant Payment Request', |
require 'rack/oauth2' | |
require 'json/jwt' | |
def get(endpoint, format = :jwt) | |
res = Rack::OAuth2.http_client.get endpoint | |
case format | |
when :jwt | |
JSON::JWT.decode res.body, :skip_verification | |
when :b64 | |
JSON.parse Base64.decode64(res.body) |
$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" |
$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" |
var pem = '-----BEGIN PUBLIC KEY-----\ | |
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApnOaAemDtELggT4BpfuE\ | |
PDImzKZpEX/U8MNSk5RF/j8LGR5V8CjN1ASO0Yy9HxILpTDZFFVEsCVKo4c/Smi6\ | |
PzMlNIyywrpnAJFoqtuSLlD/A8SRBEgyXRWzEwvtfW5fhmGFVLw9qm5ZDgrL/XNW\ | |
gMH4uHvJA1mdQlRyCopUlvAeQJ2aM13rNpkYRnCQIDNfVStEsVbYTjF0m9QR1Nb1\ | |
zYpzB4nDNVQlZmj+SyDwtY+BMH6GAiXwa8JOb0mHgUVnxdWdL6lx8kVUkg16Yv17\ | |
D8u0Jhl+7W1SVVVNEYaGKaB1KKmJ7twibmyX4gwBRbQIamvHyZRc/BBaCg3YZNxh\ | |
pwIDAQAB\ | |
-----END PUBLIC KEY-----'; |
git clone git@github.com:openid-foundation-japan/800-63-3.git | |
cd 800-63-3 | |
git checkout gh-branch | |
bundle install | |
jekyll server |