class Arachnid::AuthStore

Defined in:

arachnid/auth_store.cr

Instance Method Summary

Instance Method Detail

def [](url) #

Given a URL, return the most specific matching auth credential.


[View source]
def []=(url, auth) #

Add an auth credential to the store for the supplied base URL.


[View source]
def add(url, username, password) #

Convenience method to add username and password credentials for a named URL.


[View source]
def clear! #

Clear the contents of the auth store.


[View source]
def for_url(url) #

Returns the base64 encoded authorization string for the URL or nil if no authorization exists.


[View source]
def inspect #

Inspect the auth store


[View source]
def size #

Size of the current auth store (number of URL paths stored)


[View source]