# Module cloudi_service_oauth1_db_pgsql

- Description
- Function Index
- Function Details

### CloudI OAuth v1.0 PostgreSQL DB Interface

.

Copyright © 2014-2017 Michael Truog

Version: 1.7.1 Nov 26 2020 19:29:45 ------------------------------------------------------------------------

Behaviours: `cloudi_service_oauth1_db`.

Authors: Michael Truog (`mjtruog at protonmail dot com`).

## Description

### CloudI OAuth v1.0 PostgreSQL DB Interface

## Function Index

initialize/3 |
signature_methods/5 |
token_access_store/13 |
token_access_verify/9 |
token_request_check/6 |
token_request_delete/4 |
token_request_find/4 |
token_request_store/14 |
token_request_update/5 |
token_request_verify/10 |
tokens_clean/2 |

## Function Details

### initialize/3

`initialize(Dispatcher::cloudi_service:dispatcher(), Database::cloudi_service:service_name(), Debug::boolean()) -> ok | {error, any()}`

### signature_methods/5

`signature_methods(Dispatcher::cloudi_service:dispatcher(), Database::cloudi_service:service_name(), Realm::string() | binary() | null, ConsumerKey::string() | binary(), Timeout::cloudi_service:timeout_milliseconds()) -> {ok, {PLAINTEXT::binary() | null, HMAC_SHA1::binary() | null, RSA_SHA1::binary() | null}, CallbackRegex::binary()} | {error, any()}`

### token_access_store/13

`token_access_store(Dispatcher::cloudi_service:dispatcher(), Database::cloudi_service:service_name(), Realm::string() | binary() | null, ConsumerKey::string() | binary(), SignatureMethod::string() | binary(), ClientSharedSecret::string() | binary(), Timestamp::string() | binary(), NonceRequest::string() | binary(), NonceAccess::string() | binary(), TokenAccess::string() | binary(), TokenAccessSecret::string() | binary(), ExpirationSeconds::pos_integer(), Timeout::cloudi_service:timeout_milliseconds()) -> ok | {error, any()}`

### token_access_verify/9

`token_access_verify(Dispatcher::cloudi_service:dispatcher(), Database::cloudi_service:service_name(), Realm::string() | binary() | null, ConsumerKey::string() | binary(), SignatureMethod::string() | binary(), Timestamp::string() | binary(), Nonce::string() | binary(), TokenAccess::string() | binary(), Timeout::cloudi_service:timeout_milliseconds()) -> {ok, ClientSharedSecret::binary(), TokenAccessSecret::binary()} | {error, any()}`

### token_request_check/6

`token_request_check(Dispatcher::cloudi_service:dispatcher(), Database::cloudi_service:service_name(), Realm::string() | binary() | null, ConsumerKey::string() | binary(), NonceRequest::string() | binary(), Timeout::cloudi_service:timeout_milliseconds()) -> ok | {error, any()}`

### token_request_delete/4

`token_request_delete(Dispatcher::cloudi_service:dispatcher(), Database::cloudi_service:service_name(), TokenRequest::string() | binary(), Timeout::cloudi_service:timeout_milliseconds()) -> ok | {error, any()}`

### token_request_find/4

`token_request_find(Dispatcher::cloudi_service:dispatcher(), Database::cloudi_service:service_name(), TokenRequest::string() | binary(), Timeout::cloudi_service:timeout_milliseconds()) -> {ok, CallbackURL::binary(), CallbackQS::binary()} | {error, any()}`

### token_request_store/14

`token_request_store(Dispatcher::cloudi_service:dispatcher(), Database::cloudi_service:service_name(), Realm::string() | binary() | null, ConsumerKey::string() | binary(), SignatureMethod::string() | binary(), ClientSharedSecret::string() | binary(), Timestamp::string() | binary(), NonceRequest::string() | binary(), TokenRequest::string() | binary(), TokenRequestSecret::string() | binary(), CallbackURL::string() | binary(), CallbackQS::string() | binary(), ExpirationSeconds::pos_integer(), Timeout::cloudi_service:timeout_milliseconds()) -> ok | {error, any()}`

### token_request_update/5

`token_request_update(Dispatcher::cloudi_service:dispatcher(), Database::cloudi_service:service_name(), TokenRequest::string() | binary(), Verifier::string() | binary(), Timeout::cloudi_service:timeout_milliseconds()) -> ok | {error, any()}`

### token_request_verify/10

`token_request_verify(Dispatcher::cloudi_service:dispatcher(), Database::cloudi_service:service_name(), Realm::string() | binary() | null, ConsumerKey::string() | binary(), SignatureMethod::string() | binary(), Timestamp::string() | binary(), NonceAccess::string() | binary(), TokenRequest::string() | binary(), Verifier::string() | binary(), Timeout::cloudi_service:timeout_milliseconds()) -> {ok, ClientSharedSecret::binary(), NonceRequest::binary(), TokenRequestSecret::binary()} | {error, any()}`

### tokens_clean/2

`tokens_clean(Dispatcher::cloudi_service:dispatcher(), Database::cloudi_service:service_name()) -> ok | {error, any()}`

Generated by EDoc