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
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/7201a2e6-d598-46ac-9601-d62faaddc1e4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.