Hello,
Posting here as the TiddlyWeb group looks a bit on the quiet side, but let me know if I should be using that instead.
Trying to get tiddlywebplugins.oauth working and in my config I have:
config = {
'server_host': {
'scheme': 'https',
'host': '
my.server.com',
'port': '443',
},
'system_plugins': ['tiddlywebwiki', 'tiddlywebplugins.urls', 'tiddlywebplugins.form', 'tiddlywebplugins.oauth'],
'log_level': 'DEBUG',
'secret': '#####',
'twanager_plugins': ['tiddlywebwiki', 'tiddlywebplugins.urls'],
'tiddlywebwiki.friendlywiki': False,
'bag_create_policy': 'ADMIN',
'recipe_create_policy': 'ADMIN',
'oauth.servers': {
'github': {
'auth_uri': '
https://github.com/login/oauth/authorize',
'token_uri': '
https://github.com/login/oauth/access_token',
'redirect_uri': '
https://my.server.com',
'client_id': '###',
'client_secret': '###',
}
}
}
Using the client_id and client_secret as configured at GitHub.
Two questions:
1. What do I need to configure in the store to map a GitHub account to a local user?
2. How do I make it so that unauthenticated requests get bounced off to GitHub to auth instead of getting the cookie login form?
Cheers,
Andrew