diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/404.html b/404.html new file mode 100644 index 0000000..1b54d95 --- /dev/null +++ b/404.html @@ -0,0 +1,406 @@ + + + +
+ + + + + + + + + + + + + + + + +Main class for OSM login.
+ +osm_login_python/core.py
19 +20 +21 +22 +23 +24 +25 +26 +27 +28 |
|
login()
+
Generate login URL from OSM session.
+Provides a login URL using the session created by osm +client id and redirect uri supplied.
+ + + +Returns:
+Name | Type | +Description | +
---|---|---|
dict |
+ dict
+ |
+
+
+
+ {'login_url': 'URL'} + |
+
osm_login_python/core.py
30 +31 +32 +33 +34 +35 +36 +37 +38 +39 +40 +41 +42 +43 |
|
callback(callback_url)
+
Performs token exchange between OSM and the callback website.
+Core will use Oauth secret key from configuration while deserializing token, +provides access token that can be used for authorized endpoints.
+ + + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
callback_url(str) |
+ + | +
+
+
+ Absolute URL should be passed which +is catched from login_redirect_uri. + |
+ + required + | +
Returns:
+Name | Type | +Description | +
---|---|---|
access_token |
+ str
+ |
+
+
+
+ The decoded access token. + |
+
osm_login_python/core.py
45 +46 +47 +48 +49 +50 +51 +52 +53 +54 +55 +56 +57 +58 +59 +60 +61 +62 +63 +64 +65 +66 +67 +68 +69 +70 +71 +72 +73 +74 +75 +76 +77 +78 |
|
deserialize_access_token(access_token)
+
Returns the userdata as JSON from access token.
+Can be used for login required decorator or to check +the access token provided.
+ + + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
access_token(str) |
+ + | +
+
+
+ The access token from Auth.callback() + |
+ + required + | +
Returns:
+Name | Type | +Description | +
---|---|---|
user_data |
+ dict
+ |
+
+
+
+ A JSON of user data from OSM. + |
+
osm_login_python/core.py
80 + 81 + 82 + 83 + 84 + 85 + 86 + 87 + 88 + 89 + 90 + 91 + 92 + 93 + 94 + 95 + 96 + 97 + 98 + 99 +100 +101 +102 +103 +104 +105 +106 +107 |
|
options: +show_source: false +heading_level: 3
+ + + + + + +{"use strict";/*!
+ * escape-html
+ * Copyright(c) 2012-2013 TJ Holowaychuk
+ * Copyright(c) 2015 Andreas Lubbe
+ * Copyright(c) 2015 Tiancheng "Timothy" Gu
+ * MIT Licensed
+ */var Ha=/["'&<>]/;Un.exports=$a;function $a(e){var t=""+e,r=Ha.exec(t);if(!r)return t;var o,n="",i=0,s=0;for(i=r.index;i