-
Notifications
You must be signed in to change notification settings - Fork 51
added login with linkedin #7
base: master
Are you sure you want to change the base?
Conversation
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<script type="text/javascript" src="//platform.linkedin.com/in.js"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any special reason to have this in the head? It would block page rendering until it loads.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is the way it's stated in the documentation: https://developer.linkedin.com/docs/getting-started-js-sdk (in the "Initialize the SDK in your webpage" section).
👎 This stands out because this is exactly what linked in is not. Clean, sassy and useful. |
As in, either have an adapter for having import from * (Hired, Careers.SO, WhateverAPI, LinkedIN) where others can add an adapter instead of seperate importers for everything. Sorry if I sounded harsh in my first comment. |
@darkyen What do you mean by "this stands out"? |
Note that the site is currently hosted on gh-pages. And for this to work, I'd need to commit my API key to github. This is not very fork-friendly. Would you happen to know of a different way of querying linkedin? |
@awalgarg I will take a look into that. |
@imylyanyk A button for each login and each provider adding their own library (because there are plethora of data sources where this data can be imported from) will imho go against the minimalism of the app. @imylyanyk @awalgarg about the keys issue, why don't you explore using https://auth0.com/ 's lock ?? Essentially with lock it is
That can fetch data from many sources, and will be a unified entry point |
@imylyanyk @awalgarg Committing API keys is never a good thing. |
Also @awalgarg IIRC many providers have origin restricted api keys for SPA only, like facebook for instance. Anyone supporting OAuth2.0 should have support for that. |
@imylyanyk indeed, that shall be fine for now. @darkyen thanks, I will have a look at that. A unified entry point shall be a great option indeed. |
I have dropped a very basic support for LinkedIn login.
Right now it's only a raw login button, but you can retrieve the required data from LinkedIn and insert it where needed.
All you have to do is to provide the
api_key
which you can get from https://developer.linkedin.com/ and add your website to the allowed domains in the LinkedIn app settings.