Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oauth debugging #68

Merged
merged 1 commit into from
Sep 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion manifest.webapp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "3.1.0",
"version": "3.1.1",
"name": "Cache-on-Kai",
"subtitle": "Geocaching for the rest of us",
"description": "Go geocaching with KaiOS! Developed by a geocaching community member and officially authorized by geocaching.com through the Geocaching Authorized Developer program.",
Expand Down
25 changes: 24 additions & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,30 @@ if (app.useProduction == false) {
// =======================================================================
// =======================================================================
// insert API details here...
if(app.useProduction == false) {
//===============================
// Staging server details
app.rootAPIurl = "https://staging.api.groundspeak.com/v1/";
app.rootSiteURL = "https://staging.geocaching.com";

// Authorization server details
app.config = {
client_id: "11BA3E15-D061-4AC7-A39A-F0BF8A8FBEC3",
client_secret: "2B6726F6-5B9B-4FF8-A01D-4C877BD30C2A",
redirect_uri: "https://caching-on-kai.com/",
authorization_endpoint: "https://staging.geocaching.com/oauth/authorize.aspx",
token_endpoint: "https://oauth-staging.geocaching.com/token",
requested_scopes: "*"
};

//================================
} else {
//===============================
// Production server details


//================================
}


// =======================================================================
Expand Down Expand Up @@ -1936,7 +1959,7 @@ function firstRunSetup() {
//console.log(`from first run: ShowCachesOnLoad = ${ShowCachesOnLoad}`);

if(myUserAgent.search("Nokia") > 0) {
alert("A special note if you use any of the Nokia phones (8110, 6300, 8000, probably 2720): the 4G antenna interfers with the A-GPS ability to obtain an accurate lock on your location. Use the 'Phone Data Settings' button under the 'Settings' screen to jump over to the phone's settings and turn off 4G when you require an accurate GPS lock.");
//alert("A special note if you use any of the Nokia phones (8110, 6300, 8000, probably 2720): the 4G antenna interfers with the A-GPS ability to obtain an accurate lock on your location. Use the 'Phone Data Settings' button under the 'Settings' screen to jump over to the phone's settings and turn off 4G when you require an accurate GPS lock.");
}

if (ShowCachesOnLoad == "YesLoadCaches") {
Expand Down