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
# author: Justas Janauskas, | |
# Aug 5, 2012 | |
# | |
# This example calculates request MAC according to "HTTP Authentication: MAC Access Authentication (draft 01)" | |
# example from webtopay wallet api | |
# | |
# ref: http://tools.ietf.org/pdf/draft-ietf-oauth-v2-http-mac-00.pdf | |
# ref: https://www.webtopay.com/wallet/ | |
require 'base64' |
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
# author: Justas Janauskas, | |
# Aug 5, 2012 | |
# | |
# This example calculates request MAC according to "HTTP Authentication: MAC Access Authentication (draft 00)" | |
# example in section 1.2 | |
# | |
# ref: http://tools.ietf.org/pdf/draft-ietf-oauth-v2-http-mac-00.pdf | |
require 'base64' | |
require 'openssl' |
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
# author: Justas Janauskas, | |
# Aug 5, 2012 | |
# | |
# Where is mistake? | |
# | |
# This example calculates request MAC according to "HTTP Authentication: MAC Access Authentication (draft 01)" | |
# example in section 1.1 | |
# | |
# ref: http://tools.ietf.org/pdf/draft-ietf-oauth-v2-http-mac-01.pdf |