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

FDR-297: Adding okta for enterprise #2172

Merged
merged 7 commits into from
Sep 14, 2022
Merged
Show file tree
Hide file tree
Changes from 2 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
6 changes: 6 additions & 0 deletions css/social_icons.styl
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@
.auth0-lock-social-button[data-provider="oauth2"] {
background-color: #eb5424;
}
.auth0-lock-social-button[data-provider="okta"] {
background-color: #00297A;
}
.auth0-lock-social-button[data-provider="paypal"] {
background-color: #009cde;
}
Expand Down Expand Up @@ -181,6 +184,9 @@
.auth0-lock-social-button[data-provider^=oauth2] .auth0-lock-social-button-icon {
background-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAxOC4xLjEsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxNTAuMSAxNjcuOCIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMTUwLjEgMTY3LjgiIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KPGc+DQoJPHBvbHlnb24gZmlsbD0iI0ZGRkZGRiIgcG9pbnRzPSIzMS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S4yIDY3LTE0OS4yIDE0OS4yczY3IDE0OS4yIDE0OS4yIDE0OS4yYzM2LjggMCA3MS0xMy42IDk2LjYtMzYgMTQuNCAyMS42IDM2LjggMzUuMiA3MS44IDM2IDYuNCAwIDM3LjYuOCAzNy42LTEzLjZ2LTUyLjZjLjItNi4yLTMuOC0xMS04LjYtMTF6bS0xOTggMS42Yy00MS42IDAtNzQuMi0zMy42LTc0LjItNzQuMiAwLTQxLjYgMzMuNi03NC4yIDc0LjItNzQuMiA0MS42IDAgNzQuMiAzMy42IDc0LjIgNzQuMi44IDQwLjYtMzIuOCA3NC4yLTc0LjIgNzQuMnoiLz48L3N2Zz4=");
}
.auth0-lock-social-button[data-provider^=paypal] .auth0-lock-social-button-icon {
background-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+Cjxzdmcgd2lkdGg9IjYzcHgiIGhlaWdodD0iNjVweCIgdmlld0JveD0iMCAwIDYzIDY1IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHhtbG5zOnNrZXRjaD0iaHR0cDovL3d3dy5ib2hlbWlhbmNvZGluZy5jb20vc2tldGNoL25zIj4KICAgIDwhLS0gR2VuZXJhdG9yOiBTa2V0Y2ggMy40ICgxNTU4OCkgLSBodHRwOi8vd3d3LmJvaGVtaWFuY29kaW5nLmNvbS9za2V0Y2ggLS0+CiAgICA8dGl0bGU+cGF5cGFsPC90aXRsZT4KICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPgogICAgPGRlZnM+PC9kZWZzPgogICAgPGcgaWQ9IlBhZ2UtMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpb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Ew2LjM3Niw2NC42ODggTDYuMzc1LDY0LjY4OCBaIE0yMi44NzUsMjcuODc1IEwyNi4zNzUsMTIuMjUgTDM0LjM3NSwxMi4yNSBDMzUuNzUsMTIuMjUgMzYuOTM4LDEyLjYyNSAzNy45MzgsMTMuMzc1IEMzOC45MzgsMTQuMTI1IDM5LjYyNiwxNS4xMjUgMzkuOTM4LDE2LjM3NSBDMzkuMzEzLDE2LjI1IDM4LjkzOCwxNi4xODcgMzguODc1LDE2LjE4NyBMMzAuODc1LDE2LjE4NyBMMjguMTg3LDI3Ljg3NSBMMjIuODc0LDI3Ljg3NSBMMjIuODc1LDI3Ljg3NSBaIE0zMC44NzUsMjcuODEzIEwzMi43NSwxOS4zMTMgTDQwLjA2MywxOS4zMTMgQzQwLjA2MywxOS4zNzYgNDAuMDYzLDE5LjUwMSA0MCwxOS42ODggQzM5LjkzNywxOS44NzUgMzkuOTM3LDIwLjAwMSAzOS45MzcsMjAuMDYzIEMzOS40MzcsMjIuMTg4IDM4LjM3NCwyMy45MzggMzYuNTYyLDI1LjQzOCBDMzQuODEyLDI2LjkzOCAzMi44NzQsMjcuNzUxIDMwLjg3NCwyNy44MTMgTDMwLjg3NSwyNy44MTMgWiIgaWQ9IlNoYXBlIiBza2V0Y2g6dHlwZT0iTVNTaGFwZUdyb3VwIj48L3BhdGg+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=");
}
Expand Down
3 changes: 2 additions & 1 deletion src/connection/enterprise.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ export const STRATEGIES = {
samlp: 'SAML',
sharepoint: 'SharePoint Apps',
waad: 'Windows Azure AD',
oidc: 'OpenID Connect'
oidc: 'OpenID Connect',
okta: 'Okta Workforce'
};

export function initEnterprise(m, opts) {
Expand Down
2 changes: 1 addition & 1 deletion src/connection/enterprise/quick_auth_screen.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { authButtonsTheme } from '../../connection/social/index';

// TODO: handle this from CSS
function icon(strategy) {
if (strategy === 'google-apps') return strategy;
if (strategy === 'google-apps' || strategy === 'okta') return strategy;

Choose a reason for hiding this comment

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

I am assuming this is for enterprise? The other enterprise connections only return the 'auth0' icon (including PingFederate).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yea, this is for enterprise. I was slightly confused by this section, so hoping @auth0/dx-sdks-engineer can clarify if this is necessary

Choose a reason for hiding this comment

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

Just for my understanding - This means the avatar/icon only displays for Okta and Google right? And the other if is for microsoft and everything else displays default auth0 button?

Copy link
Contributor

Choose a reason for hiding this comment

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

That's correct. I'm unaware as to the history as to why it's like that though.

if (~['adfs', 'office365', 'waad'].indexOf(strategy)) return 'windows';
return 'auth0';
}
Expand Down