question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to set authAccounts

See original GitHub issue

Could you provide an example of authAccounts use ? I’ve been trying to make it work and nothing seems to pass validation. The closest thing I guess shoud work (if I understand documentation correctly) is :

{
	"tree": "./webroot",

	"authAccounts": {
		"permissions": {
			"putsaver": true,
			"writeErrors": true,
			"upload": true,
			"mkdir": true,
			"websockets": true,
			"registerNotice": true
		},
		"clientKeys": {"user": {"hash", "salt"}},
	},
	
	"bindInfo": {
		"bindAddress": ["127.0.0.1"],
	},
	"putsaver": {
		"backupFolder": "../backups"
	},
	"$schema": "./settings-2-1.schema.json"
}

Instead it throws an invalid character error between hash and salt.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

6reactions
zevarelacommented, Apr 23, 2020

Many thanks Arlen22!

It’s working perfectly! Below is my final settings.json in case it helps SleepyGinger or anyone else. This configuration has 3 tiddlywikis, that are only accessible to user jav of group av:

{
       "tree": { 
         "RememberAll": {
           "$element": "folder",
           "path": "~/tiddly/RememberAll/",
           "$options": [
             {"$element": "auth", "authList": ["av"] } ]
         },

         "Biblioteca": {
           "$element": "folder",
           "path": "~/tiddly/library",
           "$options": [
             {"$element": "auth", "authList": ["av"] } ]
         },

         "Cardo": {
           "$element": "folder",
           "path": "~/tiddly/Cardo/",
           "$options": [
             {"$element": "auth", "authList": ["av"] } ]
         },
        },
        "bindInfo": {
                "port": 8080,
		"bindAddress": ["127.0.0.1"]
	},
	"putsaver": {
		"backupFolder": "../backups", 
                "gzipBackups": true
	},
        "authAccounts": {
            "av": {
                "clientKeys": {
                  "jav": { "publicKey": "«key copied from failed login»", "cookieSalt": "«my salt»" }
                }, 
                "permissions": {
                  "mkdir": true,
                  "putsaver": true,
                  "registerNotice": true,
                  "upload": true,
                  "websockets": true,
                  "writeErrors": true,
                  "loginlink": true
                }
            }
        },
	"$schema": "./settings-2-1.schema.json",
        "authCookieAge": 864000
}
2reactions
SleepyGingercommented, Apr 23, 2020

Thank you sooooo much @zevarela this helped more than youll ever know. 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to set authAccounts - - Bountysource
Unable to set authAccounts. ... Could you provide an example of authAccounts use ? I've been trying to make it work and nothing...
Read more >
Cleos should have help text for invalid authorities (was: cleos ...
Repetition steps: create account: cleos wallet import ... if( ( auth.keys.size() + auth.accounts.size() + auth.waits.size() ) > (1 << 16) ).
Read more >
Microsoft Authenticator App - Unable to Add Account
Hello, For about a week we haven't been able to use my credentials to sign into MFA. Every time I try to add...
Read more >
Accounts | Flow Blockchain
Authorized Account object have the type AuthAccount , which ... Account key API provides a set of functions to manage account keys.
Read more >
How to set account as account creator - Flow Community
create new account on mainnet failed [Error Code: 1101] cadence runtime error Execution failed: error: creating account failed: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found