Skip to content

feat(ssoLogin): Adding paths for sso server side logins#114

Merged
nandap4790 merged 27 commits intomasterfrom
sso-login
Mar 20, 2020
Merged

feat(ssoLogin): Adding paths for sso server side logins#114
nandap4790 merged 27 commits intomasterfrom
sso-login

Conversation

@sharangj
Copy link
Contributor

@sharangj sharangj commented Jan 31, 2020

@sharangj sharangj requested a review from gja January 31, 2020 13:57
constructor(props) {
super(props);
this.serverSideLoginPath = `/login?auth-provider=${this.props.provider}&remote-host=${global.location && global.location.origin}`;
this.serverSideLoginPath = `/sign-in-page?auth-provider=${this.props.provider}&remote-host=${global.location && global.location.origin}`;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dont change the current serverSideLoginPath. This will break other logins.

super(props);
this.serverSideLoginPath = `/login?auth-provider=${this.props.provider}&remote-host=${global.location && global.location.origin}`;
this.serverSideLoginPath = `/sign-in-page?auth-provider=${this.props.provider}&remote-host=${global.location && global.location.origin}`;
this.serverSideSSOLoginPath = `/sign-in-page?auth-provider=${this.props.provider}&redirect-url=${this.props.sso && this.props.redirectUrl ? this.props.redirectUrl : global.location && global.location.origin}`;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isnt this "/login?auth-provider=facebook". This is what log the person in to sketches.

.babelrc Outdated
],
env: {
test: {
plugins: ['dynamic-import-node']
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this.

package.json Outdated
"babel-eslint": "^10.0.3",
"babel-jest": "^24.8.0",
"babel-plugin-annotate-pure-calls": "^0.4.0",
"babel-plugin-dynamic-import-node": "^2.3.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this.

2. Update package and package lock
@nandap4790 nandap4790 merged commit 83d2b44 into master Mar 20, 2020
@delete-merged-branch delete-merged-branch bot deleted the sso-login branch March 20, 2020 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants