0:00 AM
DougF has quit
0:03 AM
oncenull joined the channel
0:06 AM
iaco joined the channel
0:07 AM
oncenull has quit
0:22 AM
woloski has quit
0:48 AM
iaco has quit
1:19 AM
cultofmetatron64 has quit
1:28 AM
jfroma has quit
2:04 AM
oncenull joined the channel
2:08 AM
oncenull has quit
2:14 AM
cultofmetatron64 joined the channel
2:56 AM
cultofmetatron64 has quit
4:05 AM
oncenull joined the channel
4:09 AM
oncenull has quit
5:30 AM
pezza joined the channel
5:30 AM
pezza has quit
6:06 AM
oncenull joined the channel
6:10 AM
oncenull has quit
8:06 AM
oncenull joined the channel
8:11 AM
oncenull has quit
9:45 AM
rob_curtis joined the channel
9:54 AM
rob_curtis
Hi, with active directory login, and using the login widget and I'm on the network, it somehow "detects" that I'm on the network. and says "you are connected from your corporate network". How is this done? Is it via IP of the ldap connector or the fact that the machine is on the domain?
9:59 AM
Steven_OxfordEco joined the channel
10:07 AM
oncenull joined the channel
10:12 AM
oncenull has quit
10:18 AM
Steven_OxfordEco has quit
10:42 AM
Hi
10:42 AM
anyone here?
10:43 AM
Also interested in why this code doesn't automatically login active directory users who previously logged in
10:43 AM
widget.getClient().getSSOData(function(err, ssodata) {
10:43 AM
// if there is an SSO session, auto-login
10:43 AM
if (ssodata.sso) {
10:43 AM
widget.getClient().login({connection: ssodata.lastUsedConnection.name});
10:43 AM
}
10:43 AM
});
10:49 AM
?
10:51 AM
oncenull joined the channel
10:51 AM
oncenull has quit
10:51 AM
oncenull joined the channel
11:48 AM
jfroma joined the channel
11:50 AM
Has the syntax for setting up the widget changed?
11:51 AM
ah
11:52 AM
there's login-widget and login-widget2
11:52 AM
I assume 2 is the latest and greatest/
11:52 AM
?
11:53 AM
jfroma
11:53 AM
rob_curtis
ah, that 'light blue' "this is deprecated" is pretty easy to miss
11:54 AM
big red text - font size 30 would be appreciated
11:54 AM
:)
11:54 AM
jfroma
we are currently working on the next version which is in beta
11:54 AM
12:02 PM
rob_curtis
ok, thanks
12:07 PM
under connections, I can't seem to open the setup options for active directory anymore
12:07 PM
edit works
12:07 PM
but setup not working
12:14 PM
jfroma
rob_curtis: one sec, let me check
12:16 PM
rob_curtis: yes, it seems ir broken, we will fix it ASAP
12:21 PM
rob_curtis
I just inspected, got the url, so no biggy
12:24 PM
heliton joined the channel
12:24 PM
heliton
hello
12:25 PM
12:26 PM
pose
heliton, I don't think we've tried it on 1.3. what error ar eyou getting?
12:26 PM
jfroma
heliton: hi
12:42 PM
oncenull has quit
12:58 PM
heliton has quit
13:06 PM
heliton joined the channel
13:08 PM
oncenull joined the channel
13:19 PM
heliton has quit
13:32 PM
yenkel joined the channel
13:35 PM
woloski joined the channel
13:37 PM
SofiaRose joined the channel
13:37 PM
SofiaRose
Hi all,
13:38 PM
if im using the node passport strapegy to authorize a app, how can i then get a jwt to query a api?
13:39 PM
or am i better just using the oauth bearer to query the api
13:45 PM
?
13:46 PM
woloski
hi Sofia
13:47 PM
SofiaRose
a hey hey, sorry for being a pain, this is the last issue ive got, im nearly done :)
13:47 PM
if im using the node passport strapegy to authorize a app, how can i then get a jwt to query a api?
13:47 PM
or am i better just using the oauth bearer to query the api?
13:47 PM
woloski
one sec
13:48 PM
SofiaRose
okays
13:48 PM
woloski
you are not a pain, don't worry
13:48 PM
SofiaRose
i feel like it, ive had more questions nearly every day for the last 3 weeks
13:48 PM
woloski
13:49 PM
see the function(accessToken, idToken, ...
13:49 PM
second parameter should be
13:49 PM
SofiaRose
so the idtoken is the jwt?
13:49 PM
woloski
yes
13:49 PM
SofiaRose
okay thanks :)
13:49 PM
woloski
try that and let me know what you get
13:50 PM
SofiaRose
okay
13:50 PM
dylanwood joined the channel
13:50 PM
woloski
because I don't recall exactly if that works as expecte
13:51 PM
SofiaRose
okays, just waiting for a vagrant up
13:51 PM
dylanwood has quit
13:53 PM
while thats doing that is there any way to allow apps to sign on with 0auth without being able to edit user info?
13:56 PM
its done starting but i noticed in mine that function reads:
13:56 PM
function(accessToken, refreshToken, extraParams, profile, done) {
13:56 PM
return done(null, profile);
13:56 PM
});
13:57 PM
which param would it be there?
13:58 PM
woloski
refreshToken would be
13:58 PM
but it doesn't matter how it's called
13:58 PM
SofiaRose
okay, it was just because i noticed it had more params than the one on github :)
13:59 PM
woloski
yes good point... that's why I wasn't sure
13:59 PM
let me know what you see in refreshToken and extraParams
14:02 PM
SofiaRose
access_token: '10ql9sQLAkDIp6kHH7FLKhf8jltZBrx1TJnWfqvEfi3QkgIyZChV5p6JNrlOzkvc'
14:02 PM
id_token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJfaWQiOiJhNDZhMjE3MjI0ODA5NTJkMmI3MzE2NDFkNGFiMTU0YyIsImVtYWlsIjoic29maWFAY29tcG9zaXRldWsuY28udWsiLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiY2xpZW50SUQiOiJBTWpOaFN0cFVtbmVMY0RjNjhmT081VVlpakxlYWlIRCIsInBpY3R1cmUiOiJodHRwczovL3NlY3VyZS5ncmF2YXRhci5jb20vYXZhdGFyLzkxNTk5ZGEyNjkxMmU0NmJmMmQ1ZTlhODIyNzQ2YzIxP3M9ND
14:02 PM
gwJnI9cGcmZD1odHRwcyUzQSUyRiUyRnNzbC5nc3RhdGljLmNvbSUyRnMyJTJGcHJvZmlsZXMlMkZpbWFnZXMlMkZzaWxob3VldHRlODAucG5nIiwidXNlcl9pZCI6ImF1dGgwfDUzZjRhMmI2YzUwNWZlZmE2ZTAwMDMwYyIsIm5hbWUiOiJzb2ZpYUBjb21wb3NpdGV1ay5jby51ayIsIm5pY2tuYW1lIjoic29maWEiLCJpZGVudGl0aWVzIjpbeyJ1c2VyX2lkIjoiNTNmNGEyYjZjNTA1ZmVmYTZlMDAwMzBjIiwicHJvdmlkZXIiOiJhdXRoMCIsImNvbm5lY3Rpb24i
14:02 PM
OiJVc2VybmFtZS1QYXNzd29yZC1BdXRoZW50aWNhdGlvbiIsImlzU29jaWFsIjpmYWxzZX1dLCJjcmVhdGVkX2F0IjoiMjAxNC0wOC0yMFQxMzoyOToyNi44NTdaIiwiZ2xvYmFsX2NsaWVudF9pZCI6Inc0Z0huQVdZR3Y5bTg1Y2RIWHJmT2dwT09vWjhWS1lHIiwiaXNzIjoiaHR0cHM6Ly9wcm9wZXJ0eXN0b3JrLmF1dGgwLmNvbS8iLCJzdWIiOiJhdXRoMHw1M2Y0YTJiNmM1MDVmZWZhNmUwMDAzMGMiLCJhdWQiOiJBTWpOaFN0cFVtbmVMY0RjNjhmT081VVlpak
14:02 PM
xlYWlIRCIsImV4cCI6MTQwOTI3MDUyOCwiaWF0IjoxNDA5MjM0NTI4fQ.A5eskoCOeUS1Vu-lDNW1RiK0eT8_SxUKjo3ILEvyMzY'
14:03 PM
refresh token = accesstoken
14:03 PM
woloski
so access_token is first param, id_token is second param?
14:03 PM
SofiaRose
id token = extraParams
14:03 PM
second and third params
14:05 PM
woloski
ok so from this function(accessToken, refreshToken, extraParams, profile, done)
14:05 PM
accessToken is 10ql9sQLAkDIp6kHH7FLKhf8jltZBrx1TJnWfqvEfi3QkgIyZChV5p6JNrlOzkvc
14:05 PM
SofiaRose
yep
14:05 PM
woloski
refreshToken is ??
14:06 PM
the id_token?
14:06 PM
or id_token is an element of the extraParams
14:06 PM
extraParams.id_token
14:06 PM
SofiaRose
this is what i did:
14:06 PM
function(accessToken, refreshToken, extraParams, profile, done) {
14:06 PM
console.log(refreshToken);
14:06 PM
console.log(extraParams);
14:06 PM
return done(null, profile);
14:06 PM
});
14:07 PM
refresh token was 10ql9sQLAkDIp6kHH7FLKhf8jltZBrx1TJnWfqvEfi3QkgIyZChV5p6JNrlOzkvc
14:07 PM
extraParams was the long 1
14:08 PM
woloski
console.log(extraParams.id_token)
14:08 PM
try that
14:09 PM
SofiaRose
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJfaWQiOiJhNDZhMjE3MjI0ODA5NTJkMmI3MzE2NDFkNGFiMTU0YyIsImVtYWlsIjoic29maWFAY29tcG9zaXRldWsuY28ud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
14:10 PM
I will add to the tutorial
14:10 PM
that's the JWT
14:10 PM
SofiaRose
okay thanks :)
14:10 PM
woloski
thank you!
14:11 PM
SofiaRose
and the refresh token is valid with the jwt?
14:11 PM
woloski
that's the access token
14:12 PM
refreshToken should be null/undefined
14:12 PM
but you only want the id_token (JWT)
14:12 PM
SofiaRose
okay thanks :) did you see my other question?
14:12 PM
woloski
which one
14:13 PM
SofiaRose
while thats doing that is there any way to allow apps to sign on with 0auth without being able to edit user info?
14:13 PM
woloski
I don't understand the question
14:14 PM
SofiaRose
i want my app to be a oauth provider similar to facebook/twitter, but to allow apps to sign on with 0auth (for example using passport) they would require the secret