diff options
Diffstat (limited to 'yarns/900-local.yarn')
-rw-r--r-- | yarns/900-local.yarn | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/yarns/900-local.yarn b/yarns/900-local.yarn index 8c9fd1d..c9721bc 100644 --- a/yarns/900-local.yarn +++ b/yarns/900-local.yarn @@ -42,10 +42,16 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. password = get_next_match() V['users'] = { username: password } - IMPLEMENTS GIVEN Qvisqve configuration has application (\S+) with callback url (\S+) + IMPLEMENTS GIVEN Qvisqve configuration has application (\S+) with callback url (\S+) and secret (\S+) and allowed scopes (.+) app = get_next_match() callback = get_next_match() + secret = get_next_match() + scopestr = get_next_match() + # FIXME: store secret somewhere V['applications'] = { app: callback } + V['client_id'] = app + V['client_secret'] = secret + V['allowed_scopes'] = scopestr.split() ## Authentication setup |