-
Notifications
You must be signed in to change notification settings - Fork 8
Authentication example
Daniel Luque Quintana edited this page May 23, 2020
·
1 revision
Output
------ Example of Authentication ------
The Alastria token is:
{ iss: 'did:ala:quor:redT:05c5e87b79022b0b85280efb332f7506d9294fe0',
gwu: 'https://regular.telsius.blockchainbyeveris.io:2000',
cbu:
'https://serviceprovider.alastria.blockchainbyeveris.io/api/login/',
iat: 1589913078,
ani: 'Alastria network',
nbf: 1563782792,
exp: 1563783392,
jti: 'ze298y42sba' }
Is the signedJWT verified? true
The Alastria session is:
{ '@context': 'https://w3id.org/did/v1',
iss: 'did:ala:quor:redT:87ff106536c5c129e8a5e1434888eb1c5fb5a927',
pku:
'0x2e507af01167c98a6accc0cd46ab2a256dd6b6c69ec1c0c28f80fb62e1f7d70233768b0c58dbbdac1fc358b8141c075a520483cf9779e4ea98d13df2833f3767',
iat: 1589913078,
exp: 1563783392,
nbf: 1563782792,
data:
'eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NksifQ.eyJpc3MiOiJkaWQ6YWxhOnF1b3I6cmVkVDowNWM1ZTg3Yjc5MDIyYjBiODUyODBlZmIzMzJmNzUwNmQ5Mjk0ZmUwIiwiZ3d1IjoiaHR0cHM6Ly9yZWd1bGFyLnRlbHNpdXMuYmxvY2tjaGFpbmJ5ZXZlcmlzLmlvOjIwMDAiLCJjYnUiOiJodHRwczovL3NlcnZpY2Vwcm92aWRlci5hbGFzdHJpYS5ibG9ja2NoYWluYnlldmVyaXMuaW8vYXBpL2xvZ2luLyIsImlhdCI6MTU4OTkxMzA3OCwiYW5pIjoiQWxhc3RyaWEgbmV0d29yayIsIm5iZiI6MTU2Mzc4Mjc5MiwiZXhwIjoxNTYzNzgzMzkyLCJqdGkiOiJ6ZTI5OHk0MnNiYSJ9.vG2h_QOtzYuFQM0NY1L-eOVXY0KPuUqCqj2gfuXhrplJ3xEJdtVOIaZgjYVcO4k44GDDyC2uxL43DncLbm1Z3w',
jti: 'ze298y42sba' }
The signedAS is:
e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