Skip to content

Commit

Permalink
Merge pull request #66 from bitovi/new-ahead
Browse files Browse the repository at this point in the history
debugging oauth
  • Loading branch information
justinbmeyer authored Apr 24, 2024
2 parents 0fdef74 + 3551c5e commit a078866
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pages/index.html.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ module.exports = function (env) {
</div>
<script type="module">
import main from "./dist/main.js";
import main from "./main.js";
main( ${JSON.stringify(getSafeEnv())} );
</script>
Expand Down
1 change: 1 addition & 0 deletions pages/oauth-callback.html.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ module.exports = function () {
import JiraOIDCHelpers from "./jira-oidc-helpers.js";
import oauthCallback from "./oauth-callback.js";
const jiraHelpers = JiraOIDCHelpers(${JSON.stringify(getSafeEnv())});
debugger;
oauthCallback(jiraHelpers);
</script>
</body>
Expand Down
2 changes: 1 addition & 1 deletion public/dist/main.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions public/jira-oidc-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export default function JiraOIDCHelpers({
return window.localStorage.getItem(key);
},
fetchAuthorizationCode: () => {
debugger;
const url = `https://auth.atlassian.com/authorize?audience=api.atlassian.com&client_id=${JIRA_CLIENT_ID}&scope=${JIRA_SCOPE}&redirect_uri=${JIRA_CALLBACK_URL}&response_type=code&prompt=consent&state=${encodeURIComponent(encodeURIComponent(window.location.search))}`;
window.location.href = url;
},
Expand Down

0 comments on commit a078866

Please sign in to comment.