From 8a608a414c8fd7e4c922b37f1a58b84e038fe1bc Mon Sep 17 00:00:00 2001 From: Kevin McKee Date: Fri, 11 Jul 2025 10:22:53 -0700 Subject: [PATCH 1/2] Auth0, Box, Dropbox, and Stripe templates. --- OAuthSample/Preview Content/oauth.json | 60 +++++++++++++++++++++++++- 1 file changed, 59 insertions(+), 1 deletion(-) diff --git a/OAuthSample/Preview Content/oauth.json b/OAuthSample/Preview Content/oauth.json index 0b60302..cf985e5 100644 --- a/OAuthSample/Preview Content/oauth.json +++ b/OAuthSample/Preview Content/oauth.json @@ -1,4 +1,47 @@ [ + { + "id": "Auth0", + "authorizationURL": "https://dev-w73yi8ptiaps72cm.us.auth0.com/authorize", + "accessTokenURL": "https://dev-w73yi8ptiaps72cm.us.auth0.com/oauth/token", + "deviceCodeURL": "https://dev-w73yi8ptiaps72cm.us.auth0.com/oauth/device/code", + "clientID": "CLIENT_ID", + "clientSecret": "CLIENT_SECRET", + "redirectURI": "https://github.com/codefiesta/", + "scope": [ + "email", + "profile", + "openid" + ], + "debug": true, + }, + { + "id": "Box", + "authorizationURL": "https://account.box.com/api/oauth2/authorize", + "accessTokenURL": "https://api.box.com/oauth2/token", + "clientID": "CLIENT_ID", + "clientSecret": "CLIENT_SECRET", + "redirectURI": "https://github.com/codefiesta/", + "scope": [ + "root_readwrite" + ], + "debug": true, + }, + { + "id": "Dropbox", + "authorizationURL": "https://www.dropbox.com/oauth2/authorize", + "accessTokenURL": "https://api.dropboxapi.com/oauth2/token", + "clientID": "CLIENT_ID", + "clientSecret": "CLIENT_SECRET", + "redirectURI": "https://github.com/codefiesta/", + "scope": [ + "email", + "profile", + "openid", + "files.metadata.write", + "files.content.write", + ], + "debug": true, + }, { "id": "GitHub", "authorizationURL": "https://github.com/login/oauth/authorize", @@ -55,6 +98,22 @@ ], "debug": true, }, + { + "id": "Stripe", + "authorizationURL": "https://marketplace.stripe.com/oauth/v2/authorize", + "accessTokenURL": "https://api.stripe.com/v1/oauth/token", + "clientID": "CLIENT_ID", + "clientSecret": "CLIENT_SECRET", + "redirectURI": "https://dashboard.stripe.com/test/apps-oauth/com.example.code-fiesta", + "scope": [ + "connected_account_read", + "balance_read", + "charge_read", + "customer_read", + "order_read" + ], + "debug": true + }, { "id": "LinkedIn", "authorizationURL": "https://www.linkedin.com/oauth/v2/authorization", @@ -70,5 +129,4 @@ ], "debug": true, } - ] From ac9fa0e7f725f4bf81e9e21e3628ffee0edd2b33 Mon Sep 17 00:00:00 2001 From: Kevin McKee Date: Fri, 11 Jul 2025 10:24:56 -0700 Subject: [PATCH 2/2] Auth0 domain urls --- OAuthSample/Preview Content/oauth.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OAuthSample/Preview Content/oauth.json b/OAuthSample/Preview Content/oauth.json index cf985e5..a3ff7f9 100644 --- a/OAuthSample/Preview Content/oauth.json +++ b/OAuthSample/Preview Content/oauth.json @@ -1,9 +1,9 @@ [ { "id": "Auth0", - "authorizationURL": "https://dev-w73yi8ptiaps72cm.us.auth0.com/authorize", - "accessTokenURL": "https://dev-w73yi8ptiaps72cm.us.auth0.com/oauth/token", - "deviceCodeURL": "https://dev-w73yi8ptiaps72cm.us.auth0.com/oauth/device/code", + "authorizationURL": "https://domain.us.auth0.com/authorize", + "accessTokenURL": "https://domain.us.auth0.com/oauth/token", + "deviceCodeURL": "https://domain.us.auth0.com/oauth/device/code", "clientID": "CLIENT_ID", "clientSecret": "CLIENT_SECRET", "redirectURI": "https://github.com/codefiesta/",