*** originally posted to the TiddlyWiki group and it was suggested it might 
have been better to post here instead... ***


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?



You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
For more options, visit https://groups.google.com/d/optout.

Reply via email to