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..aefa102 --- /dev/null +++ b/404.html @@ -0,0 +1,405 @@ + + + +
+ + + + + + + + + + + + + + + + +Main class for OSM login.
+ +osm_login_python/core.py
20 +21 +22 +23 +24 +25 +26 +27 +28 +29 |
|
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
31 +32 +33 +34 +35 +36 +37 +38 +39 +40 +41 +42 +43 +44 |
|
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
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 +79 |
|
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
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 +108 |
|
options: +show_source: false +heading_level: 3
+ + + + + + +