auth.utils package
public function createCache(string cacheName) returns (cachingCache | null)
Creates a cache to store authentication results against basic auth headers
Parameter Name | Data Type | Description |
---|---|---|
cacheName | string |
Return Variable | Data Type | Description |
---|---|---|
cachingCache | null | cache: authentication cache instance |
public function extractBasicAuthCredentials(string authHeader) returns ((string,string) | error)
Extracts the basic authentication credentials from the header value
Parameter Name | Data Type | Description |
---|---|---|
authHeader | string | basic authentication header |
Return Variable | Data Type | Description |
---|---|---|
(string,string) | error | string: username extracted |