When running, we are getting the json response from AAD and the JWT to validate the assertion done.
> go run geting_auth.go
{
"success":true,
"resource":{
"name":"Garcia Loaiza",
"surname":"Bernardo",
"logins":
[
{"date":1616403350385},
{"date":1616409408858},
{"date":1616437319494},
{"date":1616437327734},
{"date":1616484611374},
{"date":1620731649145},
{"date":1622219217329},
{"date":1622219238417},
{"date":1623253831993},
{"date":1623253897266},
{"date":1623253951408},
{"date":1623956199503}
],
"role":"admin",
"private":true,
"verified":true,
"archived":false,
"_id":"my-speckle-user-id",
"email":"[email protected]",
"company":"friday-burgers ",
"apitoken":"JWT SPECKLE-API-TOKEN",
"providerProfiles":
{
"azure":
{
"aio":"xxxxxxxxxxxxxxxxxxxxxxxxxx",
"amr":"[\"pwd\"]",
"email":"[email protected]",
"idp":"https://sts.windows.net/corporate-root-tenant-id/",
"ipaddr":"213.127.105.122",
"name":"Bernardo Garcia Loaiza",
"oid":"my-azure-ad-user-object-id",
"rh":"0.AV8A4TyaTNBh_U6GvwfA5i_f4dVSvF7wootOnEFIbWBiwihfAMI.",
"sub":"xxxxx-xxxx",
"tid":"SPECKLE-AS-SERVICE-TENANT-ID",
"unique_name":"[email protected]",
"uti":"xxxx",
"ver":"1.0"
}
},
"createdAt":"2021-03-21T19:17:58.244Z",
"updatedAt":"2021-06-17T18:56:39.504Z",
"__v":12
}
}
O.K.
JWT SPECKLE.API.TOKEN