Common Lisp Package: CLACK.MIDDLEWARE.OAUTH

# Clack.Middleware.OAuth - Supports authorization mechanism by OAuth. ## SYNOPSIS (run (builder (<clack-middleware-oauth> :consumer-key "XXXXXXXXXXXXXXXXXXXXX" :consumer-secret "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" :authorize-uri "http://localhost/authorize" :request-token-uri "http://localhost/request" :access-token-uri "http://localhost/access" :path "/auth" :callback-base "http://localhost/" :authorized #'callback) app)) ## DESCRIPTION This is a Clack Middleware for OAuth. Please read rfc5849 for more information. ## Slots * consumer-key, consumer-secret (Required, String) OAuth parameter. * authorize-uri, request-token-uri, access-token-uri (Required, String) URIs to process OAuth. * path A path to be handled by <clack.middleware.oauth>. * callback-base A host address will be passed to OAuth Provider. (format nil "~a~a" `callback-base' `path') should be valid URI. * authorized (Required, function) A callback function when authorization is suceeded. It will be called with two parameters: clack request and cl-oauth:access-token. ## AUTHOR * Norihisa Fujita (n.fujita@ariel-networks.com)

README:

GENERIC-FUNCTION

Private

Undocumented

AUTHORIZE (THIS REQ)

AUTHORIZE-CONT (THIS REQ)

AUTHORIZE-INIT (THIS REQ)

CLEANUP-STATES (THIS)

IS-AUTHORIZING (THIS REQ)

IS-EXPIRED (THIS OAUTH-TOKEN)

OBTAIN-ACCESS-TOKEN (THIS REQ-TOKEN)

OBTAIN-REQUEST-TOKEN (THIS REQ)

OBTAIN-REQUEST-TOKEN-FROM-PROVIDER (THIS REQ)

SLOT-ACCESSOR

Private

Undocumented

OAUTH-ACCESS-TOKEN-URI (OBJECT)

SETFOAUTH-ACCESS-TOKEN-URI (NEW-VALUE OBJECT)

OAUTH-AUTHORIZE-URI (OBJECT)

SETFOAUTH-AUTHORIZE-URI (NEW-VALUE OBJECT)

OAUTH-AUTHORIZED (OBJECT)

SETFOAUTH-AUTHORIZED (NEW-VALUE OBJECT)

OAUTH-CALLBACK-BASE (OBJECT)

SETFOAUTH-CALLBACK-BASE (NEW-VALUE OBJECT)

OAUTH-CALLBACK-URI (OBJECT)

SETFOAUTH-CALLBACK-URI (NEW-VALUE OBJECT)

OAUTH-CONSUMER-KEY (OBJECT)

SETFOAUTH-CONSUMER-KEY (NEW-VALUE OBJECT)

OAUTH-CONSUMER-SECRET (OBJECT)

SETFOAUTH-CONSUMER-SECRET (NEW-VALUE OBJECT)

OAUTH-PATH (OBJECT)

SETFOAUTH-PATH (NEW-VALUE OBJECT)

OAUTH-REQUEST-TOKEN-URI (OBJECT)

SETFOAUTH-REQUEST-TOKEN-URI (NEW-VALUE OBJECT)

OAUTH-STATE (OBJECT)

SETFOAUTH-STATE (NEW-VALUE OBJECT)

OAUTH-STATE-EXPIRE (OBJECT)

SETFOAUTH-STATE-EXPIRE (NEW-VALUE OBJECT)

CLASS

Public

Undocumented

<CLACK-MIDDLEWARE-OAUTH>