Skip to content

Commit

Permalink
Merge pull request #38 from auth0/try-scope-fix
Browse files Browse the repository at this point in the history
Scope fix for "try connection"
  • Loading branch information
santiagoaguiar authored Sep 17, 2019
2 parents 35d0c05 + 04ce53d commit aaaae8d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

[v1.2.2](https://github.com/auth0/custom-social-connections/releases/tag/v1.2.2) (2019-09-17)
------------------
- Fixed scope param of "try connection" url

[v1.2.1](https://github.com/auth0/custom-social-connections/releases/tag/v1.2.1) (2019-06-11)
------------------
- Fixed App enable/disable sliders for Firefox [#19](https://github.com/auth0/custom-social-connections/issues/19)
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "custom-social-connections",
"version": "1.2.1",
"version": "1.2.2",
"description": "This application gives Auth0 customers the possibility to manage custom social connections in an easy way.",
"main": "index.js",
"scripts": {
"start": "npm run build-dev && wt serve dist/custom-social-connections.js --port 3000",
"webpack": "webpack --config webpack.ui.config.js && webpack --config webpack.wt.config.js",
"clean": "npm install clean-css-cli -g && rm -rf dist && mkdir -p dist/public && cleancss -o dist/public/custom-social-connections-1.2.0.min.css src/public/css/styles.css",
"clean": "npm install clean-css-cli -g && rm -rf dist && mkdir -p dist/public && cleancss -o dist/public/custom-social-connections-1.2.2.min.css src/public/css/styles.css",
"build": "NODE_ENV=production npm run clean && NODE_ENV=production npm run webpack",
"build-dev": "npm run clean && npm run webpack"
},
Expand Down
4 changes: 3 additions & 1 deletion src/public/react/components/ConnectionModal.react.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,12 @@ var ConnectionModal = React.createClass({
},

_generateTryItUrl: function () {
var connection = this.state.connectionForm && this.state.connectionForm.getConnection() || this.state.connection;

return [
window.env.userUrl + '?',
'response_type=code',
'&scope=openid%20profile',
'&scope=' + encodeURIComponent(connection.options.scope || 'openid profile'),
'&client_id=' + window.env.masterClientId,
'&connection=' + this.state.connection.name,
'&redirect_uri=' + window.env.manageUrl + '/tester/callback?connection=' + this.state.connection.name
Expand Down
2 changes: 1 addition & 1 deletion webtask.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"title": "Custom Social Connections",
"name": "custom-social-connections",
"version": "1.2.1",
"version": "1.2.2",
"author": "auth0",
"description": "This application gives Auth0 customers the possibility to manage custom social connections in an easy way.",
"type": "application",
Expand Down

0 comments on commit aaaae8d

Please sign in to comment.