-
rfunduk
presumably you give them the shared secret in some kind of admin panel
-
hover
Well I have the shared secret already
-
stripepc___ has quit
-
danasf has quit
-
bcol_ has quit
-
rfunduk
yea, so you need to implement a similar handler on both of your sites/apps
-
hover
How can I hide the shared secret on my express server
-
rfunduk
and also a way to generate a jwt on both
-
hover
Should I through it through post?
-
rfunduk
just anywhere. var sharedSecret = 'xyz'; or through an environment variable
-
stripepc___ joined the channel
-
hover
do it* through post?
-
rfunduk
no generally you want to use an image tag like i said above
-
so it would be a get with a query param
-
bcol_ joined the channel
-
gwendall has quit
-
ta_ has quit
-
Everhusk has quit
-
ggherdov` joined the channel
-
hover
I'm kinda confused
-
rfunduk
Site A and Site B both get the shared secret
-
hover
so I would place a pixel on my site with what information inside it?
-
rfunduk
you use the shared secret to generate a jwt
-
-
Sam-T joined the channel
-
ggherdov` has quit
-
nilsmunch has quit
-
hover
Parse uses something called a sessionToken to validate login
-
rfunduk
i'm afraid i dont know anything about that
-
you have the ability to log a user in by hand?
-
hover
Yes
-
ggherdov` joined the channel
-
rfunduk
like can you just at any point say "and now this user is logged in as <user 1>"?
-
hover
Yea
-
rfunduk
so then that's what you do in your 'magic_login' handler
-
decode the jwt
-
figure out what user it was
-
and make sure it wasn't expired or whatever else
-
and log them in
-
and vice versa for the other site
-
shpoont has quit
-
hover
rfunduk: what's a quick way to get a query string?
-
nerdfiles has quit
-
rfunduk
'get'?
-
hover
parse
-
rfunduk
my example above uses a query string
-
i dont know anything about parse
-
hover
well not on parse
-
rfunduk
-
hover
yes I get that
-
nerdfile1 has quit
-
var query = url.parse(request.url, true).query;
-
how would I capture what comes after ?jwt=
-
rfunduk
i recognize the language as javascript. but i dont know what 'url' or 'url.parse', etc is in that code
-
so i suggest heading to parse's docs for that
-
remember you're trying to make a url to a _different_ site
-
so i'm not sure why you need to do that
-
just do "https://sitea.com/magic_login?jwt=" + yourJwtToken
-
hover
-
nerdfiles joined the channel
-
nerdfile1 joined the channel
-
rfunduk
yea that looks like quite a lot of overkill. just make your token and spit out a url with it to the other site
-
hover
well I would have to grab the token and verify it's validity
-
then spit out a JWT payloud
-
payload*
-
Sam-T has quit
-
nicholaswyoung joined the channel
-
rfunduk
i dont see what that has to do with url generation
-
koopajah has quit
-
-
Everhusk joined the channel
-
Everhusk_ joined the channel
-
hover
I got it!
-
-
passing sessionToken=<% = token =%>
-
-
It checks authentication on Parse
-
kellysutton joined the channel
-
s3shs
Is there a way to make subscriptions always start on the first of the month? And when they sign up or cancel I prorate to the end of the month/
-
?
-
Everhusk has quit
-
rocco88 joined the channel
-
max-b has quit
-
rocco88
Hi guys
-
Someone can help me? customer.subscription.trial_will_end webhook is sent even the customer cancels the subscription?
-
nerdfiles has quit
-
(in the trial period)
-
rocco88 has quit
-
gwendall joined the channel
-
heavysixer joined the channel
-
markin
-
Everhusk_ has quit
-
hover
markin: You're alive!
-
Dude I literally had no programming knowledge prior to this project
-
markin
hover: been alive, just our online / offlines haven't synced up
-
s3shs: you can do that by doing a trial to the first of the month, or setting a billing anchor
-
hover
markin: I am at 308 lines
-
s3shs
It's my project for tomorrow. :-)
-
Thanks, markin
-
markin
hover: nice
-
hover
markin: I think I got Zendesk SSO working
-
markin
hover: coolio
-
s3shs
Nice. Don't know if I like the color change when you detect the card type.
-
hover
fudge, it failed on herokue
-
heroku*
-
markin
s3shs: what do you mean color change?
-
s3shs
The background of the card goes from grey to blue.
-
When I type "42"...
-
In to the card number.
-
markin
s3shs: oh on my thing
-
s3shs
:-)
-
Everybody's a critic. Sorry.
-
markin
I do need to ease that transition
-
s3shs
Maybe just do the logo. Do the card on white.
-
Just a though.
-
thought.
-
markin
s3shs: your opinion is appreciated
-
happyface has quit
-
hover
markin: by the way that looks cool on Fiddle
-
Is it ready for production?
-
Everhusk joined the channel
-
Sam-T joined the channel
-
markin
I'd say beta, it needs polish, cleaning up animations and transitions, then I still need to add the plan drop down and the coupon field
-
heavysixer has quit
-
scellow_ joined the channel
-
max-b joined the channel
-
scellow- joined the channel
-
scellow has quit
-
Everhusk has quit
-
hover
markin: It probably needs an ease-in animation for the card color change when it detects the card type
-
scellow joined the channel
-
scellow-_ joined the channel
-
Everhusk joined the channel
-
Everhusk has quit
-
scellow_ has quit
-
scellow- has quit
-
scellow has quit
-
Everhusk joined the channel
-
Daniel0 has quit
-
shpoont joined the channel
-
danasf joined the channel
-
ta_ joined the channel
-
Sam-T has quit
-
jarrod_ joined the channel
-
brockhaywood joined the channel
-
Daniel0 joined the channel
-
shpoont has quit
-
ta_ has quit
-
gwendall has quit
-
brockhaywood has quit