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

Lock themes do not work for custom connections #1082

Closed
david-bc opened this issue Aug 11, 2017 · 0 comments · Fixed by #1083
Closed

Lock themes do not work for custom connections #1082

david-bc opened this issue Aug 11, 2017 · 0 comments · Fixed by #1083

Comments

@david-bc
Copy link

Lock has a "Last time you logged in with" feature. Themes on the login button work for Social Connections provided by Auth0 but do not work for configured themes from the Custom Social Connections plugin. If I add a custom Slack connection and theme it in Lock this is the result:

Setup

  1. https://api.slack.com/apps
  2. Add features and functionality > Permissions
  3. Scopes > Add the identity.basic permission

Connection Configuration

Name: Slack
Client ID: https://api.slack.com/apps/ > App Credentials
** Client Secret**: https://api.slack.com/apps/ > App Credentials
Authorization URL: https://slack.com/oauth/authorize
Token URL: https://slack.com/api/oauth.access
Scope: identity.basic
Fetch User Profile Script:

function(accessToken, ctx, cb) {
  var profile = {
    user_id: ctx.user.id,
    team_id: ctx.team.id,
    name: ctx.user.name,
    ctx: ctx
  }
  cb(null, profile);
}

Lock Theme Configuration

Use the following values as the Lock theme option:

{
  theme: {
    authButtons: {
      Slack: {
        primaryColor: "#443142",
        foregroundColor: "#FFFFFF",
        icon: "http://icon-icons.com/icons2/923/PNG/128/slack_icon-icons.com_72028.png"
      }
    }
  }
}


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 a pull request may close this issue.

1 participant