CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Fri, 22 Aug 2025 09:12:22 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20080524012003
location: https://web.archive.org/web/20080524012003/https://github.com/tim/erlang-oauth/tree/master
server-timing: captures_list;dur=0.781491, exclusion.robots;dur=0.028931, exclusion.robots.policy;dur=0.013992, esindex;dur=0.013899, cdx.remote;dur=12.647754, LoadShardBlock;dur=213.377273, PetaboxLoader3.datanode;dur=67.036165, PetaboxLoader3.resolve;dur=105.441945
x-app-server: wwwb-app210
x-ts: 302
x-tr: 273
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app210; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Fri, 22 Aug 2025 09:12:23 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.6.26
x-archive-orig-date: Sat, 24 May 2008 01:20:02 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-x-runtime: 1.37134
x-archive-orig-etag: "645780d0408010ad492928a8a0d2bc45"
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-orig-content-length: 15261
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Sat, 24 May 2008 01:20:03 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Sat, 24 May 2008 01:20:03 GMT", ; rel="memento"; datetime="Sat, 24 May 2008 01:20:03 GMT", ; rel="next memento"; datetime="Sun, 03 Aug 2008 21:48:40 GMT", ; rel="last memento"; datetime="Mon, 15 Apr 2024 20:15:51 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 50_3_20080523184554_crawl100-c/50_3_20080524011931_crawl103.arc.gz
server-timing: captures_list;dur=2.572790, exclusion.robots;dur=0.041243, exclusion.robots.policy;dur=0.020457, esindex;dur=0.019947, cdx.remote;dur=5.744869, LoadShardBlock;dur=335.181747, PetaboxLoader3.datanode;dur=256.741472, PetaboxLoader3.resolve;dur=141.109398, load_resource;dur=101.837581
x-app-server: wwwb-app210
x-ts: 200
x-tr: 495
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
tim's erlang-oauth at master — GitHub
This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (

This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (

Description: | An Erlang wrapper around the OAuth protocol |
Homepage: | https://tfletcher.com/dev/erlang-oauth |
Clone URL: |
git://github.com/tim/erlang-oauth.git
Give this clone URL to anyone.
git clone git://github.com/tim/erlang-oauth.git
|
Repo Search: |
name | age | message | |
---|---|---|---|
![]() |
.gitignore | Fri May 16 07:51:38 -0700 2008 | Initial commit. [tim] |
![]() |
EMakefile | Fri May 16 07:51:38 -0700 2008 | Initial commit. [tim] |
![]() |
License.txt | Fri May 16 07:51:38 -0700 2008 | Initial commit. [tim] |
![]() |
Makefile | Fri May 16 07:51:38 -0700 2008 | Initial commit. [tim] |
![]() |
README.txt | Tue May 20 01:39:07 -0700 2008 | Fix typo. [tim] |
![]() |
src/ | Fri May 16 08:15:56 -0700 2008 | Add functions for generating an Authorization h... [tim] |
README.txt
============ erlang-oauth ============ What is this? ------------- An Erlang wrapper around the OAuth protocol. What is OAuth? -------------- An "open protocol to allow secure API authentication in a simple and standard method from desktop and web applications". See https://oauth.net/ for more info. What do I need? --------------- Erlang, and erlang-fmt (https://tfletcher.com/dev/erlang-fmt). The Makefile assumes that erlang-fmt is contained in the parent directory of this one, so you might want to edit the Makefile if you have it elsewhere. How do I use it? ---------------- The crypto and inets applications need to be running, and---as it's easy to forget---all the code needs to be compiled. A typical authentication flow would be similar to the following: ConsumerKey = "key", ConsumerSecret = "secret", SignatureMethod = "HMAC-SHA1", Consumer = oauth_consumer:new(ConsumerKey, ConsumerSecret, SignatureMethod), {ok, RequestTokens} = oauth:tokens(oauth:get(RequestTokenURL, Consumer)), % If necessary, direct user to the Service Provider, % with Token = proplists:get_value(oauth_token, RequestTokens). {ok, AccessTokens} = oauth:tokens(oauth:get(AccessTokenURL, Consumer, RequestTokens)), oauth:get(ProtectedResourceURL, Consumer, AccessTokens, ExtraParams). Calling oauth:get or oauth:post returns an HTTP response tuple, as returned from http:request/4. Type "make termie", or look at oauth_test:termie/0 for a working example. Thanks Andy! Alternatively, you can use oauth_request:header/6 to generate an HTTP Authorization header, as described by https://oauth.net/core/1.0/#auth_header. This isn't (currently) integrated into oauth:get and oauth:post, so you would need to use http:request/4 directly in this case. Who can I contact if I have another question? --------------------------------------------- Tim Fletcher (https://tfletcher.com/).
This feature is coming soon. Sit tight!